@@ -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 ,
@@ -2272,13 +2300,22 @@ pub const GRND_NONBLOCK: ::c_uint = 0x0001;
22722300pub const GRND_RANDOM : :: c_uint = 0x0002 ;
22732301pub const GRND_INSECURE : :: c_uint = 0x0004 ;
22742302
2303+ // <linux/seccomp.h>
22752304pub const SECCOMP_MODE_DISABLED : :: c_uint = 0 ;
22762305pub const SECCOMP_MODE_STRICT : :: c_uint = 1 ;
22772306pub const SECCOMP_MODE_FILTER : :: c_uint = 2 ;
22782307
2308+ pub const SECCOMP_SET_MODE_STRICT : :: c_uint = 0 ;
2309+ pub const SECCOMP_SET_MODE_FILTER : :: c_uint = 1 ;
2310+ pub const SECCOMP_GET_ACTION_AVAIL : :: c_uint = 2 ;
2311+ pub const SECCOMP_GET_NOTIF_SIZES : :: c_uint = 3 ;
2312+
22792313pub const SECCOMP_FILTER_FLAG_TSYNC : :: c_ulong = 1 ;
22802314pub const SECCOMP_FILTER_FLAG_LOG : :: c_ulong = 2 ;
22812315pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW : :: c_ulong = 4 ;
2316+ pub const SECCOMP_FILTER_FLAG_NEW_LISTENER : :: c_ulong = 8 ;
2317+ pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH : :: c_ulong = 16 ;
2318+ pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV : :: c_ulong = 32 ;
22822319
22832320pub const SECCOMP_RET_KILL_PROCESS : :: c_uint = 0x80000000 ;
22842321pub const SECCOMP_RET_KILL_THREAD : :: c_uint = 0x00000000 ;
@@ -2293,6 +2330,11 @@ pub const SECCOMP_RET_ACTION_FULL: ::c_uint = 0xffff0000;
22932330pub const SECCOMP_RET_ACTION : :: c_uint = 0x7fff0000 ;
22942331pub const SECCOMP_RET_DATA : :: c_uint = 0x0000ffff ;
22952332
2333+ pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE : :: c_ulong = 1 ;
2334+
2335+ pub const SECCOMP_ADDFD_FLAG_SETFD : :: c_ulong = 1 ;
2336+ pub const SECCOMP_ADDFD_FLAG_SEND : :: c_ulong = 2 ;
2337+
22962338pub const ITIMER_REAL : :: c_int = 0 ;
22972339pub const ITIMER_VIRTUAL : :: c_int = 1 ;
22982340pub const ITIMER_PROF : :: c_int = 2 ;
0 commit comments