interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv / specs / osh-platform / vectors / t010_domain1_generation.vec

28 lines · 880 bytes Raw Blame History
1case domain1_generation
2kind negative
3exec host-logic
4domain 1
5needs tasks test-authority
6# domain 1 (kernel IPC table): 32-bit generations; a wider one is refused, never truncated (ST5)
7cap C => OK
8bind B cap=C => OK
9bind WIDE cap=C gen=0x100000007 => OK
10bind OLD cap=C gen=8 => OK
11bind D2 cap=C domain=2 => OK
12bind D0 cap=C domain=0 => OK
13bind GONE cap=C index=99 => OK
14bind N none => OK
15spawn T1 exit 0 bind=WIDE => CAP_GEN_NARROW
16spawn T2 exit 0 bind=OLD => STALE
17spawn T3 exit 0 bind=D2 => CAP_DOMAIN_MISMATCH
18spawn T4 exit 0 bind=D0 => CAP_DOMAIN_MISMATCH
19spawn T5 exit 0 bind=GONE => STALE
20spawn T6 exit 0 bind=N => DENIED
21launch P bind=WIDE : exit 0 => CAP_GEN_NARROW status=126 outcomes=FAILED_NO_EFFECT statuses=126
22check empty
23spawn T exit 0 bind=B => OK
24run => OK
25wait T => OK status=0 outcome=COMPLETED
26revokecap C => OK
27spawn T7 exit 0 bind=B => REVOKED
28check empty