twizzler_abi/
security.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use bitflags::bitflags;

use crate::{marker::BaseType, object::ObjID};

#[repr(C)]
pub struct SecurityContextBase {
    caps_data: ObjID,
    global_mask: Permissions,
}

bitflags! {
    pub struct Permissions : u32 {
        const READ = 1;
        const WRITE = 2;
        const EXEC = 4;
        const USE = 8;
    }
}

impl BaseType for SecurityContextBase {
    fn init<T>(_t: T) -> Self {
        todo!()
    }

    fn tags() -> &'static [(crate::marker::BaseVersion, crate::marker::BaseTag)] {
        todo!()
    }
}