@@ -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 ,
@@ -2272,13 +2300,22 @@ pub const GRND_NONBLOCK: ::c_uint = 0x0001;
2272
2300
pub const GRND_RANDOM : :: c_uint = 0x0002 ;
2273
2301
pub const GRND_INSECURE : :: c_uint = 0x0004 ;
2274
2302
2303
+ // <linux/seccomp.h>
2275
2304
pub const SECCOMP_MODE_DISABLED : :: c_uint = 0 ;
2276
2305
pub const SECCOMP_MODE_STRICT : :: c_uint = 1 ;
2277
2306
pub const SECCOMP_MODE_FILTER : :: c_uint = 2 ;
2278
2307
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
+
2279
2313
pub const SECCOMP_FILTER_FLAG_TSYNC : :: c_ulong = 1 ;
2280
2314
pub const SECCOMP_FILTER_FLAG_LOG : :: c_ulong = 2 ;
2281
2315
pub 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 ;
2282
2319
2283
2320
pub const SECCOMP_RET_KILL_PROCESS : :: c_uint = 0x80000000 ;
2284
2321
pub const SECCOMP_RET_KILL_THREAD : :: c_uint = 0x00000000 ;
@@ -2293,6 +2330,11 @@ pub const SECCOMP_RET_ACTION_FULL: ::c_uint = 0xffff0000;
2293
2330
pub const SECCOMP_RET_ACTION : :: c_uint = 0x7fff0000 ;
2294
2331
pub const SECCOMP_RET_DATA : :: c_uint = 0x0000ffff ;
2295
2332
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
+
2296
2338
pub const ITIMER_REAL : :: c_int = 0 ;
2297
2339
pub const ITIMER_VIRTUAL : :: c_int = 1 ;
2298
2340
pub const ITIMER_PROF : :: c_int = 2 ;
0 commit comments