/* automatically generated by rust-bindgen 0.72.0 */

pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1;
pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2;
pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1;
pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2;
pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4;
pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1;
pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2;
pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4;
pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8;
pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16;
pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32;
pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64;
pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128;
pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256;
pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512;
pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024;
pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048;
pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096;
pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192;
pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384;
pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768;
pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1;
pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2;
pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1;
pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2;
pub type __s32 = ::std::os::raw::c_int;
pub type __u64 = ::std::os::raw::c_ulonglong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct landlock_ruleset_attr {
    pub handled_access_fs: __u64,
    pub handled_access_net: __u64,
    pub scoped: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of landlock_ruleset_attr"][::std::mem::size_of::<landlock_ruleset_attr>() - 24usize];
    ["Alignment of landlock_ruleset_attr"]
        [::std::mem::align_of::<landlock_ruleset_attr>() - 8usize];
    ["Offset of field: landlock_ruleset_attr::handled_access_fs"]
        [::std::mem::offset_of!(landlock_ruleset_attr, handled_access_fs) - 0usize];
    ["Offset of field: landlock_ruleset_attr::handled_access_net"]
        [::std::mem::offset_of!(landlock_ruleset_attr, handled_access_net) - 8usize];
    ["Offset of field: landlock_ruleset_attr::scoped"]
        [::std::mem::offset_of!(landlock_ruleset_attr, scoped) - 16usize];
};
pub const landlock_rule_type_LANDLOCK_RULE_PATH_BENEATH: landlock_rule_type = 1;
pub const landlock_rule_type_LANDLOCK_RULE_NET_PORT: landlock_rule_type = 2;
pub type landlock_rule_type = ::std::os::raw::c_uint;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct landlock_path_beneath_attr {
    pub allowed_access: __u64,
    pub parent_fd: __s32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of landlock_path_beneath_attr"]
        [::std::mem::size_of::<landlock_path_beneath_attr>() - 12usize];
    ["Alignment of landlock_path_beneath_attr"]
        [::std::mem::align_of::<landlock_path_beneath_attr>() - 1usize];
    ["Offset of field: landlock_path_beneath_attr::allowed_access"]
        [::std::mem::offset_of!(landlock_path_beneath_attr, allowed_access) - 0usize];
    ["Offset of field: landlock_path_beneath_attr::parent_fd"]
        [::std::mem::offset_of!(landlock_path_beneath_attr, parent_fd) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct landlock_net_port_attr {
    pub allowed_access: __u64,
    pub port: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of landlock_net_port_attr"][::std::mem::size_of::<landlock_net_port_attr>() - 16usize];
    ["Alignment of landlock_net_port_attr"]
        [::std::mem::align_of::<landlock_net_port_attr>() - 8usize];
    ["Offset of field: landlock_net_port_attr::allowed_access"]
        [::std::mem::offset_of!(landlock_net_port_attr, allowed_access) - 0usize];
    ["Offset of field: landlock_net_port_attr::port"]
        [::std::mem::offset_of!(landlock_net_port_attr, port) - 8usize];
};
