aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / osh-platform / vectors / t010_domain1_generation.vec
| 1 | case domain1_generation |
| 2 | kind negative |
| 3 | exec host-logic |
| 4 | domain 1 |
| 5 | needs tasks test-authority |
| 6 | # domain 1 (kernel IPC table): 32-bit generations; a wider one is refused, never truncated (ST5) |
| 7 | cap C => OK |
| 8 | bind B cap=C => OK |
| 9 | bind WIDE cap=C gen=0x100000007 => OK |
| 10 | bind OLD cap=C gen=8 => OK |
| 11 | bind D2 cap=C domain=2 => OK |
| 12 | bind D0 cap=C domain=0 => OK |
| 13 | bind GONE cap=C index=99 => OK |
| 14 | bind N none => OK |
| 15 | spawn T1 exit 0 bind=WIDE => CAP_GEN_NARROW |
| 16 | spawn T2 exit 0 bind=OLD => STALE |
| 17 | spawn T3 exit 0 bind=D2 => CAP_DOMAIN_MISMATCH |
| 18 | spawn T4 exit 0 bind=D0 => CAP_DOMAIN_MISMATCH |
| 19 | spawn T5 exit 0 bind=GONE => STALE |
| 20 | spawn T6 exit 0 bind=N => DENIED |
| 21 | launch P bind=WIDE : exit 0 => CAP_GEN_NARROW status=126 outcomes=FAILED_NO_EFFECT statuses=126 |
| 22 | check empty |
| 23 | spawn T exit 0 bind=B => OK |
| 24 | run => OK |
| 25 | wait T => OK status=0 outcome=COMPLETED |
| 26 | revokecap C => OK |
| 27 | spawn T7 exit 0 bind=B => REVOKED |
| 28 | check empty |