File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,12 @@ s! {
161
161
pub ss_flags: :: c_int,
162
162
pub ss_size: :: size_t
163
163
}
164
+
165
+ pub struct seccomp_notif_sizes {
166
+ pub seccomp_notif: :: __u16,
167
+ pub seccomp_notif_resp: :: __u16,
168
+ pub seccomp_data: :: __u16,
169
+ }
164
170
}
165
171
166
172
pub const RLIM_INFINITY : :: rlim_t = !0 ;
@@ -424,6 +430,11 @@ pub const B3000000: ::speed_t = 0o010015;
424
430
pub const B3500000 : :: speed_t = 0o010016 ;
425
431
pub const B4000000 : :: speed_t = 0o010017 ;
426
432
433
+ pub const SECCOMP_SET_MODE_STRICT : :: c_uint = 0 ;
434
+ pub const SECCOMP_SET_MODE_FILTER : :: c_uint = 1 ;
435
+ pub const SECCOMP_GET_ACTION_AVAIL : :: c_uint = 2 ;
436
+ pub const SECCOMP_GET_NOTIF_SIZES : :: c_uint = 3 ;
437
+
427
438
pub const VEOL : usize = 11 ;
428
439
pub const VEOL2 : usize = 16 ;
429
440
pub const VMIN : usize = 6 ;
Original file line number Diff line number Diff line change @@ -235,6 +235,12 @@ s! {
235
235
pub ss_flags: :: c_int,
236
236
pub ss_size: :: size_t
237
237
}
238
+
239
+ pub struct seccomp_notif_sizes {
240
+ pub seccomp_notif: :: __u16,
241
+ pub seccomp_notif_resp: :: __u16,
242
+ pub seccomp_data: :: __u16,
243
+ }
238
244
}
239
245
240
246
s_no_extra_traits ! {
@@ -1115,6 +1121,11 @@ pub const REG_EFL: ::c_int = 16;
1115
1121
pub const REG_UESP : :: c_int = 17 ;
1116
1122
pub const REG_SS : :: c_int = 18 ;
1117
1123
1124
+ pub const SECCOMP_SET_MODE_STRICT : :: c_uint = 0 ;
1125
+ pub const SECCOMP_SET_MODE_FILTER : :: c_uint = 1 ;
1126
+ pub const SECCOMP_GET_ACTION_AVAIL : :: c_uint = 2 ;
1127
+ pub const SECCOMP_GET_NOTIF_SIZES : :: c_uint = 3 ;
1128
+
1118
1129
extern "C" {
1119
1130
pub fn getcontext ( ucp : * mut ucontext_t ) -> :: c_int ;
1120
1131
pub fn setcontext ( ucp : * const ucontext_t ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -194,6 +194,12 @@ s! {
194
194
pub imr_address: :: in_addr,
195
195
pub imr_ifindex: :: c_int,
196
196
}
197
+
198
+ pub struct seccomp_notif_sizes {
199
+ pub seccomp_notif: :: __u16,
200
+ pub seccomp_notif_resp: :: __u16,
201
+ pub seccomp_data: :: __u16,
202
+ }
197
203
}
198
204
199
205
pub const VEOF : usize = 4 ;
@@ -526,6 +532,11 @@ pub const B3000000: ::speed_t = 0o010015;
526
532
pub const B3500000 : :: speed_t = 0o010016 ;
527
533
pub const B4000000 : :: speed_t = 0o010017 ;
528
534
535
+ pub const SECCOMP_SET_MODE_STRICT : :: c_uint = 0 ;
536
+ pub const SECCOMP_SET_MODE_FILTER : :: c_uint = 1 ;
537
+ pub const SECCOMP_GET_ACTION_AVAIL : :: c_uint = 2 ;
538
+ pub const SECCOMP_GET_NOTIF_SIZES : :: c_uint = 3 ;
539
+
529
540
pub const VEOL : usize = 11 ;
530
541
pub const VEOL2 : usize = 16 ;
531
542
pub const VMIN : usize = 6 ;
Original file line number Diff line number Diff line change @@ -264,6 +264,12 @@ s! {
264
264
pub imr_address: :: in_addr,
265
265
pub imr_ifindex: :: c_int,
266
266
}
267
+
268
+ pub struct seccomp_notif_sizes {
269
+ pub seccomp_notif: :: __u16,
270
+ pub seccomp_notif_resp: :: __u16,
271
+ pub seccomp_data: :: __u16,
272
+ }
267
273
}
268
274
269
275
s_no_extra_traits ! {
@@ -820,6 +826,11 @@ pub const REG_TRAPNO: ::c_int = 20;
820
826
pub const REG_OLDMASK : :: c_int = 21 ;
821
827
pub const REG_CR2 : :: c_int = 22 ;
822
828
829
+ pub const SECCOMP_SET_MODE_STRICT : :: c_uint = 0 ;
830
+ pub const SECCOMP_SET_MODE_FILTER : :: c_uint = 1 ;
831
+ pub const SECCOMP_GET_ACTION_AVAIL : :: c_uint = 2 ;
832
+ pub const SECCOMP_GET_NOTIF_SIZES : :: c_uint = 3 ;
833
+
823
834
extern "C" {
824
835
pub fn getcontext ( ucp : * mut ucontext_t ) -> :: c_int ;
825
836
pub fn setcontext ( ucp : * const ucontext_t ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments