| 1 |
/* automatically generated by rust-bindgen 0.72.1 */ |
| 2 |
|
| 3 |
pub type __s8 = crate::ctypes::c_schar; |
| 4 |
pub type __u8 = crate::ctypes::c_uchar; |
| 5 |
pub type __s16 = crate::ctypes::c_short; |
| 6 |
pub type __u16 = crate::ctypes::c_ushort; |
| 7 |
pub type __s32 = crate::ctypes::c_int; |
| 8 |
pub type __u32 = crate::ctypes::c_uint; |
| 9 |
pub type __s64 = crate::ctypes::c_longlong; |
| 10 |
pub type __u64 = crate::ctypes::c_ulonglong; |
| 11 |
pub type __kernel_key_t = crate::ctypes::c_int; |
| 12 |
pub type __kernel_mqd_t = crate::ctypes::c_int; |
| 13 |
pub type __kernel_ipc_pid_t = crate::ctypes::c_short; |
| 14 |
pub type __kernel_long_t = crate::ctypes::c_long; |
| 15 |
pub type __kernel_ulong_t = crate::ctypes::c_ulong; |
| 16 |
pub type __kernel_ino_t = __kernel_ulong_t; |
| 17 |
pub type __kernel_mode_t = crate::ctypes::c_uint; |
| 18 |
pub type __kernel_pid_t = crate::ctypes::c_int; |
| 19 |
pub type __kernel_uid_t = crate::ctypes::c_uint; |
| 20 |
pub type __kernel_gid_t = crate::ctypes::c_uint; |
| 21 |
pub type __kernel_suseconds_t = __kernel_long_t; |
| 22 |
pub type __kernel_daddr_t = crate::ctypes::c_int; |
| 23 |
pub type __kernel_uid32_t = crate::ctypes::c_uint; |
| 24 |
pub type __kernel_gid32_t = crate::ctypes::c_uint; |
| 25 |
pub type __kernel_old_uid_t = __kernel_uid_t; |
| 26 |
pub type __kernel_old_gid_t = __kernel_gid_t; |
| 27 |
pub type __kernel_old_dev_t = crate::ctypes::c_uint; |
| 28 |
pub type __kernel_size_t = crate::ctypes::c_uint; |
| 29 |
pub type __kernel_ssize_t = crate::ctypes::c_int; |
| 30 |
pub type __kernel_ptrdiff_t = crate::ctypes::c_int; |
| 31 |
pub type __kernel_off_t = __kernel_long_t; |
| 32 |
pub type __kernel_loff_t = crate::ctypes::c_longlong; |
| 33 |
pub type __kernel_old_time_t = __kernel_long_t; |
| 34 |
pub type __kernel_time_t = __kernel_long_t; |
| 35 |
pub type __kernel_time64_t = crate::ctypes::c_longlong; |
| 36 |
pub type __kernel_clock_t = __kernel_long_t; |
| 37 |
pub type __kernel_timer_t = crate::ctypes::c_int; |
| 38 |
pub type __kernel_clockid_t = crate::ctypes::c_int; |
| 39 |
pub type __kernel_caddr_t = *mut crate::ctypes::c_char; |
| 40 |
pub type __kernel_uid16_t = crate::ctypes::c_ushort; |
| 41 |
pub type __kernel_gid16_t = crate::ctypes::c_ushort; |
| 42 |
pub type __le16 = __u16; |
| 43 |
pub type __be16 = __u16; |
| 44 |
pub type __le32 = __u32; |
| 45 |
pub type __be32 = __u32; |
| 46 |
pub type __le64 = __u64; |
| 47 |
pub type __be64 = __u64; |
| 48 |
pub type __sum16 = __u16; |
| 49 |
pub type __wsum = __u32; |
| 50 |
pub type __poll_t = crate::ctypes::c_uint; |
| 51 |
#[repr(C)] |
| 52 |
#[repr(align(16))] |
| 53 |
#[derive(Debug, Copy, Clone)] |
| 54 |
pub struct __vector128 { |
| 55 |
pub u: [__u32; 4usize], |
| 56 |
} |
| 57 |
#[repr(C)] |
| 58 |
#[derive(Debug, Copy, Clone)] |
| 59 |
pub struct landlock_ruleset_attr { |
| 60 |
pub handled_access_fs: __u64, |
| 61 |
pub handled_access_net: __u64, |
| 62 |
pub scoped: __u64, |
| 63 |
} |
| 64 |
#[repr(C, packed)] |
| 65 |
#[derive(Debug, Copy, Clone)] |
| 66 |
pub struct landlock_path_beneath_attr { |
| 67 |
pub allowed_access: __u64, |
| 68 |
pub parent_fd: __s32, |
| 69 |
} |
| 70 |
#[repr(C)] |
| 71 |
#[derive(Debug, Copy, Clone)] |
| 72 |
pub struct landlock_net_port_attr { |
| 73 |
pub allowed_access: __u64, |
| 74 |
pub port: __u64, |
| 75 |
} |
| 76 |
pub const __BITS_PER_LONG_LONG: u32 = 64; |
| 77 |
pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; |
| 78 |
pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; |
| 79 |
pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; |
| 80 |
pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; |
| 81 |
pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; |
| 82 |
pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; |
| 83 |
pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; |
| 84 |
pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; |
| 85 |
pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; |
| 86 |
pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; |
| 87 |
pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; |
| 88 |
pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; |
| 89 |
pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; |
| 90 |
pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; |
| 91 |
pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; |
| 92 |
pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; |
| 93 |
pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; |
| 94 |
pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; |
| 95 |
pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; |
| 96 |
pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; |
| 97 |
pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; |
| 98 |
pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; |
| 99 |
pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; |
| 100 |
pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; |
| 101 |
pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; |
| 102 |
#[repr(u32)] |
| 103 |
#[non_exhaustive] |
| 104 |
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
| 105 |
pub enum landlock_rule_type { |
| 106 |
LANDLOCK_RULE_PATH_BENEATH = 1, |
| 107 |
LANDLOCK_RULE_NET_PORT = 2, |
| 108 |
} |