@@ -578,6 +578,34 @@ s! {
578
578
pub args: [ :: __u64; 6 ] ,
579
579
}
580
580
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
+
581
609
pub struct nlmsghdr {
582
610
pub nlmsg_len: u32 ,
583
611
pub nlmsg_type: u16 ,
@@ -2237,13 +2265,22 @@ pub const GRND_NONBLOCK: ::c_uint = 0x0001;
2237
2265
pub const GRND_RANDOM : :: c_uint = 0x0002 ;
2238
2266
pub const GRND_INSECURE : :: c_uint = 0x0004 ;
2239
2267
2268
+ // <linux/seccomp.h>
2240
2269
pub const SECCOMP_MODE_DISABLED : :: c_uint = 0 ;
2241
2270
pub const SECCOMP_MODE_STRICT : :: c_uint = 1 ;
2242
2271
pub const SECCOMP_MODE_FILTER : :: c_uint = 2 ;
2243
2272
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
+
2244
2278
pub const SECCOMP_FILTER_FLAG_TSYNC : :: c_ulong = 1 ;
2245
2279
pub const SECCOMP_FILTER_FLAG_LOG : :: c_ulong = 2 ;
2246
2280
pub 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 ;
2247
2284
2248
2285
pub const SECCOMP_RET_KILL_PROCESS : :: c_uint = 0x80000000 ;
2249
2286
pub const SECCOMP_RET_KILL_THREAD : :: c_uint = 0x00000000 ;
@@ -2258,6 +2295,11 @@ pub const SECCOMP_RET_ACTION_FULL: ::c_uint = 0xffff0000;
2258
2295
pub const SECCOMP_RET_ACTION : :: c_uint = 0x7fff0000 ;
2259
2296
pub const SECCOMP_RET_DATA : :: c_uint = 0x0000ffff ;
2260
2297
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
+
2261
2303
pub const ITIMER_REAL : :: c_int = 0 ;
2262
2304
pub const ITIMER_VIRTUAL : :: c_int = 1 ;
2263
2305
pub const ITIMER_PROF : :: c_int = 2 ;
0 commit comments