@@ -578,6 +578,34 @@ s! {
578578 pub args: [ :: __u64; 6 ] ,
579579 }
580580
581+ pub struct seccomp_notif_sizes {
582+ pub seccomp_notif: :: __u16,
583+ pub seccomp_notif_resp: :: __u16,
584+ pub seccomp_data: :: __u16,
585+ }
586+
587+ pub struct seccomp_notif {
588+ pub id: :: __u64,
589+ pub pid: :: __u32,
590+ pub flags: :: __u32,
591+ pub data: seccomp_data,
592+ }
593+
594+ pub struct seccomp_notif_resp {
595+ pub id: :: __u64,
596+ pub val: :: __s64,
597+ pub error: :: __s32,
598+ pub flags: :: __u32,
599+ }
600+
601+ pub struct seccomp_notif_addfd {
602+ pub id: :: __u64,
603+ pub flags: :: __u32,
604+ pub srcfd: :: __u32,
605+ pub newfd: :: __u32,
606+ pub newfd_flags: :: __u32,
607+ }
608+
581609 pub struct nlmsghdr {
582610 pub nlmsg_len: u32 ,
583611 pub nlmsg_type: u16 ,
@@ -2237,13 +2265,22 @@ pub const GRND_NONBLOCK: ::c_uint = 0x0001;
22372265pub const GRND_RANDOM : :: c_uint = 0x0002 ;
22382266pub const GRND_INSECURE : :: c_uint = 0x0004 ;
22392267
2268+ // <linux/seccomp.h>
22402269pub const SECCOMP_MODE_DISABLED : :: c_uint = 0 ;
22412270pub const SECCOMP_MODE_STRICT : :: c_uint = 1 ;
22422271pub const SECCOMP_MODE_FILTER : :: c_uint = 2 ;
22432272
2273+ pub const SECCOMP_SET_MODE_STRICT : :: c_uint = 0 ;
2274+ pub const SECCOMP_SET_MODE_FILTER : :: c_uint = 1 ;
2275+ pub const SECCOMP_GET_ACTION_AVAIL : :: c_uint = 2 ;
2276+ pub const SECCOMP_GET_NOTIF_SIZES : :: c_uint = 3 ;
2277+
22442278pub const SECCOMP_FILTER_FLAG_TSYNC : :: c_ulong = 1 ;
22452279pub const SECCOMP_FILTER_FLAG_LOG : :: c_ulong = 2 ;
22462280pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW : :: c_ulong = 4 ;
2281+ pub const SECCOMP_FILTER_FLAG_NEW_LISTENER : :: c_ulong = 8 ;
2282+ pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH : :: c_ulong = 16 ;
2283+ pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV : :: c_ulong = 32 ;
22472284
22482285pub const SECCOMP_RET_KILL_PROCESS : :: c_uint = 0x80000000 ;
22492286pub const SECCOMP_RET_KILL_THREAD : :: c_uint = 0x00000000 ;
@@ -2258,6 +2295,11 @@ pub const SECCOMP_RET_ACTION_FULL: ::c_uint = 0xffff0000;
22582295pub const SECCOMP_RET_ACTION : :: c_uint = 0x7fff0000 ;
22592296pub const SECCOMP_RET_DATA : :: c_uint = 0x0000ffff ;
22602297
2298+ pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE : :: c_ulong = 1 ;
2299+
2300+ pub const SECCOMP_ADDFD_FLAG_SETFD : :: c_ulong = 1 ;
2301+ pub const SECCOMP_ADDFD_FLAG_SEND : :: c_ulong = 2 ;
2302+
22612303pub const ITIMER_REAL : :: c_int = 0 ;
22622304pub const ITIMER_VIRTUAL : :: c_int = 1 ;
22632305pub const ITIMER_PROF : :: c_int = 2 ;
0 commit comments