aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / kernel / tests / fixtures / pipe / p006_rights.vec
| 1 | case rights |
| 2 | kind negative |
| 3 | # a read end cannot write and a write end cannot read; dup attenuates and never widens |
| 4 | create R W A => OK |
| 5 | write R "x" => DENIED |
| 6 | read W 1 => DENIED |
| 7 | dup R X A w => INVALID_ARG |
| 8 | dup R X A rm => INVALID_ARG |
| 9 | dup R RB B r => OK |
| 10 | dup RB RC B r => DENIED |
| 11 | dup RB RC A r => DENIED |
| 12 | revoke RB => DENIED |
| 13 | cancel W => OK |
| 14 | dup W WB B wg => OK |
| 15 | dup WB WC B wd => DENIED |
| 16 | write WB "q" => INTERRUPTED |
| 17 | write WB "q" => OK n=1 |
| 18 | read RB 4 => OK n=1 data="q" |
| 19 | close RB => OK |
| 20 | close WB => OK |
| 21 | close R => OK |
| 22 | close W => OK |
| 23 | check empty refused=6 |