Added acl.grant and acl.revoke functions.
[py-rsbac] / rsbac / rsbac_1_3_1.py
1 # Automatically generated by gen.sh on Thu Nov  2 16:44:34 CET 2006
2
3 # unresolved alias: __SWBLK_T_TYPE = __SLONGWORD_TYPE
4 # unresolved alias: __FSBLKCNT_T_TYPE = __ULONGWORD_TYPE
5 # unresolved alias: __SWORD_TYPE = int
6 # unresolved alias: __SSIZE_T_TYPE = __SWORD_TYPE
7 # unresolved alias: __BLKSIZE_T_TYPE = __SLONGWORD_TYPE
8 # unresolved alias: __INO_T_TYPE = __ULONGWORD_TYPE
9 # unresolved alias: __TIME_T_TYPE = __SLONGWORD_TYPE
10 # unresolved alias: __S32_TYPE = int
11 # unresolved alias: __CLOCKID_T_TYPE = __S32_TYPE
12 # unresolved alias: __RLIM_T_TYPE = __ULONGWORD_TYPE
13 # unresolved alias: __GID_T_TYPE = __U32_TYPE
14 # unresolved alias: __FSFILCNT_T_TYPE = __ULONGWORD_TYPE
15 # unresolved alias: __BLKCNT_T_TYPE = __SLONGWORD_TYPE
16 # unresolved alias: __PID_T_TYPE = __S32_TYPE
17 # unresolved alias: __UID_T_TYPE = __U32_TYPE
18 # unresolved alias: __ID_T_TYPE = __U32_TYPE
19 # unresolved alias: __MODE_T_TYPE = __U32_TYPE
20 # unresolved alias: __DADDR_T_TYPE = __S32_TYPE
21 # unresolved alias: volatile = __volatile__
22 # unresolved alias: __SUSECONDS_T_TYPE = __SLONGWORD_TYPE
23 # unresolved alias: __OFF_T_TYPE = __SLONGWORD_TYPE
24 # unresolved alias: __NLINK_T_TYPE = __UWORD_TYPE
25 # unresolved alias: asm = __asm__
26 # unresolved alias: __USECONDS_T_TYPE = __U32_TYPE
27 # unresolved alias: __KEY_T_TYPE = __S32_TYPE
28 # unresolved alias: NULL = __null
29 # unresolved alias: __CLOCK_T_TYPE = __SLONGWORD_TYPE
30 from ctypes import *
31 STRING = c_char_p
32
33
34 RSYS_acl_get_mask = 52
35 A_ff_flags = 48
36 # __SWBLK_T_TYPE = __SLONGWORD_TYPE # alias
37 SW_UM = 15
38 PTF_delete_responsible_user = 13
39 RSYS_um_remove_group = 69
40 EOPNOTSUPP = 95 # Variable c_int
41 ENOTSUP = EOPNOTSUPP # alias
42 ACLGS_add_group = 0
43 RI_type_comp_process = 6
44 PO_non_personal_data = 3
45 ST_time_strucs = 0
46 # __FSBLKCNT_T_TYPE = __ULONGWORD_TYPE # alias
47 RSYS_list_ta_refresh = 86
48 RI_def_unixsock_create_type = 23
49 __BIG_ENDIAN = 4321 # Variable c_int
50 BIG_ENDIAN = __BIG_ENDIAN # alias
51 NTS_get_protocol = 7
52 A_local_log_array_low = 78
53 RI_type_dev_remove = 40
54 RSYS_net_list_all_template = 11
55 A_mac_check = 29
56 RSYS_stats_pm = 28
57 A_daz_scanned = 46
58 A_auth_may_setuid = 59
59 # __SWORD_TYPE = int # alias
60 # __SSIZE_T_TYPE = __SWORD_TYPE # alias
61 R_CHANGE_GROUP = 3
62 # __BLKSIZE_T_TYPE = __SLONGWORD_TYPE # alias
63 def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) # macro
64 A_min_security_level = 5
65 A_max_caps = 63
66 SW_RES = 11
67 __quad_t = c_longlong
68 __SQUAD_TYPE = __quad_t # alias
69 __BLKCNT64_T_TYPE = __SQUAD_TYPE # alias
70 # def __NTH(fct): return fct throw () # macro
71 ST_sysfs = 15
72 PF_set_role = 15
73 D_block = 0
74 R_BIND = 37
75 LDD_none = 3
76 # def __nonnull(params): return __attribute__ ((__nonnull__ params)) # macro
77 UM_pass = 1
78 A_none = 97
79 # def rsbac_max(a,b): return (((a)>(b))?(a):(b)) # macro
80 SL_old_rsbac_internal = 4
81 PH_none = 3
82 T_NETDEV = 9
83 PTF_switch_pm = 17
84 NTS_get_address_family = 5
85 RSYS_auth_remove_f_cap = 43
86 # __INO_T_TYPE = __ULONGWORD_TYPE # alias
87 ACT_group_fs = 5
88 SW_AUTH = 6
89 PTF_add_object_class = 4
90 __u_quad_t = c_ulonglong
91 __UQUAD_TYPE = __u_quad_t # alias
92 __DEV_T_TYPE = __UQUAD_TYPE # alias
93 RSYS_um_auth_uid = 60
94 # __TIME_T_TYPE = __SLONGWORD_TYPE # alias
95 PTF_set_auth_may_set_cap = 21
96 __FSFILCNT64_T_TYPE = __UQUAD_TYPE # alias
97 RSYS_um_get_group_list = 77
98 ACLGS_get_group_members = 8
99 I_shm = 2
100 A_pseudo = 0
101 RSYS_acl_list_all_group = 94
102 ACLC_add_to_acl_entry = 3
103 RI_type_group_name = 31
104 PA_tkt = 6
105 I_sem = 0
106 SR_auditor = 3
107 A_jail_role = 20
108 PL_none = 7
109 RSYS_mac_get_curr_level = 19
110 # def _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5,type6,arg6): return type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) { long __res; struct { long __a1; long __a6; } __s = { (long)arg1, (long)arg6 }; __asm__ volatile ("push %%ebp ; push %%ebx ; movl 4(%2),%%ebp ; " "movl 0(%2),%%ebx ; movl %1,%%eax ; int $0x80 ; " "pop %%ebx ;  pop %%ebp" : "=a" (__res) : "i" (__NR_ ##name),"0" ((long)(&__s)),"c" ((long)(arg2)), "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5)) : "memory"); __syscall_return(type,__res); } # macro
111 A_pm_ipc_purpose = 37
112 GRANTED = 1
113 RSYS_rc_set_item = 36
114 # def RSBAC_IS_AUTO_DEV_DESC(dev): return ((dev.type == D_none) && (dev.major == 99) && (dev.minor == 99)) # macro
115 A_rc_type_nt = 54
116 # def __REDIRECT(name,proto,alias): return name proto __asm__ (__ASMNAME (#alias)) # macro
117 A_auth_last_auth = 94
118 R_GET_PERMISSIONS_DATA = 11
119 __NFDBITS = 32 # Variable c_uint
120 NFDBITS = __NFDBITS # alias
121 LL_denied = 1
122 # def __FD_SET(fd,fdsp): return __asm__ __volatile__ ("btsl %1,%0" : "=m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "r" (((int) (fd)) % __NFDBITS) : "cc","memory") # macro
123 ST_swap = 6
124 T_NONE = 16
125 PF_add_authorized_tp = 6
126 A_mac_file_flags = 13
127 A_jail_scd_get = 71
128 R_SWITCH_LOG = 28
129 # def _syscall2(type,name,type1,arg1,type2,arg2): return type name(type1 arg1,type2 arg2) { long __res; __asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" : "=a" (__res) : "0" (__NR_ ##name),"ri" ((long)(arg1)),"c" ((long)(arg2)) : "memory"); __syscall_return(type,__res); } # macro
130 RC_role_inherit_up_mixed = 4294967292L # Variable c_uint
131 RC_default_root_dir_force_role = RC_role_inherit_up_mixed # alias
132 def __attribute_format_strfmon__(a,b): return __attribute__ ((__format__ (__strfmon__, a, b))) # macro
133 PF_delete_authorized_task = 23
134 A_symlink_add_rc_role = 88
135 R_READ_ATTRIBUTE = 20
136 T_FD = 14
137 R_CHANGE_DAC_FS_OWNER = 45
138 # def _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3): return type name(type1 arg1,type2 arg2,type3 arg3) { long __res; __asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" : "=a" (__res) : "0" (__NR_ ##name),"ri" ((long)(arg1)),"c" ((long)(arg2)), "d" ((long)(arg3)) : "memory"); __syscall_return(type,__res); } # macro
139 SR_none = 4
140 LD_allow = 1
141 T_FILE = 0
142 RI_def_process_chown_type = 19
143 AMS_none = 4
144 T_DEV = 4
145 # def __u_intN_t(N,MODE): return typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE))) # macro
146 RCR_CHANGE_AUTHED_OWNER = 61
147 SW_DAC_DISABLE = 14
148 PTF_add_responsible_user = 12
149 RI_type_comp_user = 5
150 A_log_array_high = 80
151 PO_personal_data = 2
152 RSYS_list_ta_begin = 85
153 RI_def_group_create_type = 22
154 PR_none = 5
155 RI_type_fd_remove = 39
156 RSYS_net_template = 10
157 NTS_get_type = 6
158 A_mac_auto = 28
159 # __S32_TYPE = int # alias
160 # __CLOCKID_T_TYPE = __S32_TYPE # alias
161 RSYS_mac_get_p_trulist = 27
162 RCR_MODIFY_AUTH = 60
163 R_APPEND_OPEN = 2
164 RSBAC_ACL_SUPERVISOR_RIGHT_VECTOR = 288230376151711744L # Variable c_ulonglong
165 RSBAC_NWS_REQUEST_VECTOR = RSBAC_ACL_SUPERVISOR_RIGHT_VECTOR # alias
166 def RSBAC_VERSION_MAKE_NR(x,y,z): return ((x << 16) & (y << 8) & z) # macro
167 A_remote_sec_level = 4
168 R_READ = 19
169 FF_add_inherited = 128 # Variable c_int
170 RSBAC_FF_DEF = FF_add_inherited # alias
171 ST_priority = 14
172 PF_delete_user_aci = 14
173 A_remote_log_array_low = 79
174 LDD_inherit = 2
175 FR_both = 3
176 A_jail_ip = 68
177 A_cap_ld_env = 96
178 def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) # macro
179 SL_top_secret = 3
180 PH_full = 2
181 T_PROCESS = 8
182 PA_ru_set = 9
183 RSYS_auth_add_f_cap = 42
184 __LITTLE_ENDIAN = 1234 # Variable c_int
185 __BYTE_ORDER = __LITTLE_ENDIAN # alias
186 BYTE_ORDER = __BYTE_ORDER # alias
187 ACT_group_eff = 4
188 SW_RC = 5
189 PTF_delete_task = 3
190 RSYS_um_auth_name = 59
191 PTF_set_auth_may_setuid = 20
192 FR_none = 4
193 RSYS_um_get_gm_user_list = 76
194 ACLGS_get_user_groups = 7
195 RI_admin_type = 13
196 PP_TP = 1
197 RSYS_list_all_group = 93
198 ACLC_remove_acl = 2
199 RI_type_process_name = 30
200 PA_pp = 5
201 RSYS_stats = 1
202 ACLG_NONE = 2
203 RI_type_netobj_remove = 47
204 def __LONG_LONG_PAIR(HI,LO): return LO, HI # macro
205 PL_tkt = 6
206 RSYS_mac_set_curr_level = 18
207 LL_invalid = 4
208 A_rc_initial_role = 56
209 A_remote_pm_object_class = 36
210 LL_request = 3
211 RSYS_rc_get_item = 35
212 # def RSBAC_ERROR(res): return ((res <= -RSBAC_EPERM) && (res >= -RSBAC_EMAX)) # macro
213 A_rc_type_fd = 53
214 R_EXECUTE = 10
215 LL_none = 0
216 ST_rlimit = 5
217 PF_delete_object_class = 5
218 A_jail_max_caps = 70
219 R_SHUTDOWN = 27
220 def __GNUC_PREREQ(maj,min): return ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) # macro
221 RC_role_inherit_user = 4294967295L # Variable c_uint
222 RC_default_init_force_role = RC_role_inherit_user # alias
223 PA_task_set = 7
224 ST_capability = 22
225 PF_add_authorized_task = 22
226 A_symlink_add_mac_level = 87
227 R_CHANGE_DAC_EFF_OWNER = 44
228 LD_deny = 0
229 AMS_last_auth_and_gid = 3
230 A_pax_flags = 73
231 NTS_delete_template = 2
232 NTS_set_address_family = 12
233 SW_SOFTMODE = 13
234 PTF_delete_purpose = 11
235 R_SEARCH = 25
236 RI_type_comp_dev = 4
237 RI_def_ipc_create_type = 21
238 PR_system_admin = 4
239 RI_def_fd_ind_create_type_remove = 38
240 PA_none = 13
241 RSYS_net_list_all_netdev = 9
242 RST_none = 33
243 MA_yes = 1
244 def FD_ZERO(fdsetp): return __FD_ZERO (fdsetp) # macro
245 ST_clock = 1
246 RSYS_mac_get_f_trulist = 26
247 RCR_SUPERVISOR = 59
248 A_pm_tp = 44
249 R_ALTER = 1
250 RI_type_nettemp_remove = 46
251 # def RSBAC_SCD_VECTOR(x): return ((rsbac_scd_vector_t) 1 << (x)) # macro
252 A_local_sec_level = 3
253 A_auth_learn = 61
254 SW_CAP = 9
255 R_MOUNT = 18
256 RC_role_use_force_role = 4294967291L # Variable c_uint
257 RC_default_root_dir_initial_role = RC_role_use_force_role # alias
258 # def __LDBL_REDIR_NTH(name,proto): return name proto __THROW # macro
259 ST_firewall = 13
260 PF_delete_responsible_user = 13
261 ACLC_remove_user = 6
262 R_WRITE_OPEN = 35
263 LDD_true = 1
264 PA_class = 1
265 # def __intN_t(N,MODE): return typedef int int ##N ##_t __attribute__ ((__mode__ (MODE))) # macro
266 FR_euid_only = 2
267 NTS_new_template = 0
268 # __RLIM_T_TYPE = __ULONGWORD_TYPE # alias
269 A_remote_ip = 95
270 ACLC_remove_from_acl_entry = 4
271 I_none = 6
272 def minor(dev): return gnu_dev_minor (dev) # macro
273 SL_secret = 2
274 PH_from_other_users = 1
275 NTS_check_id = 3
276 RSYS_auth_remove_p_cap = 41
277 ACT_group_real = 3
278 PTF_add_task = 2
279 RSYS_rc_get_current_role = 58
280 __U64_TYPE = __u_quad_t # alias
281 PTF_set_device_object_type = 19
282 # __GID_T_TYPE = __U32_TYPE # alias
283 RSYS_um_get_gm_list = 75
284 ACLGS_remove_member = 6
285 RI_type_comp_netobj = 12
286 PP_none = 0
287 # __FSFILCNT_T_TYPE = __ULONGWORD_TYPE # alias
288 RSYS_acl_list_all_user = 92
289 ACLC_remove_acl_entry = 1
290 RI_type_user_name = 29
291 RSYS_version = 0
292 ACLG_PRIVATE = 1
293 RSYS_check = 2
294 PL_pp = 5
295 RI_name = 14
296 RSYS_log = 17
297 RI_type_netobj_name = 34
298 A_local_pm_object_class = 35
299 RSYS_rc_copy_type = 34
300 # def RSBAC_ACL_RIGHTS_VECTOR(x): return ((rsbac_acl_rights_vector_t) 1 << (x)) # macro
301 A_remote_rc_type = 52
302 PF_switch_auth = 18
303 R_DELETE = 9
304 RC_role_inherit_parent = 4294967293L # Variable c_uint
305 RC_default_initial_role = RC_role_inherit_parent # alias
306 # def __FD_CLR(fd,fdsp): return __asm__ __volatile__ ("btrl %1,%0" : "=m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "r" (((int) (fd)) % __NFDBITS) : "cc","memory") # macro
307 ST_ioports = 4
308 PF_add_object_class = 4
309 A_mac_user_flags = 11
310 A_jail_flags = 69
311 R_SEND_SIGNAL = 26
312 PA_na = 2
313 # def __acquire(x): return (void)0 # macro
314 ST_mlock = 21
315 PF_set_auth_may_set_cap = 21
316 A_symlink_add_uid = 86
317 R_NET_SHUTDOWN = 43
318 # def _syscall1(type,name,type1,arg1): return type name(type1 arg1) { long __res; __asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" : "=a" (__res) : "0" (__NR_ ##name),"ri" ((long)(arg1)) : "memory"); __syscall_return(type,__res); } # macro
319 SR_administrator = 2
320 PTF_set_object_class = 16
321 AMS_last_auth_only = 2
322 T_UNIXSOCK = 15
323 # def __FD_ZERO(fdsp): return do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; stosl" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&__FDS_BITS (fdsp)[0]) : "memory"); } while (0) # macro
324 NTS_set_address = 11
325 RSYS_acl_get_rights_n = 49
326 SW_PAX = 12
327 T_USER = 7
328 PTF_add_purpose = 10
329 # __BLKCNT_T_TYPE = __SLONGWORD_TYPE # alias
330 RSYS_um_get_user_item = 66
331 RSYS_um_mod_group = 65
332 ACLGS_change_group = 1
333 RI_type_comp_fd = 3
334 PO_none = 0
335 RSYS_um_check_account = 83
336 RI_def_process_execute_type = 20
337 RI_type_netdev_name = 32
338 PR_tp_manager = 3
339 RI_remove_role = 37
340 PA_out_pp_set = 12
341 RSYS_remove_target_n = 8
342 PF_set_object_class = 16
343 RST_auth_administration = 32
344 A_max_read_open = 26
345 RSYS_mac_remove_f_tru = 25
346 RCR_ACCESS_CONTROL = 58
347 A_pm_program_type = 43
348 SW_FF = 4
349 R_ADD_TO_KERNEL = 0
350 MAC_override = 1 # Variable c_int
351 RSBAC_MAC_DEF_SECOFF_U_FLAGS = MAC_override # alias
352 # def RSBAC_REQUEST_VECTOR(x): return ((rsbac_request_vector_t) 1 << (x)) # macro
353 A_initial_security_level = 2
354 A_auth_may_set_cap = 60
355 # __PID_T_TYPE = __S32_TYPE # alias
356 # def offsetof(TYPE,MEMBER): return ((size_t) &((TYPE *)0)->MEMBER) # macro
357 R_MODIFY_SYSTEM_DATA = 17
358 MAC_auto = 2 # Variable c_int
359 RSBAC_MAC_DEF_INIT_P_FLAGS = MAC_auto # alias
360 # def __LDBL_REDIR1_NTH(name,proto,alias): return name proto __THROW # macro
361 PF_add_responsible_user = 12
362 FR_uid_only = 1
363 A_log_array_low = 77
364 R_WRITE = 34
365 LDD_false = 0
366 # def __FD_ISSET(fd,fdsp): return (__extension__ ({register char __result; __asm__ __volatile__ ("btl %1,%2 ; setcb %b0" : "=q" (__result) : "r" (((int) (fd)) % __NFDBITS), "m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "cc"); __result; })) # macro
367 R_NONE = 51
368 I_anonunix = 5
369 def makedev(maj,min): return gnu_dev_makedev (maj, min) # macro
370 SL_confidential = 1
371 PH_off = 0
372 T_SCD = 6
373 RSYS_auth_add_p_cap = 40
374 ACT_fs = 2
375 SW_DAZ = 3
376 PTF_delete_na = 1
377 NOT_GRANTED = 0
378 PTF_switch_auth = 18
379 RSYS_um_get_user_list = 74
380 RI_type_comp_nettemp = 11
381 RSYS_list_all_user = 91
382 ACLC_set_acl_entry = 0
383 RI_type_ipc_name = 28
384 PA_cs = 3
385 ACLG_GLOBAL = 0
386 # __UID_T_TYPE = __U32_TYPE # alias
387 RI_type_netdev_remove = 45
388 PL_tp = 4
389 RSYS_write = 16
390 RSBAC_GROUP_REQUEST_VECTOR = 17230797568L # Variable c_ulonglong
391 RSBAC_ACL_GROUP_RIGHTS_VECTOR = RSBAC_GROUP_REQUEST_VECTOR # alias
392 A_pm_object_class = 34
393 RSYS_rc_copy_role = 33
394 # def NIPQUAD(addr): return ((unsigned char *)&addr)[0], ((unsigned char *)&addr)[1], ((unsigned char *)&addr)[2], ((unsigned char *)&addr)[3] # macro
395 A_local_rc_type = 51
396 R_CREATE = 8
397 __FSBLKCNT64_T_TYPE = __UQUAD_TYPE # alias
398 # def __FDS_BITS(set): return ((set)->fds_bits) # macro
399 ST_net_id = 3
400 A_mac_min_categories = 10
401 RSBAC_RC_DEFAULT_RIGHTS_VECTOR = 0 # Variable c_int
402 RSBAC_RC_GEN_RIGHTS_VECTOR = RSBAC_RC_DEFAULT_RIGHTS_VECTOR # alias
403 A_mac_prop_trusted = 30
404 def __STRING(x): return #x # macro
405 ST_ksyms = 20
406 PF_set_auth_may_setuid = 20
407 __RLIM64_T_TYPE = __UQUAD_TYPE # alias
408 A_symlink_add_remote_ip = 85
409 # def _syscall0(type,name): return type name(void) { long __res; __asm__ volatile ("int $0x80" : "=a" (__res) : "0" (__NR_ ##name)); __syscall_return(type,__res); } # macro
410 SR_security_officer = 1
411 ACLR_SUPERVISOR = 58
412 RSYS_rc_change_role = 37
413 ST_kexec = 23
414 A_max_read_categories = 27
415 D_none = 4
416 AMS_full = 1
417 ST_none = 24
418 RI_assign_roles = 2
419 ST_syslog = 7
420 # __ID_T_TYPE = __U32_TYPE # alias
421 RI_type_scd_name = 36
422 PA_in_pp_set = 11
423 RSYS_remove_target = 7
424 A_min_write_categories = 25
425 RSYS_mac_add_f_tru = 24
426 A_remote_pm_object_type = 42
427 # def RSBAC_RC_TYPE_VECTOR(x): return ((rsbac_rc_type_vector_t) 1 << (x)) # macro
428 A_security_level = 1
429 PTF_delete_consent = 9
430 R_MODIFY_PERMISSIONS_DATA = 16
431 CAP_NONE = 29 # Variable c_int
432 RSBAC_CAP_MAX = CAP_NONE # alias
433 # def __LDBL_REDIR1(name,proto,alias): return name proto # macro
434 ST_kmem = 11
435 PF_delete_purpose = 11
436 A_auth_role = 18
437 A_res_max = 76
438 R_UMOUNT = 33
439 FR_off = 0
440 PF_none = 28
441 A_auid_exempt = 93
442 R_AUTHENTICATE = 50
443 I_mqueue = 4
444 PA_tp = 4
445 def major(dev): return gnu_dev_major (dev) # macro
446 SL_unclassified = 0
447 UM_none = 14
448 T_IPC = 5
449 NTS_copy_template = 1
450 RSYS_rc_get_list = 39
451 ACT_eff = 1
452 SW_PM = 2
453 PTF_add_na = 0
454 RSYS_jail = 56
455 __S64_TYPE = __quad_t # alias
456 RSBAC_ACL_ACCESS_CONTROL_RIGHT_VECTOR = 144115188075855872L # Variable c_ulonglong
457 RSBAC_NWA_REQUEST_VECTOR = RSBAC_ACL_ACCESS_CONTROL_RIGHT_VECTOR # alias
458 RSYS_um_get_next_user = 73
459 ACLGS_list_groups = 4
460 RI_type_comp_netdev = 10
461 # __MODE_T_TYPE = __U32_TYPE # alias
462 RSYS_acl_list_all_dev = 90
463 RI_type_dev_name = 27
464 RSYS_um_remove_user = 68
465 RSYS_init = 57
466 # def HIPQUAD(addr): return ((unsigned char *)&addr)[3], ((unsigned char *)&addr)[2], ((unsigned char *)&addr)[1], ((unsigned char *)&addr)[0] # macro
467 RI_type_group_remove = 44
468 RSYS_get_adf_log = 15
469 RC_none = 3
470 AST_none = 33
471 A_pm_current_task = 33
472 RSYS_set_attr = 5
473 RSYS_daz_flush_cache = 32
474 ACLS_NONE = 3
475 A_rc_select_type = 50
476 R_CLOSE = 7
477 DAZ_unscanned = 0 # Variable c_int
478 DEFAULT_DAZ_FD_SCANNED = DAZ_unscanned # alias
479 NTS_none = 18
480 # def __FDMASK(d): return (1UL << ((d) % __NFDBITS)) # macro
481 PF_add_task = 2
482 A_remote_mac_categories = 9
483 A_jail_parent = 67
484 R_RENAME = 24
485 # def __REDIRECT_NTH(name,proto,alias): return name proto __THROW __asm__ (__ASMNAME (#alias)) # macro
486 ST_nfsd = 19
487 PF_set_device_object_type = 19
488 A_log_user_based = 84
489 # def __warndecl(name,msg): return extern void name (void) # macro
490 SR_user = 0
491 UM_group = 5
492 D_char_major = 3
493 AMS_off = 0
494 T_GROUP = 13
495 RSYS_acl_n = 47
496 SW_JAIL = 10
497 PTF_add_consent = 8
498 # __DADDR_T_TYPE = __S32_TYPE # alias
499 RSYS_um_mod_user = 64
500 RI_admin_roles = 1
501 # volatile = __volatile__ # alias
502 T_NETTEMP = 10
503 __INO64_T_TYPE = __UQUAD_TYPE # alias
504 RSYS_um_set_pass_name = 81
505 PR_security_officer = 1
506 ACLC_none = 7
507 RI_type_fd_need_secdel = 35
508 PA_pp_set = 10
509 RSYS_set_attr_n = 6
510 A_min_write_open = 24
511 UM_expire = 11
512 RSYS_mac_remove_p_tru = 23
513 UM_inactive = 10
514 RCR_ADMIN = 56
515 ACLR_NONE = 59
516 A_local_pm_object_type = 41
517 UM_warnchange = 9
518 MA_no = 0
519 # def RSBAC_RC_ROLE_VECTOR(x): return ((rsbac_rc_role_vector_t) 1 << (x)) # macro
520 A_rc_def_role = 58
521 UM_maxchange = 8
522 R_MODIFY_ATTRIBUTE = 15
523 # def __LDBL_REDIR(name,proto): return name proto # macro
524 PF_add_purpose = 10
525 UM_minchange = 7
526 ACLGS_add_member = 5
527 __OFF64_T_TYPE = __SQUAD_TYPE # alias
528 A_res_min = 75
529 R_TRUNCATE = 32
530 UM_lastchange = 6
531 # def __chk_io_ptr(x): return (void)0 # macro
532 PF_create_ticket = 27
533 A_audit_uid = 92
534 R_LOCK = 49
535 I_anonpipe = 3
536 # def cond_syscall(x): return asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") # macro
537 UM_cryptpass = 13
538 UM_shell = 4
539 # __SUSECONDS_T_TYPE = __SLONGWORD_TYPE # alias
540 UM_homedir = 3
541 ACT_real = 0
542 SW_MAC = 1
543 UM_fullname = 2
544 NTS_set_name = 17
545 RSYS_reg = 55
546 # __OFF_T_TYPE = __SLONGWORD_TYPE # alias
547 # def __ASMNAME2(prefix,cname): return __STRING (prefix) cname # macro
548 __FLOAT_WORD_ORDER = __BYTE_ORDER # alias
549 RSYS_um_group_exists = 72
550 ACLGS_get_group_entry = 3
551 UM_name = 0
552 RI_type_comp_group = 9
553 # __NLINK_T_TYPE = __UWORD_TYPE # alias
554 # asm = __asm__ # alias
555 NTS_set_protocol = 14
556 RI_type_fd_name = 26
557 NTS_set_type = 13
558 __PDP_ENDIAN = 3412 # Variable c_int
559 PDP_ENDIAN = __PDP_ENDIAN # alias
560 RI_type_process_remove = 43
561 RSYS_adf_log_switch = 14
562 T_NETTEMP_NT = 12
563 RC_system_admin = 2
564 AST_auth_administration = 32
565 A_pm_process_type = 32
566 NTS_get_name = 10
567 RSYS_pm_create_file = 31
568 ACLS_GROUP = 2
569 A_rc_type = 49
570 NTS_get_ports = 9
571 R_CLONE = 6
572 def __FDELT(d): return ((d) / __NFDBITS) # macro
573 NTS_get_netdev = 8
574 A_min_caps = 62
575 PF_delete_na = 1
576 A_local_mac_categories = 8
577 A_jail_id = 66
578 R_REMOVE_FROM_KERNEL = 23
579 RSYS_acl_get_tlist_n = 51
580 ST_sysctl = 18
581 A_log_program_based = 83
582 def FD_CLR(fd,fdsetp): return __FD_CLR (fd, fdsetp) # macro
583 R_CONNECT = 40
584 PF_delete_consent = 9
585 RI_def_process_create_type = 18
586 PF_create_tp = 24
587 D_block_major = 2
588 # def RSBAC_RC_RIGHTS_VECTOR(x): return ((rsbac_rc_rights_vector_t) 1 << (x)) # macro
589 RSYS_acl = 46
590 PTF_delete_authorized_tp = 7
591 EDEADLK = 35 # Variable c_int
592 EDEADLOCK = EDEADLK # alias
593 RI_role_comp = 0
594 PTF_none = 24
595 # __USECONDS_T_TYPE = __U32_TYPE # alias
596 RI_def_user_create_type = 17
597 PR_user = 0
598 A_mac_curr_categories = 23
599 RSYS_mac_add_p_tru = 22
600 A_pm_object_type = 40
601 NTS_set_ports = 16
602 A_rc_role = 57
603 RC_default_force_role = RC_role_inherit_parent # alias
604 ST_rsbac_log = 9
605 A_daz_role = 16
606 A_res_role = 74
607 EAGAIN = 11 # Variable c_int
608 EWOULDBLOCK = EAGAIN # alias
609 def __cast__(_to): return (_to) # macro
610 PF_set_tp = 26
611 A_fake_root_uid = 91
612 R_IOCTL = 48
613 UM_ttl = 12
614 ST_host_id = 2
615 SW_GEN = 0
616 PF_delete_authorized_tp = 7
617 RSYS_acl_group = 54
618 RSYS_none = 97
619 SW_NONE = 17
620 PTF_set_role = 15
621 RSYS_um_user_exists = 71
622 ACLGS_remove_group = 2
623 RSYS_rc_select_fd_create_type = 96
624 RI_type_comp_scd = 8
625 PO_dir = 5
626 RSYS_list_all_ipc = 95
627 NTS_get_address = 4
628 RSYS_list_ta_forget = 88
629 RI_req_reauth = 25
630 PF_delete_task = 3
631 PA_task = 0
632 RI_type_user_remove = 42
633 PL_class = 1
634 RSYS_get_switch = 13
635 RC_role_admin = 1
636 A_pm_role = 31
637 R_CHANGE_DAC_EFF_GROUP = 46
638 RSYS_pm_change_current_task = 30
639 RCR_NONE = 63
640 ACLS_ROLE = 1
641 R_CHDIR = 5
642 A_pm_task_set = 45
643 def __CONCAT(x,y): return x ## y # macro
644 RSYS_list_all_dev = 89
645 PF_add_na = 0
646 A_mac_initial_categories = 7
647 A_max_caps_program = 65
648 R_READ_OPEN = 22
649 ST_other = 10
650 def __PMT(args): return args # macro
651 ST_quota = 17
652 PF_switch_pm = 17
653 A_remote_log_array_high = 82
654 R_RECEIVE = 42
655 def FD_SET(fd,fdsetp): return __FD_SET (fd, fdsetp) # macro
656 R_ACCEPT = 39
657 # def __syscall_return(type,res): return do { if ((unsigned long)(res) >= (unsigned long)(-(128 + 1))) { errno = -(res); res = -1; } return (type) (res); } while (0) # macro
658 R_SEND = 41
659 A_ff_role = 17
660 D_char = 1
661 SL_old_none = 6
662 T_NETOBJ = 11
663 RSYS_um_check_account_name = 84
664 RSYS_auth_get_p_caplist = 45
665 PL_cs = 3
666 SW_ACL = 8
667 PTF_add_authorized_tp = 6
668 PL_na = 2
669 RSYS_um_add_group = 62
670 R_MAP_EXEC = 36
671 PTF_delete_authorized_task = 23
672 RSYS_um_get_gid = 79
673 RI_def_fd_ind_create_type = 16
674 RSYS_um_set_pass = 80
675 def __cond_lock(x): return (x) # macro
676 LITTLE_ENDIAN = __LITTLE_ENDIAN # alias
677 ACLC_set_mask = 5
678 RI_type_nettemp_name = 33
679 PA_tp_set = 8
680 RSYS_um_get_uid = 78
681 RSYS_get_attr_n = 4
682 RSYS_list_ta_commit = 87
683 RT_TYPE = 1
684 A_current_sec_level = 22
685 RSYS_mac_get_min_level = 21
686 R_TRACE = 31
687 ST_rsbac = 8
688 ACLR_ACCESS_CONTROL = 57
689 A_remote_pm_ipc_purpose = 39
690 RSYS_rc_get_eff_rights_n = 38
691 # def RSBAC_MAC_CAT_VECTOR(x): return ((rsbac_mac_category_vector_t) 1 << (x)) # macro
692 R_SWITCH_MODULE = 29
693 # def __chk_user_ptr(x): return (void)0 # macro
694 R_LINK_HARD = 13
695 def __GLIBC_PREREQ(maj,min): return ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) # macro
696 PF_add_consent = 8
697 A_mac_role = 15
698 R_TERMINATE = 30
699 MAC_allow_auto = 64 # Variable c_int
700 RSBAC_MAC_DEF_SYSADM_U_FLAGS = MAC_allow_auto # alias
701 def __bos0(ptr): return __builtin_object_size (ptr, 0) # macro
702 PF_delete_tp = 25
703 A_cap_process_hiding = 90
704 def FD_ISSET(fd,fdsetp): return __FD_ISSET (fd, fdsetp) # macro
705 R_CHANGE_DAC_FS_GROUP = 47
706 I_msg = 1
707 # def _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5): return type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) { long __res; __asm__ volatile ("push %%ebx ; movl %2,%%ebx ; movl %1,%%eax ; " "int $0x80 ; pop %%ebx" : "=a" (__res) : "i" (__NR_ ##name),"ri" ((long)(arg1)),"c" ((long)(arg2)), "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5)) : "memory"); __syscall_return(type,__res); } # macro
708 LD_inherit = 3
709 T_FIFO = 2
710 RCR_ASSIGN = 57
711 T_SYMLINK = 3
712 NTS_set_netdev = 15
713 RSYS_acl_get_mask_n = 53
714 RSYS_um_get_group_item = 67
715 MA_inherit = 2
716 SW_FREEZE = 16
717 PTF_delete_user_aci = 14
718 RSYS_um_remove_gm = 70
719 RI_type_comp_ipc = 7
720 # __KEY_T_TYPE = __S32_TYPE # alias
721 RI_boot_role = 24
722 RI_none = 48
723 RSYS_um_add_gm = 63
724 RI_type_ipc_remove = 41
725 PL_task = 0
726 RSYS_switch = 12
727 RC_no_admin = 0
728 RSYS_um_add_user = 61
729 RSYS_pm = 29
730 RCR_SELECT = 62
731 ACLS_USER = 0
732 A_daz_scanner = 47
733 ST_network = 12
734 R_CHANGE_OWNER = 4
735 # NULL = __null # alias
736 R_MODIFY_ACCESS_DATA = 14
737 A_mac_categories = 6
738 A_max_caps_user = 64
739 PR_data_protection_officer = 2
740 R_READ_WRITE_OPEN = 21
741 A_pax_role = 21
742 def __P(args): return args # macro
743 ST_rsbac_remote_log = 16
744 A_local_log_array_high = 81
745 R_GET_STATUS_DATA = 12
746 # def __release(x): return (void)0 # macro
747 # def rsbac_min(a,b): return (((a)<(b))?(a):(b)) # macro
748 SL_old_inherit = 5
749 R_LISTEN = 38
750 ACT_none = 6
751 SW_REG = 7
752 PTF_delete_object_class = 5
753 DO_NOT_CARE = 2
754 # __CLOCK_T_TYPE = __SLONGWORD_TYPE # alias
755 # def __isleap(year): return ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) # macro
756 PTF_add_authorized_task = 22
757 ACLGS_none = 9
758 RI_def_fd_create_type = 15
759 RSYS_acl_get_tlist = 50
760 RT_NONE = 2
761 __FD_SETSIZE = 1024 # Variable c_int
762 FD_SETSIZE = __FD_SETSIZE # alias
763 RSYS_acl_get_rights = 48
764 RSYS_get_attr = 3
765 RSYS_um_set_group_pass = 82
766 RT_ROLE = 0
767 RSYS_mac_get_max_level = 20
768 PO_ipc = 4
769 A_cap_role = 19
770 ACLR_FORWARD = 56
771 A_local_pm_ipc_purpose = 38
772 # def RSBAC_IS_ZERO_DEV_DESC(dev): return ((dev.type == D_none) && !dev.major && !dev.minor) # macro
773 A_rc_force_role = 55
774 RSYS_auth_get_f_caplist = 44
775 LL_full = 2
776 PO_TP = 1
777 A_system_role = 14
778 A_jail_scd_modify = 72
779 def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) # macro
780 A_linux_dac_disable = 89
781 UNDEFINED = 3
782 # def _syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4): return type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) { long __res; __asm__ volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx" : "=a" (__res) : "0" (__NR_ ##name),"ri" ((long)(arg1)),"c" ((long)(arg2)), "d" ((long)(arg3)),"S" ((long)(arg4)) : "memory"); __syscall_return(type,__res); } # macro
783 A_mac_process_flags = 12
784 LD_keep = 2
785 T_DIR = 1
786
787 # values for enumeration 'rsbac_acl_subject_type_t'
788 rsbac_acl_subject_type_t = c_int # enum
789 __u8 = c_ubyte
790 rsbac_acl_int_subject_type_t = __u8
791 __u32 = c_uint
792 rsbac_acl_subject_id_t = __u32
793
794 # values for enumeration 'rsbac_acl_special_rights_t'
795 rsbac_acl_special_rights_t = c_int # enum
796 __u64 = c_ulonglong
797 rsbac_acl_rights_vector_t = __u64
798
799 # values for enumeration 'rsbac_acl_scd_type_t'
800 rsbac_acl_scd_type_t = c_int # enum
801 class rsbac_acl_entry_t(Structure):
802     pass
803 rsbac_acl_entry_t._pack_ = 4
804 rsbac_acl_entry_t._fields_ = [
805     ('subj_type', rsbac_acl_int_subject_type_t),
806     ('subj_id', rsbac_acl_subject_id_t),
807     ('rights', rsbac_acl_rights_vector_t),
808 ]
809 assert sizeof(rsbac_acl_entry_t) == 16, sizeof(rsbac_acl_entry_t)
810 assert alignment(rsbac_acl_entry_t) == 4, alignment(rsbac_acl_entry_t)
811 class rsbac_acl_entry_desc_t(Structure):
812     pass
813 rsbac_acl_entry_desc_t._fields_ = [
814     ('subj_type', rsbac_acl_int_subject_type_t),
815     ('subj_id', rsbac_acl_subject_id_t),
816 ]
817 assert sizeof(rsbac_acl_entry_desc_t) == 8, sizeof(rsbac_acl_entry_desc_t)
818 assert alignment(rsbac_acl_entry_desc_t) == 4, alignment(rsbac_acl_entry_desc_t)
819
820 # values for enumeration 'rsbac_acl_group_type_t'
821 rsbac_acl_group_type_t = c_int # enum
822 rsbac_acl_group_id_t = __u32
823 class rsbac_acl_group_entry_t(Structure):
824     pass
825 rsbac_uid_t = __u32
826 rsbac_acl_group_entry_t._fields_ = [
827     ('id', rsbac_acl_group_id_t),
828     ('owner', rsbac_uid_t),
829     ('type', rsbac_acl_group_type_t),
830     ('name', c_char * 16),
831 ]
832 assert sizeof(rsbac_acl_group_entry_t) == 28, sizeof(rsbac_acl_group_entry_t)
833 assert alignment(rsbac_acl_group_entry_t) == 4, alignment(rsbac_acl_group_entry_t)
834
835 # values for enumeration 'rsbac_acl_syscall_type_t'
836 rsbac_acl_syscall_type_t = c_int # enum
837 class rsbac_acl_syscall_arg_t(Structure):
838     pass
839
840 # values for enumeration 'rsbac_target_t'
841 rsbac_target_t = c_int # enum
842 class rsbac_target_id_t(Union):
843     pass
844 class rsbac_dev_desc_t(Structure):
845     pass
846 rsbac_dev_desc_t._fields_ = [
847     ('type', __u32),
848     ('major', __u32),
849     ('minor', __u32),
850 ]
851 assert sizeof(rsbac_dev_desc_t) == 12, sizeof(rsbac_dev_desc_t)
852 assert alignment(rsbac_dev_desc_t) == 4, alignment(rsbac_dev_desc_t)
853 class rsbac_ipc_t(Structure):
854     pass
855
856 # values for enumeration 'rsbac_ipc_type_t'
857 rsbac_ipc_type_t = c_int # enum
858 class rsbac_ipc_id_t(Union):
859     pass
860 __u_long = c_ulong
861 u_long = __u_long
862 rsbac_ipc_id_t._fields_ = [
863     ('id_nr', u_long),
864 ]
865 assert sizeof(rsbac_ipc_id_t) == 4, sizeof(rsbac_ipc_id_t)
866 assert alignment(rsbac_ipc_id_t) == 4, alignment(rsbac_ipc_id_t)
867 rsbac_ipc_t._fields_ = [
868     ('type', rsbac_ipc_type_t),
869     ('id', rsbac_ipc_id_t),
870 ]
871 assert sizeof(rsbac_ipc_t) == 8, sizeof(rsbac_ipc_t)
872 assert alignment(rsbac_ipc_t) == 4, alignment(rsbac_ipc_t)
873 rsbac_enum_t = __u8
874 rsbac_gid_t = __u32
875 rsbac_pid_t = __u32
876 __u_char = c_ubyte
877 u_char = __u_char
878 rsbac_netdev_id_t = u_char * 17
879 rsbac_net_temp_id_t = __u32
880 class rsbac_net_obj_desc_t(Structure):
881     pass
882 rsbac_net_obj_id_t = c_void_p
883 __u_int = c_uint
884 u_int = __u_int
885 rsbac_net_obj_desc_t._fields_ = [
886     ('sock_p', rsbac_net_obj_id_t),
887     ('local_addr', c_void_p),
888     ('local_len', u_int),
889     ('remote_addr', c_void_p),
890     ('remote_len', u_int),
891     ('local_temp', rsbac_net_temp_id_t),
892     ('remote_temp', rsbac_net_temp_id_t),
893 ]
894 assert sizeof(rsbac_net_obj_desc_t) == 28, sizeof(rsbac_net_obj_desc_t)
895 assert alignment(rsbac_net_obj_desc_t) == 4, alignment(rsbac_net_obj_desc_t)
896 rsbac_target_id_t._fields_ = [
897     ('dev', rsbac_dev_desc_t),
898     ('ipc', rsbac_ipc_t),
899     ('scd', rsbac_enum_t),
900     ('user', rsbac_uid_t),
901     ('group', rsbac_gid_t),
902     ('process', rsbac_pid_t),
903     ('netdev', rsbac_netdev_id_t),
904     ('nettemp', rsbac_net_temp_id_t),
905     ('netobj', rsbac_net_obj_desc_t),
906     ('dummy', c_int),
907 ]
908 assert sizeof(rsbac_target_id_t) == 28, sizeof(rsbac_target_id_t)
909 assert alignment(rsbac_target_id_t) == 4, alignment(rsbac_target_id_t)
910 rsbac_time_t = __u32
911 rsbac_acl_syscall_arg_t._pack_ = 4
912 rsbac_acl_syscall_arg_t._fields_ = [
913     ('target', rsbac_target_t),
914     ('tid', rsbac_target_id_t),
915     ('subj_type', rsbac_acl_subject_type_t),
916     ('subj_id', rsbac_acl_subject_id_t),
917     ('rights', rsbac_acl_rights_vector_t),
918     ('ttl', rsbac_time_t),
919 ]
920 assert sizeof(rsbac_acl_syscall_arg_t) == 52, sizeof(rsbac_acl_syscall_arg_t)
921 assert alignment(rsbac_acl_syscall_arg_t) == 4, alignment(rsbac_acl_syscall_arg_t)
922 class rsbac_acl_syscall_n_arg_t(Structure):
923     pass
924 rsbac_acl_syscall_n_arg_t._pack_ = 4
925 rsbac_acl_syscall_n_arg_t._fields_ = [
926     ('target', rsbac_target_t),
927     ('name', STRING),
928     ('subj_type', rsbac_acl_subject_type_t),
929     ('subj_id', rsbac_acl_subject_id_t),
930     ('rights', rsbac_acl_rights_vector_t),
931     ('ttl', rsbac_time_t),
932 ]
933 assert sizeof(rsbac_acl_syscall_n_arg_t) == 28, sizeof(rsbac_acl_syscall_n_arg_t)
934 assert alignment(rsbac_acl_syscall_n_arg_t) == 4, alignment(rsbac_acl_syscall_n_arg_t)
935
936 # values for enumeration 'rsbac_acl_group_syscall_type_t'
937 rsbac_acl_group_syscall_type_t = c_int # enum
938 class rsbac_acl_add_group_arg_t(Structure):
939     pass
940 rsbac_acl_add_group_arg_t._fields_ = [
941     ('type', rsbac_acl_group_type_t),
942     ('name', STRING),
943     ('group_id_p', POINTER(rsbac_acl_group_id_t)),
944 ]
945 assert sizeof(rsbac_acl_add_group_arg_t) == 12, sizeof(rsbac_acl_add_group_arg_t)
946 assert alignment(rsbac_acl_add_group_arg_t) == 4, alignment(rsbac_acl_add_group_arg_t)
947 class rsbac_acl_change_group_arg_t(Structure):
948     pass
949 rsbac_acl_change_group_arg_t._fields_ = [
950     ('id', rsbac_acl_group_id_t),
951     ('owner', rsbac_uid_t),
952     ('type', rsbac_acl_group_type_t),
953     ('name', STRING),
954 ]
955 assert sizeof(rsbac_acl_change_group_arg_t) == 16, sizeof(rsbac_acl_change_group_arg_t)
956 assert alignment(rsbac_acl_change_group_arg_t) == 4, alignment(rsbac_acl_change_group_arg_t)
957 class rsbac_acl_remove_group_arg_t(Structure):
958     pass
959 rsbac_acl_remove_group_arg_t._fields_ = [
960     ('id', rsbac_acl_group_id_t),
961 ]
962 assert sizeof(rsbac_acl_remove_group_arg_t) == 4, sizeof(rsbac_acl_remove_group_arg_t)
963 assert alignment(rsbac_acl_remove_group_arg_t) == 4, alignment(rsbac_acl_remove_group_arg_t)
964 class rsbac_acl_get_group_entry_arg_t(Structure):
965     pass
966 rsbac_acl_get_group_entry_arg_t._fields_ = [
967     ('id', rsbac_acl_group_id_t),
968     ('entry_p', POINTER(rsbac_acl_group_entry_t)),
969 ]
970 assert sizeof(rsbac_acl_get_group_entry_arg_t) == 8, sizeof(rsbac_acl_get_group_entry_arg_t)
971 assert alignment(rsbac_acl_get_group_entry_arg_t) == 4, alignment(rsbac_acl_get_group_entry_arg_t)
972 class rsbac_acl_list_groups_arg_t(Structure):
973     pass
974 rsbac_boolean_t = u_int
975 rsbac_acl_list_groups_arg_t._fields_ = [
976     ('include_global', rsbac_boolean_t),
977     ('group_entry_array', POINTER(rsbac_acl_group_entry_t)),
978     ('maxnum', u_int),
979 ]
980 assert sizeof(rsbac_acl_list_groups_arg_t) == 12, sizeof(rsbac_acl_list_groups_arg_t)
981 assert alignment(rsbac_acl_list_groups_arg_t) == 4, alignment(rsbac_acl_list_groups_arg_t)
982 class rsbac_acl_add_member_arg_t(Structure):
983     pass
984 rsbac_acl_add_member_arg_t._fields_ = [
985     ('group', rsbac_acl_group_id_t),
986     ('user', rsbac_uid_t),
987     ('ttl', rsbac_time_t),
988 ]
989 assert sizeof(rsbac_acl_add_member_arg_t) == 12, sizeof(rsbac_acl_add_member_arg_t)
990 assert alignment(rsbac_acl_add_member_arg_t) == 4, alignment(rsbac_acl_add_member_arg_t)
991 class rsbac_acl_remove_member_arg_t(Structure):
992     pass
993 rsbac_acl_remove_member_arg_t._fields_ = [
994     ('group', rsbac_acl_group_id_t),
995     ('user', rsbac_uid_t),
996 ]
997 assert sizeof(rsbac_acl_remove_member_arg_t) == 8, sizeof(rsbac_acl_remove_member_arg_t)
998 assert alignment(rsbac_acl_remove_member_arg_t) == 4, alignment(rsbac_acl_remove_member_arg_t)
999 class rsbac_acl_get_user_groups_arg_t(Structure):
1000     pass
1001 rsbac_acl_get_user_groups_arg_t._fields_ = [
1002     ('user', rsbac_uid_t),
1003     ('group_array', POINTER(rsbac_acl_group_id_t)),
1004     ('ttl_array', POINTER(rsbac_time_t)),
1005     ('maxnum', u_int),
1006 ]
1007 assert sizeof(rsbac_acl_get_user_groups_arg_t) == 16, sizeof(rsbac_acl_get_user_groups_arg_t)
1008 assert alignment(rsbac_acl_get_user_groups_arg_t) == 4, alignment(rsbac_acl_get_user_groups_arg_t)
1009 class rsbac_acl_get_group_members_arg_t(Structure):
1010     pass
1011 rsbac_acl_get_group_members_arg_t._fields_ = [
1012     ('group', rsbac_acl_group_id_t),
1013     ('user_array', POINTER(rsbac_uid_t)),
1014     ('ttl_array', POINTER(rsbac_time_t)),
1015     ('maxnum', u_int),
1016 ]
1017 assert sizeof(rsbac_acl_get_group_members_arg_t) == 16, sizeof(rsbac_acl_get_group_members_arg_t)
1018 assert alignment(rsbac_acl_get_group_members_arg_t) == 4, alignment(rsbac_acl_get_group_members_arg_t)
1019 class rsbac_acl_group_syscall_arg_t(Union):
1020     pass
1021 rsbac_acl_group_syscall_arg_t._fields_ = [
1022     ('add_group', rsbac_acl_add_group_arg_t),
1023     ('change_group', rsbac_acl_change_group_arg_t),
1024     ('remove_group', rsbac_acl_remove_group_arg_t),
1025     ('get_group_entry', rsbac_acl_get_group_entry_arg_t),
1026     ('list_groups', rsbac_acl_list_groups_arg_t),
1027     ('add_member', rsbac_acl_add_member_arg_t),
1028     ('remove_member', rsbac_acl_remove_member_arg_t),
1029     ('get_user_groups', rsbac_acl_get_user_groups_arg_t),
1030     ('get_group_members', rsbac_acl_get_group_members_arg_t),
1031 ]
1032 assert sizeof(rsbac_acl_group_syscall_arg_t) == 16, sizeof(rsbac_acl_group_syscall_arg_t)
1033 assert alignment(rsbac_acl_group_syscall_arg_t) == 4, alignment(rsbac_acl_group_syscall_arg_t)
1034 class rsbac_net_temp_port_range_t(Structure):
1035     pass
1036 __u16 = c_ushort
1037 rsbac_net_temp_port_range_t._fields_ = [
1038     ('min', __u16),
1039     ('max', __u16),
1040 ]
1041 assert sizeof(rsbac_net_temp_port_range_t) == 4, sizeof(rsbac_net_temp_port_range_t)
1042 assert alignment(rsbac_net_temp_port_range_t) == 2, alignment(rsbac_net_temp_port_range_t)
1043 class rsbac_net_temp_inet_addr_t(Structure):
1044     pass
1045 rsbac_net_temp_inet_addr_t._fields_ = [
1046     ('addr', __u32 * 25),
1047     ('valid_bits', __u8 * 25),
1048     ('nr_addr', __u8),
1049 ]
1050 assert sizeof(rsbac_net_temp_inet_addr_t) == 128, sizeof(rsbac_net_temp_inet_addr_t)
1051 assert alignment(rsbac_net_temp_inet_addr_t) == 4, alignment(rsbac_net_temp_inet_addr_t)
1052 class rsbac_net_temp_other_addr_t(Structure):
1053     pass
1054 rsbac_net_temp_other_addr_t._fields_ = [
1055     ('addr', c_char * 128),
1056     ('valid_len', __u8),
1057 ]
1058 assert sizeof(rsbac_net_temp_other_addr_t) == 129, sizeof(rsbac_net_temp_other_addr_t)
1059 assert alignment(rsbac_net_temp_other_addr_t) == 1, alignment(rsbac_net_temp_other_addr_t)
1060 class rsbac_net_temp_ports_t(Structure):
1061     pass
1062 rsbac_net_temp_ports_t._fields_ = [
1063     ('ports', rsbac_net_temp_port_range_t * 10),
1064     ('nr_ports', __u8),
1065 ]
1066 assert sizeof(rsbac_net_temp_ports_t) == 42, sizeof(rsbac_net_temp_ports_t)
1067 assert alignment(rsbac_net_temp_ports_t) == 2, alignment(rsbac_net_temp_ports_t)
1068 class rsbac_net_temp_addr_t(Union):
1069     pass
1070 rsbac_net_temp_addr_t._fields_ = [
1071     ('inet', rsbac_net_temp_inet_addr_t),
1072     ('other', rsbac_net_temp_other_addr_t),
1073 ]
1074 assert sizeof(rsbac_net_temp_addr_t) == 132, sizeof(rsbac_net_temp_addr_t)
1075 assert alignment(rsbac_net_temp_addr_t) == 4, alignment(rsbac_net_temp_addr_t)
1076 class rsbac_net_temp_data_t(Structure):
1077     pass
1078 rsbac_net_temp_data_t._fields_ = [
1079     ('address', rsbac_net_temp_addr_t),
1080     ('address_family', __u8),
1081     ('type', __u8),
1082     ('protocol', __u8),
1083     ('netdev', rsbac_netdev_id_t),
1084     ('ports', rsbac_net_temp_ports_t),
1085     ('name', c_char * 16),
1086 ]
1087 assert sizeof(rsbac_net_temp_data_t) == 212, sizeof(rsbac_net_temp_data_t)
1088 assert alignment(rsbac_net_temp_data_t) == 4, alignment(rsbac_net_temp_data_t)
1089 class rsbac_net_temp_old_data_t(Structure):
1090     pass
1091 rsbac_net_temp_old_data_t._fields_ = [
1092     ('address', c_char * 128),
1093     ('address_family', __u8),
1094     ('valid_len', __u8),
1095     ('type', __u8),
1096     ('protocol', __u8),
1097     ('netdev', rsbac_netdev_id_t),
1098     ('min_port', __u16),
1099     ('max_port', __u16),
1100     ('name', c_char * 16),
1101 ]
1102 assert sizeof(rsbac_net_temp_old_data_t) == 170, sizeof(rsbac_net_temp_old_data_t)
1103 assert alignment(rsbac_net_temp_old_data_t) == 2, alignment(rsbac_net_temp_old_data_t)
1104 class rsbac_net_description_t(Structure):
1105     pass
1106 rsbac_net_description_t._fields_ = [
1107     ('address_family', __u8),
1108     ('address', c_void_p),
1109     ('address_len', __u8),
1110     ('type', __u8),
1111     ('protocol', __u8),
1112     ('netdev', rsbac_netdev_id_t),
1113     ('port', __u16),
1114 ]
1115 assert sizeof(rsbac_net_description_t) == 32, sizeof(rsbac_net_description_t)
1116 assert alignment(rsbac_net_description_t) == 4, alignment(rsbac_net_description_t)
1117
1118 # values for enumeration 'rsbac_net_temp_syscall_t'
1119 rsbac_net_temp_syscall_t = c_int # enum
1120 class rsbac_net_temp_syscall_data_t(Union):
1121     pass
1122 rsbac_net_temp_syscall_data_t._fields_ = [
1123     ('id', rsbac_net_temp_id_t),
1124     ('address', rsbac_net_temp_addr_t),
1125     ('address_family', __u8),
1126     ('type', __u8),
1127     ('protocol', __u8),
1128     ('netdev', rsbac_netdev_id_t),
1129     ('ports', rsbac_net_temp_ports_t),
1130     ('name', c_char * 16),
1131 ]
1132 assert sizeof(rsbac_net_temp_syscall_data_t) == 132, sizeof(rsbac_net_temp_syscall_data_t)
1133 assert alignment(rsbac_net_temp_syscall_data_t) == 4, alignment(rsbac_net_temp_syscall_data_t)
1134
1135 # values for enumeration 'rsbac_pm_tkt_function_type_t'
1136 rsbac_pm_tkt_function_type_t = c_int # enum
1137 class rsbac_pm_add_na_t(Structure):
1138     pass
1139 rsbac_pm_task_id_t = __u32
1140 rsbac_pm_object_class_id_t = __u32
1141 rsbac_pm_tp_id_t = __u32
1142 rsbac_pm_accesses_t = __u8
1143 rsbac_pm_add_na_t._fields_ = [
1144     ('task', rsbac_pm_task_id_t),
1145     ('object_class', rsbac_pm_object_class_id_t),
1146     ('tp', rsbac_pm_tp_id_t),
1147     ('accesses', rsbac_pm_accesses_t),
1148 ]
1149 assert sizeof(rsbac_pm_add_na_t) == 16, sizeof(rsbac_pm_add_na_t)
1150 assert alignment(rsbac_pm_add_na_t) == 4, alignment(rsbac_pm_add_na_t)
1151 class rsbac_pm_delete_na_t(Structure):
1152     pass
1153 rsbac_pm_delete_na_t._fields_ = [
1154     ('task', rsbac_pm_task_id_t),
1155     ('object_class', rsbac_pm_object_class_id_t),
1156     ('tp', rsbac_pm_tp_id_t),
1157     ('accesses', rsbac_pm_accesses_t),
1158 ]
1159 assert sizeof(rsbac_pm_delete_na_t) == 16, sizeof(rsbac_pm_delete_na_t)
1160 assert alignment(rsbac_pm_delete_na_t) == 4, alignment(rsbac_pm_delete_na_t)
1161 class rsbac_pm_add_task_t(Structure):
1162     pass
1163 rsbac_pm_purpose_id_t = __u32
1164 rsbac_pm_add_task_t._fields_ = [
1165     ('id', rsbac_pm_task_id_t),
1166     ('purpose', rsbac_pm_purpose_id_t),
1167 ]
1168 assert sizeof(rsbac_pm_add_task_t) == 8, sizeof(rsbac_pm_add_task_t)
1169 assert alignment(rsbac_pm_add_task_t) == 4, alignment(rsbac_pm_add_task_t)
1170 class rsbac_pm_delete_task_t(Structure):
1171     pass
1172 rsbac_pm_delete_task_t._fields_ = [
1173     ('id', rsbac_pm_task_id_t),
1174 ]
1175 assert sizeof(rsbac_pm_delete_task_t) == 4, sizeof(rsbac_pm_delete_task_t)
1176 assert alignment(rsbac_pm_delete_task_t) == 4, alignment(rsbac_pm_delete_task_t)
1177 class rsbac_pm_add_object_class_t(Structure):
1178     pass
1179 class rsbac_pm_purpose_list_item_t(Structure):
1180     pass
1181 rsbac_pm_add_object_class_t._fields_ = [
1182     ('id', rsbac_pm_object_class_id_t),
1183     ('pp_list_p', POINTER(rsbac_pm_purpose_list_item_t)),
1184 ]
1185 assert sizeof(rsbac_pm_add_object_class_t) == 8, sizeof(rsbac_pm_add_object_class_t)
1186 assert alignment(rsbac_pm_add_object_class_t) == 4, alignment(rsbac_pm_add_object_class_t)
1187 class rsbac_pm_delete_object_class_t(Structure):
1188     pass
1189 rsbac_pm_delete_object_class_t._fields_ = [
1190     ('id', rsbac_pm_object_class_id_t),
1191 ]
1192 assert sizeof(rsbac_pm_delete_object_class_t) == 4, sizeof(rsbac_pm_delete_object_class_t)
1193 assert alignment(rsbac_pm_delete_object_class_t) == 4, alignment(rsbac_pm_delete_object_class_t)
1194 class rsbac_pm_add_authorized_tp_t(Structure):
1195     pass
1196 rsbac_pm_add_authorized_tp_t._fields_ = [
1197     ('task', rsbac_pm_task_id_t),
1198     ('tp', rsbac_pm_tp_id_t),
1199 ]
1200 assert sizeof(rsbac_pm_add_authorized_tp_t) == 8, sizeof(rsbac_pm_add_authorized_tp_t)
1201 assert alignment(rsbac_pm_add_authorized_tp_t) == 4, alignment(rsbac_pm_add_authorized_tp_t)
1202 class rsbac_pm_delete_authorized_tp_t(Structure):
1203     pass
1204 rsbac_pm_delete_authorized_tp_t._fields_ = [
1205     ('task', rsbac_pm_task_id_t),
1206     ('tp', rsbac_pm_tp_id_t),
1207 ]
1208 assert sizeof(rsbac_pm_delete_authorized_tp_t) == 8, sizeof(rsbac_pm_delete_authorized_tp_t)
1209 assert alignment(rsbac_pm_delete_authorized_tp_t) == 4, alignment(rsbac_pm_delete_authorized_tp_t)
1210 class rsbac_pm_add_consent_t(Structure):
1211     pass
1212 rsbac_pm_add_consent_t._fields_ = [
1213     ('filename', STRING),
1214     ('purpose', rsbac_pm_purpose_id_t),
1215 ]
1216 assert sizeof(rsbac_pm_add_consent_t) == 8, sizeof(rsbac_pm_add_consent_t)
1217 assert alignment(rsbac_pm_add_consent_t) == 4, alignment(rsbac_pm_add_consent_t)
1218 class rsbac_pm_delete_consent_t(Structure):
1219     pass
1220 rsbac_pm_delete_consent_t._fields_ = [
1221     ('filename', STRING),
1222     ('purpose', rsbac_pm_purpose_id_t),
1223 ]
1224 assert sizeof(rsbac_pm_delete_consent_t) == 8, sizeof(rsbac_pm_delete_consent_t)
1225 assert alignment(rsbac_pm_delete_consent_t) == 4, alignment(rsbac_pm_delete_consent_t)
1226 class rsbac_pm_add_purpose_t(Structure):
1227     pass
1228 rsbac_pm_add_purpose_t._fields_ = [
1229     ('id', rsbac_pm_purpose_id_t),
1230     ('def_class', rsbac_pm_object_class_id_t),
1231 ]
1232 assert sizeof(rsbac_pm_add_purpose_t) == 8, sizeof(rsbac_pm_add_purpose_t)
1233 assert alignment(rsbac_pm_add_purpose_t) == 4, alignment(rsbac_pm_add_purpose_t)
1234 class rsbac_pm_delete_purpose_t(Structure):
1235     pass
1236 rsbac_pm_delete_purpose_t._fields_ = [
1237     ('id', rsbac_pm_purpose_id_t),
1238 ]
1239 assert sizeof(rsbac_pm_delete_purpose_t) == 4, sizeof(rsbac_pm_delete_purpose_t)
1240 assert alignment(rsbac_pm_delete_purpose_t) == 4, alignment(rsbac_pm_delete_purpose_t)
1241 class rsbac_pm_add_responsible_user_t(Structure):
1242     pass
1243 rsbac_pm_add_responsible_user_t._fields_ = [
1244     ('user', rsbac_uid_t),
1245     ('task', rsbac_pm_task_id_t),
1246 ]
1247 assert sizeof(rsbac_pm_add_responsible_user_t) == 8, sizeof(rsbac_pm_add_responsible_user_t)
1248 assert alignment(rsbac_pm_add_responsible_user_t) == 4, alignment(rsbac_pm_add_responsible_user_t)
1249 class rsbac_pm_delete_responsible_user_t(Structure):
1250     pass
1251 rsbac_pm_delete_responsible_user_t._fields_ = [
1252     ('user', rsbac_uid_t),
1253     ('task', rsbac_pm_task_id_t),
1254 ]
1255 assert sizeof(rsbac_pm_delete_responsible_user_t) == 8, sizeof(rsbac_pm_delete_responsible_user_t)
1256 assert alignment(rsbac_pm_delete_responsible_user_t) == 4, alignment(rsbac_pm_delete_responsible_user_t)
1257 class rsbac_pm_delete_user_aci_t(Structure):
1258     pass
1259 rsbac_pm_delete_user_aci_t._fields_ = [
1260     ('id', rsbac_uid_t),
1261 ]
1262 assert sizeof(rsbac_pm_delete_user_aci_t) == 4, sizeof(rsbac_pm_delete_user_aci_t)
1263 assert alignment(rsbac_pm_delete_user_aci_t) == 4, alignment(rsbac_pm_delete_user_aci_t)
1264 class rsbac_pm_set_role_t(Structure):
1265     pass
1266
1267 # values for enumeration 'rsbac_pm_role_t'
1268 rsbac_pm_role_t = c_int # enum
1269 rsbac_pm_set_role_t._fields_ = [
1270     ('user', rsbac_uid_t),
1271     ('role', rsbac_pm_role_t),
1272 ]
1273 assert sizeof(rsbac_pm_set_role_t) == 8, sizeof(rsbac_pm_set_role_t)
1274 assert alignment(rsbac_pm_set_role_t) == 4, alignment(rsbac_pm_set_role_t)
1275 class rsbac_pm_set_object_class_t(Structure):
1276     pass
1277 rsbac_pm_set_object_class_t._fields_ = [
1278     ('filename', STRING),
1279     ('object_class', rsbac_pm_object_class_id_t),
1280 ]
1281 assert sizeof(rsbac_pm_set_object_class_t) == 8, sizeof(rsbac_pm_set_object_class_t)
1282 assert alignment(rsbac_pm_set_object_class_t) == 4, alignment(rsbac_pm_set_object_class_t)
1283 class rsbac_pm_switch_pm_t(Structure):
1284     pass
1285 rsbac_pm_switch_pm_t._fields_ = [
1286     ('value', rsbac_boolean_t),
1287 ]
1288 assert sizeof(rsbac_pm_switch_pm_t) == 4, sizeof(rsbac_pm_switch_pm_t)
1289 assert alignment(rsbac_pm_switch_pm_t) == 4, alignment(rsbac_pm_switch_pm_t)
1290 class rsbac_pm_switch_auth_t(Structure):
1291     pass
1292 rsbac_pm_switch_auth_t._fields_ = [
1293     ('value', rsbac_boolean_t),
1294 ]
1295 assert sizeof(rsbac_pm_switch_auth_t) == 4, sizeof(rsbac_pm_switch_auth_t)
1296 assert alignment(rsbac_pm_switch_auth_t) == 4, alignment(rsbac_pm_switch_auth_t)
1297 class rsbac_pm_set_device_object_type_t(Structure):
1298     pass
1299
1300 # values for enumeration 'rsbac_pm_object_type_t'
1301 rsbac_pm_object_type_t = c_int # enum
1302 rsbac_pm_set_device_object_type_t._fields_ = [
1303     ('filename', STRING),
1304     ('object_type', rsbac_pm_object_type_t),
1305     ('object_class', rsbac_pm_object_class_id_t),
1306 ]
1307 assert sizeof(rsbac_pm_set_device_object_type_t) == 12, sizeof(rsbac_pm_set_device_object_type_t)
1308 assert alignment(rsbac_pm_set_device_object_type_t) == 4, alignment(rsbac_pm_set_device_object_type_t)
1309 class rsbac_pm_set_auth_may_setuid_t(Structure):
1310     pass
1311 rsbac_pm_set_auth_may_setuid_t._fields_ = [
1312     ('filename', STRING),
1313     ('value', rsbac_boolean_t),
1314 ]
1315 assert sizeof(rsbac_pm_set_auth_may_setuid_t) == 8, sizeof(rsbac_pm_set_auth_may_setuid_t)
1316 assert alignment(rsbac_pm_set_auth_may_setuid_t) == 4, alignment(rsbac_pm_set_auth_may_setuid_t)
1317 class rsbac_pm_set_auth_may_set_cap_t(Structure):
1318     pass
1319 rsbac_pm_set_auth_may_set_cap_t._fields_ = [
1320     ('filename', STRING),
1321     ('value', rsbac_boolean_t),
1322 ]
1323 assert sizeof(rsbac_pm_set_auth_may_set_cap_t) == 8, sizeof(rsbac_pm_set_auth_may_set_cap_t)
1324 assert alignment(rsbac_pm_set_auth_may_set_cap_t) == 4, alignment(rsbac_pm_set_auth_may_set_cap_t)
1325 class rsbac_pm_add_authorized_task_t(Structure):
1326     pass
1327 rsbac_pm_add_authorized_task_t._fields_ = [
1328     ('user', rsbac_uid_t),
1329     ('task', rsbac_pm_task_id_t),
1330 ]
1331 assert sizeof(rsbac_pm_add_authorized_task_t) == 8, sizeof(rsbac_pm_add_authorized_task_t)
1332 assert alignment(rsbac_pm_add_authorized_task_t) == 4, alignment(rsbac_pm_add_authorized_task_t)
1333 class rsbac_pm_delete_authorized_task_t(Structure):
1334     pass
1335 rsbac_pm_delete_authorized_task_t._fields_ = [
1336     ('user', rsbac_uid_t),
1337     ('task', rsbac_pm_task_id_t),
1338 ]
1339 assert sizeof(rsbac_pm_delete_authorized_task_t) == 8, sizeof(rsbac_pm_delete_authorized_task_t)
1340 assert alignment(rsbac_pm_delete_authorized_task_t) == 4, alignment(rsbac_pm_delete_authorized_task_t)
1341 class rsbac_pm_create_tp_t(Structure):
1342     pass
1343 rsbac_pm_create_tp_t._fields_ = [
1344     ('id', rsbac_pm_tp_id_t),
1345 ]
1346 assert sizeof(rsbac_pm_create_tp_t) == 4, sizeof(rsbac_pm_create_tp_t)
1347 assert alignment(rsbac_pm_create_tp_t) == 4, alignment(rsbac_pm_create_tp_t)
1348 class rsbac_pm_delete_tp_t(Structure):
1349     pass
1350 rsbac_pm_delete_tp_t._fields_ = [
1351     ('id', rsbac_pm_tp_id_t),
1352 ]
1353 assert sizeof(rsbac_pm_delete_tp_t) == 4, sizeof(rsbac_pm_delete_tp_t)
1354 assert alignment(rsbac_pm_delete_tp_t) == 4, alignment(rsbac_pm_delete_tp_t)
1355 class rsbac_pm_set_tp_t(Structure):
1356     pass
1357 rsbac_pm_set_tp_t._fields_ = [
1358     ('filename', STRING),
1359     ('tp', rsbac_pm_tp_id_t),
1360 ]
1361 assert sizeof(rsbac_pm_set_tp_t) == 8, sizeof(rsbac_pm_set_tp_t)
1362 assert alignment(rsbac_pm_set_tp_t) == 4, alignment(rsbac_pm_set_tp_t)
1363 class rsbac_pm_tkt_function_param_t(Union):
1364     pass
1365 rsbac_pm_tkt_function_param_t._fields_ = [
1366     ('add_na', rsbac_pm_add_na_t),
1367     ('delete_na', rsbac_pm_delete_na_t),
1368     ('add_task', rsbac_pm_add_task_t),
1369     ('delete_task', rsbac_pm_delete_task_t),
1370     ('add_object_class', rsbac_pm_add_object_class_t),
1371     ('delete_object_class', rsbac_pm_delete_object_class_t),
1372     ('add_authorized_tp', rsbac_pm_add_authorized_tp_t),
1373     ('delete_authorized_tp', rsbac_pm_delete_authorized_tp_t),
1374     ('add_consent', rsbac_pm_add_consent_t),
1375     ('delete_consent', rsbac_pm_delete_consent_t),
1376     ('add_purpose', rsbac_pm_add_purpose_t),
1377     ('delete_purpose', rsbac_pm_delete_purpose_t),
1378     ('add_responsible_user', rsbac_pm_add_responsible_user_t),
1379     ('delete_responsible_user', rsbac_pm_delete_responsible_user_t),
1380     ('delete_user_aci', rsbac_pm_delete_user_aci_t),
1381     ('set_role', rsbac_pm_set_role_t),
1382     ('set_object_class', rsbac_pm_set_object_class_t),
1383     ('switch_pm', rsbac_pm_switch_pm_t),
1384     ('switch_auth', rsbac_pm_switch_pm_t),
1385     ('set_device_object_type', rsbac_pm_set_device_object_type_t),
1386     ('set_auth_may_setuid', rsbac_pm_set_auth_may_setuid_t),
1387     ('set_auth_may_set_cap', rsbac_pm_set_auth_may_set_cap_t),
1388     ('add_authorized_task', rsbac_pm_add_authorized_task_t),
1389     ('delete_authorized_task', rsbac_pm_delete_authorized_task_t),
1390     ('dummy', c_int),
1391 ]
1392 assert sizeof(rsbac_pm_tkt_function_param_t) == 16, sizeof(rsbac_pm_tkt_function_param_t)
1393 assert alignment(rsbac_pm_tkt_function_param_t) == 4, alignment(rsbac_pm_tkt_function_param_t)
1394
1395 # values for enumeration 'rsbac_pm_function_type_t'
1396 rsbac_pm_function_type_t = c_int # enum
1397 class rsbac_pm_create_ticket_t(Structure):
1398     pass
1399 rsbac_pm_tkt_id_t = __u32
1400 rsbac_pm_time_stamp_t = rsbac_time_t
1401 rsbac_pm_create_ticket_t._fields_ = [
1402     ('id', rsbac_pm_tkt_id_t),
1403     ('valid_for', rsbac_pm_time_stamp_t),
1404     ('function_type', rsbac_pm_tkt_function_type_t),
1405     ('function_param', rsbac_pm_tkt_function_param_t),
1406 ]
1407 assert sizeof(rsbac_pm_create_ticket_t) == 28, sizeof(rsbac_pm_create_ticket_t)
1408 assert alignment(rsbac_pm_create_ticket_t) == 4, alignment(rsbac_pm_create_ticket_t)
1409 class rsbac_pm_function_param_t(Union):
1410     pass
1411 rsbac_pm_function_param_t._fields_ = [
1412     ('add_na', rsbac_pm_add_na_t),
1413     ('delete_na', rsbac_pm_delete_na_t),
1414     ('add_task', rsbac_pm_add_task_t),
1415     ('delete_task', rsbac_pm_delete_task_t),
1416     ('add_object_class', rsbac_pm_add_object_class_t),
1417     ('delete_object_class', rsbac_pm_delete_object_class_t),
1418     ('add_authorized_tp', rsbac_pm_add_authorized_tp_t),
1419     ('delete_authorized_tp', rsbac_pm_delete_authorized_tp_t),
1420     ('add_consent', rsbac_pm_add_consent_t),
1421     ('delete_consent', rsbac_pm_delete_consent_t),
1422     ('add_purpose', rsbac_pm_add_purpose_t),
1423     ('delete_purpose', rsbac_pm_delete_purpose_t),
1424     ('add_responsible_user', rsbac_pm_add_responsible_user_t),
1425     ('delete_responsible_user', rsbac_pm_delete_responsible_user_t),
1426     ('delete_user_aci', rsbac_pm_delete_user_aci_t),
1427     ('set_role', rsbac_pm_set_role_t),
1428     ('set_object_class', rsbac_pm_set_object_class_t),
1429     ('switch_pm', rsbac_pm_switch_pm_t),
1430     ('switch_auth', rsbac_pm_switch_pm_t),
1431     ('set_device_object_type', rsbac_pm_set_device_object_type_t),
1432     ('set_auth_may_setuid', rsbac_pm_set_auth_may_setuid_t),
1433     ('set_auth_may_set_cap', rsbac_pm_set_auth_may_set_cap_t),
1434     ('add_authorized_task', rsbac_pm_add_authorized_task_t),
1435     ('delete_authorized_task', rsbac_pm_delete_authorized_task_t),
1436     ('create_tp', rsbac_pm_create_tp_t),
1437     ('delete_tp', rsbac_pm_delete_tp_t),
1438     ('set_tp', rsbac_pm_set_tp_t),
1439     ('create_ticket', rsbac_pm_create_ticket_t),
1440     ('dummy', c_int),
1441 ]
1442 assert sizeof(rsbac_pm_function_param_t) == 28, sizeof(rsbac_pm_function_param_t)
1443 assert alignment(rsbac_pm_function_param_t) == 4, alignment(rsbac_pm_function_param_t)
1444 rsbac_pm_task_set_id_t = __u32
1445 rsbac_pm_tp_set_id_t = __u32
1446 rsbac_pm_ru_set_id_t = __u32
1447 __s32 = c_int
1448 rsbac_pm_pp_set_id_t = __s32
1449 rsbac_pm_in_pp_set_id_t = rsbac_pid_t
1450 rsbac_pm_out_pp_set_id_t = rsbac_pm_in_pp_set_id_t
1451
1452 # values for enumeration 'rsbac_pm_list_t'
1453 rsbac_pm_list_t = c_int # enum
1454
1455 # values for enumeration 'rsbac_pm_all_list_t'
1456 rsbac_pm_all_list_t = c_int # enum
1457 rsbac_pm_role_int_t = rsbac_enum_t
1458
1459 # values for enumeration 'rsbac_pm_process_type_t'
1460 rsbac_pm_process_type_t = c_int # enum
1461 rsbac_pm_process_type_int_t = rsbac_enum_t
1462 rsbac_pm_object_type_int_t = rsbac_enum_t
1463 rsbac_pm_program_type_int_t = rsbac_pm_process_type_int_t
1464 rsbac_pm_purpose_list_item_t._fields_ = [
1465     ('id', rsbac_pm_purpose_id_t),
1466     ('next', POINTER(rsbac_pm_purpose_list_item_t)),
1467 ]
1468 assert sizeof(rsbac_pm_purpose_list_item_t) == 8, sizeof(rsbac_pm_purpose_list_item_t)
1469 assert alignment(rsbac_pm_purpose_list_item_t) == 4, alignment(rsbac_pm_purpose_list_item_t)
1470
1471 # values for enumeration 'rsbac_rc_special_rights_t'
1472 rsbac_rc_special_rights_t = c_int # enum
1473 rsbac_rc_rights_vector_t = __u64
1474 rsbac_rc_role_vector_t = __u64
1475 rsbac_rc_role_id_t = __u32
1476 rsbac_rc_type_id_t = __u32
1477 rsbac_request_vector_t = __u64
1478 rsbac_rc_request_vector_t = rsbac_request_vector_t
1479
1480 # values for enumeration 'rsbac_rc_admin_type_t'
1481 rsbac_rc_admin_type_t = c_int # enum
1482
1483 # values for enumeration 'rsbac_rc_scd_type_t'
1484 rsbac_rc_scd_type_t = c_int # enum
1485
1486 # values for enumeration 'rsbac_rc_target_t'
1487 rsbac_rc_target_t = c_int # enum
1488 class rsbac_rc_target_id_t(Union):
1489     pass
1490 rsbac_rc_target_id_t._fields_ = [
1491     ('role', rsbac_rc_role_id_t),
1492     ('type', rsbac_rc_type_id_t),
1493 ]
1494 assert sizeof(rsbac_rc_target_id_t) == 4, sizeof(rsbac_rc_target_id_t)
1495 assert alignment(rsbac_rc_target_id_t) == 4, alignment(rsbac_rc_target_id_t)
1496
1497 # values for enumeration 'rsbac_rc_item_t'
1498 rsbac_rc_item_t = c_int # enum
1499 class rsbac_rc_item_value_t(Union):
1500     pass
1501 rsbac_rc_item_value_t._pack_ = 4
1502 rsbac_rc_item_value_t._fields_ = [
1503     ('rights', rsbac_rc_rights_vector_t),
1504     ('admin_type', rsbac_rc_admin_type_t),
1505     ('name', c_char * 16),
1506     ('role_id', rsbac_rc_role_id_t),
1507     ('type_id', rsbac_rc_type_id_t),
1508     ('need_secdel', rsbac_boolean_t),
1509     ('comp', rsbac_boolean_t),
1510     ('boot_role', rsbac_boolean_t),
1511     ('req_reauth', rsbac_boolean_t),
1512     ('u_char_dummy', u_char),
1513     ('dummy', c_int),
1514     ('u_dummy', u_int),
1515     ('long_dummy', c_long),
1516     ('long_long_dummy', c_longlong),
1517 ]
1518 assert sizeof(rsbac_rc_item_value_t) == 16, sizeof(rsbac_rc_item_value_t)
1519 assert alignment(rsbac_rc_item_value_t) == 4, alignment(rsbac_rc_item_value_t)
1520
1521 # values for enumeration 'rsbac_syscall_t'
1522 rsbac_syscall_t = c_int # enum
1523 class rsys_check_t(Structure):
1524     pass
1525 rsys_check_t._fields_ = [
1526     ('correct', c_int),
1527     ('check_inode', c_int),
1528 ]
1529 assert sizeof(rsys_check_t) == 8, sizeof(rsys_check_t)
1530 assert alignment(rsys_check_t) == 4, alignment(rsys_check_t)
1531 class rsys_get_attr_t(Structure):
1532     pass
1533 rsbac_list_ta_number_t = __u32
1534 class rsbac_attribute_value_t(Union):
1535     pass
1536 rsys_get_attr_t._fields_ = [
1537     ('ta_number', rsbac_list_ta_number_t),
1538     ('module', rsbac_enum_t),
1539     ('target', rsbac_enum_t),
1540     ('tid', POINTER(rsbac_target_id_t)),
1541     ('attr', rsbac_enum_t),
1542     ('value', POINTER(rsbac_attribute_value_t)),
1543     ('inherit', c_int),
1544 ]
1545 assert sizeof(rsys_get_attr_t) == 24, sizeof(rsys_get_attr_t)
1546 assert alignment(rsys_get_attr_t) == 4, alignment(rsys_get_attr_t)
1547 class rsys_get_attr_n_t(Structure):
1548     pass
1549 rsys_get_attr_n_t._fields_ = [
1550     ('ta_number', rsbac_list_ta_number_t),
1551     ('module', rsbac_enum_t),
1552     ('target', rsbac_enum_t),
1553     ('t_name', STRING),
1554     ('attr', rsbac_enum_t),
1555     ('value', POINTER(rsbac_attribute_value_t)),
1556     ('inherit', c_int),
1557 ]
1558 assert sizeof(rsys_get_attr_n_t) == 24, sizeof(rsys_get_attr_n_t)
1559 assert alignment(rsys_get_attr_n_t) == 4, alignment(rsys_get_attr_n_t)
1560 class rsys_set_attr_t(Structure):
1561     pass
1562 rsys_set_attr_t._fields_ = [
1563     ('ta_number', rsbac_list_ta_number_t),
1564     ('module', rsbac_enum_t),
1565     ('target', rsbac_enum_t),
1566     ('tid', POINTER(rsbac_target_id_t)),
1567     ('attr', rsbac_enum_t),
1568     ('value', POINTER(rsbac_attribute_value_t)),
1569 ]
1570 assert sizeof(rsys_set_attr_t) == 20, sizeof(rsys_set_attr_t)
1571 assert alignment(rsys_set_attr_t) == 4, alignment(rsys_set_attr_t)
1572 class rsys_set_attr_n_t(Structure):
1573     pass
1574 rsys_set_attr_n_t._fields_ = [
1575     ('ta_number', rsbac_list_ta_number_t),
1576     ('module', rsbac_enum_t),
1577     ('target', rsbac_enum_t),
1578     ('t_name', STRING),
1579     ('attr', rsbac_enum_t),
1580     ('value', POINTER(rsbac_attribute_value_t)),
1581 ]
1582 assert sizeof(rsys_set_attr_n_t) == 20, sizeof(rsys_set_attr_n_t)
1583 assert alignment(rsys_set_attr_n_t) == 4, alignment(rsys_set_attr_n_t)
1584 class rsys_remove_target_t(Structure):
1585     pass
1586 rsys_remove_target_t._fields_ = [
1587     ('ta_number', rsbac_list_ta_number_t),
1588     ('target', rsbac_enum_t),
1589     ('tid', POINTER(rsbac_target_id_t)),
1590 ]
1591 assert sizeof(rsys_remove_target_t) == 12, sizeof(rsys_remove_target_t)
1592 assert alignment(rsys_remove_target_t) == 4, alignment(rsys_remove_target_t)
1593 class rsys_remove_target_n_t(Structure):
1594     pass
1595 rsys_remove_target_n_t._fields_ = [
1596     ('ta_number', rsbac_list_ta_number_t),
1597     ('target', rsbac_enum_t),
1598     ('t_name', STRING),
1599 ]
1600 assert sizeof(rsys_remove_target_n_t) == 12, sizeof(rsys_remove_target_n_t)
1601 assert alignment(rsys_remove_target_n_t) == 4, alignment(rsys_remove_target_n_t)
1602 class rsys_net_list_all_netdev_t(Structure):
1603     pass
1604 rsys_net_list_all_netdev_t._fields_ = [
1605     ('ta_number', rsbac_list_ta_number_t),
1606     ('id_p', POINTER(rsbac_netdev_id_t)),
1607     ('maxnum', u_long),
1608 ]
1609 assert sizeof(rsys_net_list_all_netdev_t) == 12, sizeof(rsys_net_list_all_netdev_t)
1610 assert alignment(rsys_net_list_all_netdev_t) == 4, alignment(rsys_net_list_all_netdev_t)
1611 class rsys_net_template_t(Structure):
1612     pass
1613 rsys_net_template_t._fields_ = [
1614     ('ta_number', rsbac_list_ta_number_t),
1615     ('call', rsbac_enum_t),
1616     ('id', rsbac_net_temp_id_t),
1617     ('data_p', POINTER(rsbac_net_temp_syscall_data_t)),
1618 ]
1619 assert sizeof(rsys_net_template_t) == 16, sizeof(rsys_net_template_t)
1620 assert alignment(rsys_net_template_t) == 4, alignment(rsys_net_template_t)
1621 class rsys_net_list_all_template_t(Structure):
1622     pass
1623 rsys_net_list_all_template_t._fields_ = [
1624     ('ta_number', rsbac_list_ta_number_t),
1625     ('id_p', POINTER(rsbac_net_temp_id_t)),
1626     ('maxnum', u_long),
1627 ]
1628 assert sizeof(rsys_net_list_all_template_t) == 12, sizeof(rsys_net_list_all_template_t)
1629 assert alignment(rsys_net_list_all_template_t) == 4, alignment(rsys_net_list_all_template_t)
1630 class rsys_switch_t(Structure):
1631     pass
1632 rsys_switch_t._fields_ = [
1633     ('module', rsbac_enum_t),
1634     ('value', c_int),
1635 ]
1636 assert sizeof(rsys_switch_t) == 8, sizeof(rsys_switch_t)
1637 assert alignment(rsys_switch_t) == 4, alignment(rsys_switch_t)
1638 class rsys_get_switch_t(Structure):
1639     pass
1640 rsys_get_switch_t._fields_ = [
1641     ('module', rsbac_enum_t),
1642     ('value_p', POINTER(c_int)),
1643     ('switchable_p', POINTER(c_int)),
1644 ]
1645 assert sizeof(rsys_get_switch_t) == 12, sizeof(rsys_get_switch_t)
1646 assert alignment(rsys_get_switch_t) == 4, alignment(rsys_get_switch_t)
1647 class rsys_adf_log_switch_t(Structure):
1648     pass
1649 rsys_adf_log_switch_t._fields_ = [
1650     ('request', rsbac_enum_t),
1651     ('target', rsbac_enum_t),
1652     ('value', u_int),
1653 ]
1654 assert sizeof(rsys_adf_log_switch_t) == 8, sizeof(rsys_adf_log_switch_t)
1655 assert alignment(rsys_adf_log_switch_t) == 4, alignment(rsys_adf_log_switch_t)
1656 class rsys_get_adf_log_t(Structure):
1657     pass
1658 rsys_get_adf_log_t._fields_ = [
1659     ('request', rsbac_enum_t),
1660     ('target', rsbac_enum_t),
1661     ('value_p', POINTER(u_int)),
1662 ]
1663 assert sizeof(rsys_get_adf_log_t) == 8, sizeof(rsys_get_adf_log_t)
1664 assert alignment(rsys_get_adf_log_t) == 4, alignment(rsys_get_adf_log_t)
1665 class rsys_log_t(Structure):
1666     pass
1667 rsys_log_t._fields_ = [
1668     ('type', c_int),
1669     ('buf', STRING),
1670     ('len', c_int),
1671 ]
1672 assert sizeof(rsys_log_t) == 12, sizeof(rsys_log_t)
1673 assert alignment(rsys_log_t) == 4, alignment(rsys_log_t)
1674 class rsys_mac_set_curr_level_t(Structure):
1675     pass
1676 rsbac_security_level_t = __u8
1677 rsbac_mac_category_vector_t = __u64
1678 rsys_mac_set_curr_level_t._fields_ = [
1679     ('level', rsbac_security_level_t),
1680     ('categories_p', POINTER(rsbac_mac_category_vector_t)),
1681 ]
1682 assert sizeof(rsys_mac_set_curr_level_t) == 8, sizeof(rsys_mac_set_curr_level_t)
1683 assert alignment(rsys_mac_set_curr_level_t) == 4, alignment(rsys_mac_set_curr_level_t)
1684 class rsys_mac_get_curr_level_t(Structure):
1685     pass
1686 rsys_mac_get_curr_level_t._fields_ = [
1687     ('level_p', POINTER(rsbac_security_level_t)),
1688     ('categories_p', POINTER(rsbac_mac_category_vector_t)),
1689 ]
1690 assert sizeof(rsys_mac_get_curr_level_t) == 8, sizeof(rsys_mac_get_curr_level_t)
1691 assert alignment(rsys_mac_get_curr_level_t) == 4, alignment(rsys_mac_get_curr_level_t)
1692 class rsys_mac_get_max_level_t(Structure):
1693     pass
1694 rsys_mac_get_max_level_t._fields_ = [
1695     ('level_p', POINTER(rsbac_security_level_t)),
1696     ('categories_p', POINTER(rsbac_mac_category_vector_t)),
1697 ]
1698 assert sizeof(rsys_mac_get_max_level_t) == 8, sizeof(rsys_mac_get_max_level_t)
1699 assert alignment(rsys_mac_get_max_level_t) == 4, alignment(rsys_mac_get_max_level_t)
1700 class rsys_mac_get_min_level_t(Structure):
1701     pass
1702 rsys_mac_get_min_level_t._fields_ = [
1703     ('level_p', POINTER(rsbac_security_level_t)),
1704     ('categories_p', POINTER(rsbac_mac_category_vector_t)),
1705 ]
1706 assert sizeof(rsys_mac_get_min_level_t) == 8, sizeof(rsys_mac_get_min_level_t)
1707 assert alignment(rsys_mac_get_min_level_t) == 4, alignment(rsys_mac_get_min_level_t)
1708 class rsys_mac_add_p_tru_t(Structure):
1709     pass
1710 rsys_mac_add_p_tru_t._fields_ = [
1711     ('ta_number', rsbac_list_ta_number_t),
1712     ('pid', rsbac_pid_t),
1713     ('uid', rsbac_uid_t),
1714     ('ttl', rsbac_time_t),
1715 ]
1716 assert sizeof(rsys_mac_add_p_tru_t) == 16, sizeof(rsys_mac_add_p_tru_t)
1717 assert alignment(rsys_mac_add_p_tru_t) == 4, alignment(rsys_mac_add_p_tru_t)
1718 class rsys_mac_remove_p_tru_t(Structure):
1719     pass
1720 rsys_mac_remove_p_tru_t._fields_ = [
1721     ('ta_number', rsbac_list_ta_number_t),
1722     ('pid', rsbac_pid_t),
1723     ('uid', rsbac_uid_t),
1724 ]
1725 assert sizeof(rsys_mac_remove_p_tru_t) == 12, sizeof(rsys_mac_remove_p_tru_t)
1726 assert alignment(rsys_mac_remove_p_tru_t) == 4, alignment(rsys_mac_remove_p_tru_t)
1727 class rsys_mac_add_f_tru_t(Structure):
1728     pass
1729 rsys_mac_add_f_tru_t._fields_ = [
1730     ('ta_number', rsbac_list_ta_number_t),
1731     ('filename', STRING),
1732     ('uid', rsbac_uid_t),
1733     ('ttl', rsbac_time_t),
1734 ]
1735 assert sizeof(rsys_mac_add_f_tru_t) == 16, sizeof(rsys_mac_add_f_tru_t)
1736 assert alignment(rsys_mac_add_f_tru_t) == 4, alignment(rsys_mac_add_f_tru_t)
1737 class rsys_mac_remove_f_tru_t(Structure):
1738     pass
1739 rsys_mac_remove_f_tru_t._fields_ = [
1740     ('ta_number', rsbac_list_ta_number_t),
1741     ('filename', STRING),
1742     ('uid', rsbac_uid_t),
1743 ]
1744 assert sizeof(rsys_mac_remove_f_tru_t) == 12, sizeof(rsys_mac_remove_f_tru_t)
1745 assert alignment(rsys_mac_remove_f_tru_t) == 4, alignment(rsys_mac_remove_f_tru_t)
1746 class rsys_mac_get_f_trulist_t(Structure):
1747     pass
1748 rsys_mac_get_f_trulist_t._fields_ = [
1749     ('ta_number', rsbac_list_ta_number_t),
1750     ('filename', STRING),
1751     ('trulist', POINTER(rsbac_uid_t)),
1752     ('ttllist', POINTER(rsbac_time_t)),
1753     ('maxnum', u_int),
1754 ]
1755 assert sizeof(rsys_mac_get_f_trulist_t) == 20, sizeof(rsys_mac_get_f_trulist_t)
1756 assert alignment(rsys_mac_get_f_trulist_t) == 4, alignment(rsys_mac_get_f_trulist_t)
1757 class rsys_mac_get_p_trulist_t(Structure):
1758     pass
1759 rsys_mac_get_p_trulist_t._fields_ = [
1760     ('ta_number', rsbac_list_ta_number_t),
1761     ('pid', rsbac_pid_t),
1762     ('trulist', POINTER(rsbac_uid_t)),
1763     ('ttllist', POINTER(rsbac_time_t)),
1764     ('maxnum', u_int),
1765 ]
1766 assert sizeof(rsys_mac_get_p_trulist_t) == 20, sizeof(rsys_mac_get_p_trulist_t)
1767 assert alignment(rsys_mac_get_p_trulist_t) == 4, alignment(rsys_mac_get_p_trulist_t)
1768 class rsys_pm_t(Structure):
1769     pass
1770 rsys_pm_t._fields_ = [
1771     ('ta_number', rsbac_list_ta_number_t),
1772     ('function', rsbac_enum_t),
1773     ('param_p', POINTER(rsbac_pm_function_param_t)),
1774     ('ticket', rsbac_pm_tkt_id_t),
1775 ]
1776 assert sizeof(rsys_pm_t) == 16, sizeof(rsys_pm_t)
1777 assert alignment(rsys_pm_t) == 4, alignment(rsys_pm_t)
1778 class rsys_pm_change_current_task_t(Structure):
1779     pass
1780 rsys_pm_change_current_task_t._fields_ = [
1781     ('task', rsbac_pm_task_id_t),
1782 ]
1783 assert sizeof(rsys_pm_change_current_task_t) == 4, sizeof(rsys_pm_change_current_task_t)
1784 assert alignment(rsys_pm_change_current_task_t) == 4, alignment(rsys_pm_change_current_task_t)
1785 class rsys_pm_create_file_t(Structure):
1786     pass
1787 rsys_pm_create_file_t._fields_ = [
1788     ('filename', STRING),
1789     ('mode', c_int),
1790     ('object_class', rsbac_pm_object_class_id_t),
1791 ]
1792 assert sizeof(rsys_pm_create_file_t) == 12, sizeof(rsys_pm_create_file_t)
1793 assert alignment(rsys_pm_create_file_t) == 4, alignment(rsys_pm_create_file_t)
1794 class rsys_rc_copy_role_t(Structure):
1795     pass
1796 rsys_rc_copy_role_t._fields_ = [
1797     ('ta_number', rsbac_list_ta_number_t),
1798     ('from_role', rsbac_rc_role_id_t),
1799     ('to_role', rsbac_rc_role_id_t),
1800 ]
1801 assert sizeof(rsys_rc_copy_role_t) == 12, sizeof(rsys_rc_copy_role_t)
1802 assert alignment(rsys_rc_copy_role_t) == 4, alignment(rsys_rc_copy_role_t)
1803 class rsys_rc_copy_type_t(Structure):
1804     pass
1805 rsys_rc_copy_type_t._fields_ = [
1806     ('ta_number', rsbac_list_ta_number_t),
1807     ('target', rsbac_enum_t),
1808     ('from_type', rsbac_rc_type_id_t),
1809     ('to_type', rsbac_rc_type_id_t),
1810 ]
1811 assert sizeof(rsys_rc_copy_type_t) == 16, sizeof(rsys_rc_copy_type_t)
1812 assert alignment(rsys_rc_copy_type_t) == 4, alignment(rsys_rc_copy_type_t)
1813 class rsys_rc_get_item_t(Structure):
1814     pass
1815 rsys_rc_get_item_t._fields_ = [
1816     ('ta_number', rsbac_list_ta_number_t),
1817     ('target', rsbac_enum_t),
1818     ('tid_p', POINTER(rsbac_rc_target_id_t)),
1819     ('subtid_p', POINTER(rsbac_rc_target_id_t)),
1820     ('item', rsbac_enum_t),
1821     ('value_p', POINTER(rsbac_rc_item_value_t)),
1822     ('ttl_p', POINTER(rsbac_time_t)),
1823 ]
1824 assert sizeof(rsys_rc_get_item_t) == 28, sizeof(rsys_rc_get_item_t)
1825 assert alignment(rsys_rc_get_item_t) == 4, alignment(rsys_rc_get_item_t)
1826 class rsys_rc_set_item_t(Structure):
1827     pass
1828 rsys_rc_set_item_t._fields_ = [
1829     ('ta_number', rsbac_list_ta_number_t),
1830     ('target', rsbac_enum_t),
1831     ('tid_p', POINTER(rsbac_rc_target_id_t)),
1832     ('subtid_p', POINTER(rsbac_rc_target_id_t)),
1833     ('item', rsbac_enum_t),
1834     ('value_p', POINTER(rsbac_rc_item_value_t)),
1835     ('ttl', rsbac_time_t),
1836 ]
1837 assert sizeof(rsys_rc_set_item_t) == 28, sizeof(rsys_rc_set_item_t)
1838 assert alignment(rsys_rc_set_item_t) == 4, alignment(rsys_rc_set_item_t)
1839 class rsys_rc_get_list_t(Structure):
1840     pass
1841 rsys_rc_get_list_t._fields_ = [
1842     ('ta_number', rsbac_list_ta_number_t),
1843     ('target', rsbac_enum_t),
1844     ('tid_p', POINTER(rsbac_rc_target_id_t)),
1845     ('item', rsbac_enum_t),
1846     ('maxnum', u_int),
1847     ('array_p', POINTER(__u32)),
1848     ('ttl_array_p', POINTER(rsbac_time_t)),
1849 ]
1850 assert sizeof(rsys_rc_get_list_t) == 28, sizeof(rsys_rc_get_list_t)
1851 assert alignment(rsys_rc_get_list_t) == 4, alignment(rsys_rc_get_list_t)
1852 class rsys_rc_change_role_t(Structure):
1853     pass
1854 rsys_rc_change_role_t._fields_ = [
1855     ('role', rsbac_rc_role_id_t),
1856     ('pass', STRING),
1857 ]
1858 assert sizeof(rsys_rc_change_role_t) == 8, sizeof(rsys_rc_change_role_t)
1859 assert alignment(rsys_rc_change_role_t) == 4, alignment(rsys_rc_change_role_t)
1860 class rsys_rc_get_eff_rights_n_t(Structure):
1861     pass
1862 rsys_rc_get_eff_rights_n_t._fields_ = [
1863     ('ta_number', rsbac_list_ta_number_t),
1864     ('target', rsbac_enum_t),
1865     ('t_name', STRING),
1866     ('request_vector_p', POINTER(rsbac_rc_request_vector_t)),
1867     ('ttl_p', POINTER(rsbac_time_t)),
1868 ]
1869 assert sizeof(rsys_rc_get_eff_rights_n_t) == 20, sizeof(rsys_rc_get_eff_rights_n_t)
1870 assert alignment(rsys_rc_get_eff_rights_n_t) == 4, alignment(rsys_rc_get_eff_rights_n_t)
1871 class rsys_rc_get_current_role_t(Structure):
1872     pass
1873 rsys_rc_get_current_role_t._fields_ = [
1874     ('role_p', POINTER(rsbac_rc_role_id_t)),
1875 ]
1876 assert sizeof(rsys_rc_get_current_role_t) == 4, sizeof(rsys_rc_get_current_role_t)
1877 assert alignment(rsys_rc_get_current_role_t) == 4, alignment(rsys_rc_get_current_role_t)
1878 class rsys_auth_add_p_cap_t(Structure):
1879     pass
1880 class rsbac_auth_cap_range_t(Structure):
1881     pass
1882 rsbac_auth_cap_range_t._fields_ = [
1883     ('first', rsbac_uid_t),
1884     ('last', rsbac_uid_t),
1885 ]
1886 assert sizeof(rsbac_auth_cap_range_t) == 8, sizeof(rsbac_auth_cap_range_t)
1887 assert alignment(rsbac_auth_cap_range_t) == 4, alignment(rsbac_auth_cap_range_t)
1888 rsys_auth_add_p_cap_t._fields_ = [
1889     ('ta_number', rsbac_list_ta_number_t),
1890     ('pid', rsbac_pid_t),
1891     ('cap_type', rsbac_enum_t),
1892     ('cap_range', rsbac_auth_cap_range_t),
1893     ('ttl', rsbac_time_t),
1894 ]
1895 assert sizeof(rsys_auth_add_p_cap_t) == 24, sizeof(rsys_auth_add_p_cap_t)
1896 assert alignment(rsys_auth_add_p_cap_t) == 4, alignment(rsys_auth_add_p_cap_t)
1897 class rsys_auth_remove_p_cap_t(Structure):
1898     pass
1899 rsys_auth_remove_p_cap_t._fields_ = [
1900     ('ta_number', rsbac_list_ta_number_t),
1901     ('pid', rsbac_pid_t),
1902     ('cap_type', rsbac_enum_t),
1903     ('cap_range', rsbac_auth_cap_range_t),
1904 ]
1905 assert sizeof(rsys_auth_remove_p_cap_t) == 20, sizeof(rsys_auth_remove_p_cap_t)
1906 assert alignment(rsys_auth_remove_p_cap_t) == 4, alignment(rsys_auth_remove_p_cap_t)
1907 class rsys_auth_add_f_cap_t(Structure):
1908     pass
1909 rsys_auth_add_f_cap_t._fields_ = [
1910     ('ta_number', rsbac_list_ta_number_t),
1911     ('filename', STRING),
1912     ('cap_type', rsbac_enum_t),
1913     ('cap_range', rsbac_auth_cap_range_t),
1914     ('ttl', rsbac_time_t),
1915 ]
1916 assert sizeof(rsys_auth_add_f_cap_t) == 24, sizeof(rsys_auth_add_f_cap_t)
1917 assert alignment(rsys_auth_add_f_cap_t) == 4, alignment(rsys_auth_add_f_cap_t)
1918 class rsys_auth_remove_f_cap_t(Structure):
1919     pass
1920 rsys_auth_remove_f_cap_t._fields_ = [
1921     ('ta_number', rsbac_list_ta_number_t),
1922     ('filename', STRING),
1923     ('cap_type', rsbac_enum_t),
1924     ('cap_range', rsbac_auth_cap_range_t),
1925 ]
1926 assert sizeof(rsys_auth_remove_f_cap_t) == 20, sizeof(rsys_auth_remove_f_cap_t)
1927 assert alignment(rsys_auth_remove_f_cap_t) == 4, alignment(rsys_auth_remove_f_cap_t)
1928 class rsys_auth_get_f_caplist_t(Structure):
1929     pass
1930 rsys_auth_get_f_caplist_t._fields_ = [
1931     ('ta_number', rsbac_list_ta_number_t),
1932     ('filename', STRING),
1933     ('cap_type', rsbac_enum_t),
1934     ('caplist', POINTER(rsbac_auth_cap_range_t)),
1935     ('ttllist', POINTER(rsbac_time_t)),
1936     ('maxnum', u_int),
1937 ]
1938 assert sizeof(rsys_auth_get_f_caplist_t) == 24, sizeof(rsys_auth_get_f_caplist_t)
1939 assert alignment(rsys_auth_get_f_caplist_t) == 4, alignment(rsys_auth_get_f_caplist_t)
1940 class rsys_auth_get_p_caplist_t(Structure):
1941     pass
1942 rsys_auth_get_p_caplist_t._fields_ = [
1943     ('ta_number', rsbac_list_ta_number_t),
1944     ('pid', rsbac_pid_t),
1945     ('cap_type', rsbac_enum_t),
1946     ('caplist', POINTER(rsbac_auth_cap_range_t)),
1947     ('ttllist', POINTER(rsbac_time_t)),
1948     ('maxnum', u_int),
1949 ]
1950 assert sizeof(rsys_auth_get_p_caplist_t) == 24, sizeof(rsys_auth_get_p_caplist_t)
1951 assert alignment(rsys_auth_get_p_caplist_t) == 4, alignment(rsys_auth_get_p_caplist_t)
1952 class rsys_acl_t(Structure):
1953     pass
1954 rsys_acl_t._fields_ = [
1955     ('ta_number', rsbac_list_ta_number_t),
1956     ('call', rsbac_enum_t),
1957     ('arg', POINTER(rsbac_acl_syscall_arg_t)),
1958 ]
1959 assert sizeof(rsys_acl_t) == 12, sizeof(rsys_acl_t)
1960 assert alignment(rsys_acl_t) == 4, alignment(rsys_acl_t)
1961 class rsys_acl_n_t(Structure):
1962     pass
1963 rsys_acl_n_t._fields_ = [
1964     ('ta_number', rsbac_list_ta_number_t),
1965     ('call', rsbac_enum_t),
1966     ('arg', POINTER(rsbac_acl_syscall_n_arg_t)),
1967 ]
1968 assert sizeof(rsys_acl_n_t) == 12, sizeof(rsys_acl_n_t)
1969 assert alignment(rsys_acl_n_t) == 4, alignment(rsys_acl_n_t)
1970 class rsys_acl_get_rights_t(Structure):
1971     pass
1972 rsys_acl_get_rights_t._fields_ = [
1973     ('ta_number', rsbac_list_ta_number_t),
1974     ('arg', POINTER(rsbac_acl_syscall_arg_t)),
1975     ('rights_p', POINTER(rsbac_acl_rights_vector_t)),
1976     ('effective', u_int),
1977 ]
1978 assert sizeof(rsys_acl_get_rights_t) == 16, sizeof(rsys_acl_get_rights_t)
1979 assert alignment(rsys_acl_get_rights_t) == 4, alignment(rsys_acl_get_rights_t)
1980 class rsys_acl_get_rights_n_t(Structure):
1981     pass
1982 rsys_acl_get_rights_n_t._fields_ = [
1983     ('ta_number', rsbac_list_ta_number_t),
1984     ('arg', POINTER(rsbac_acl_syscall_n_arg_t)),
1985     ('rights_p', POINTER(rsbac_acl_rights_vector_t)),
1986     ('effective', u_int),
1987 ]
1988 assert sizeof(rsys_acl_get_rights_n_t) == 16, sizeof(rsys_acl_get_rights_n_t)
1989 assert alignment(rsys_acl_get_rights_n_t) == 4, alignment(rsys_acl_get_rights_n_t)
1990 class rsys_acl_get_tlist_t(Structure):
1991     pass
1992 rsys_acl_get_tlist_t._fields_ = [
1993     ('ta_number', rsbac_list_ta_number_t),
1994     ('target', rsbac_enum_t),
1995     ('tid', POINTER(rsbac_target_id_t)),
1996     ('entry_array', POINTER(rsbac_acl_entry_t)),
1997     ('ttl_array', POINTER(rsbac_time_t)),
1998     ('maxnum', u_int),
1999 ]
2000 assert sizeof(rsys_acl_get_tlist_t) == 24, sizeof(rsys_acl_get_tlist_t)
2001 assert alignment(rsys_acl_get_tlist_t) == 4, alignment(rsys_acl_get_tlist_t)
2002 class rsys_acl_get_tlist_n_t(Structure):
2003     pass
2004 rsys_acl_get_tlist_n_t._fields_ = [
2005     ('ta_number', rsbac_list_ta_number_t),
2006     ('target', rsbac_enum_t),
2007     ('t_name', STRING),
2008     ('entry_array', POINTER(rsbac_acl_entry_t)),
2009     ('ttl_array', POINTER(rsbac_time_t)),
2010     ('maxnum', u_int),
2011 ]
2012 assert sizeof(rsys_acl_get_tlist_n_t) == 24, sizeof(rsys_acl_get_tlist_n_t)
2013 assert alignment(rsys_acl_get_tlist_n_t) == 4, alignment(rsys_acl_get_tlist_n_t)
2014 class rsys_acl_get_mask_t(Structure):
2015     pass
2016 rsys_acl_get_mask_t._fields_ = [
2017     ('ta_number', rsbac_list_ta_number_t),
2018     ('target', rsbac_enum_t),
2019     ('tid', POINTER(rsbac_target_id_t)),
2020     ('mask_p', POINTER(rsbac_acl_rights_vector_t)),
2021 ]
2022 assert sizeof(rsys_acl_get_mask_t) == 16, sizeof(rsys_acl_get_mask_t)
2023 assert alignment(rsys_acl_get_mask_t) == 4, alignment(rsys_acl_get_mask_t)
2024 class rsys_acl_get_mask_n_t(Structure):
2025     pass
2026 rsys_acl_get_mask_n_t._fields_ = [
2027     ('ta_number', rsbac_list_ta_number_t),
2028     ('target', rsbac_enum_t),
2029     ('t_name', STRING),
2030     ('mask_p', POINTER(rsbac_acl_rights_vector_t)),
2031 ]
2032 assert sizeof(rsys_acl_get_mask_n_t) == 16, sizeof(rsys_acl_get_mask_n_t)
2033 assert alignment(rsys_acl_get_mask_n_t) == 4, alignment(rsys_acl_get_mask_n_t)
2034 class rsys_acl_group_t(Structure):
2035     pass
2036 rsys_acl_group_t._fields_ = [
2037     ('ta_number', rsbac_list_ta_number_t),
2038     ('call', rsbac_enum_t),
2039     ('arg_p', POINTER(rsbac_acl_group_syscall_arg_t)),
2040 ]
2041 assert sizeof(rsys_acl_group_t) == 12, sizeof(rsys_acl_group_t)
2042 assert alignment(rsys_acl_group_t) == 4, alignment(rsys_acl_group_t)
2043 class rsys_reg_t(Structure):
2044     pass
2045 rsys_reg_t._fields_ = [
2046     ('handle', c_long),
2047     ('arg', c_void_p),
2048 ]
2049 assert sizeof(rsys_reg_t) == 8, sizeof(rsys_reg_t)
2050 assert alignment(rsys_reg_t) == 4, alignment(rsys_reg_t)
2051 class rsys_jail_t(Structure):
2052     pass
2053 rsbac_version_t = __u32
2054 rsbac_jail_ip_t = __u32
2055 rsbac_jail_flags_t = __u32
2056 rsbac_cap_vector_t = __u32
2057 rsbac_jail_scd_vector_t = __u32
2058 rsys_jail_t._fields_ = [
2059     ('version', rsbac_version_t),
2060     ('path', STRING),
2061     ('ip', rsbac_jail_ip_t),
2062     ('flags', rsbac_jail_flags_t),
2063     ('max_caps', rsbac_cap_vector_t),
2064     ('scd_get', rsbac_jail_scd_vector_t),
2065     ('scd_modify', rsbac_jail_scd_vector_t),
2066 ]
2067 assert sizeof(rsys_jail_t) == 28, sizeof(rsys_jail_t)
2068 assert alignment(rsys_jail_t) == 4, alignment(rsys_jail_t)
2069 class rsys_init_t(Structure):
2070     pass
2071 rsys_init_t._fields_ = [
2072     ('root_dev', STRING),
2073 ]
2074 assert sizeof(rsys_init_t) == 4, sizeof(rsys_init_t)
2075 assert alignment(rsys_init_t) == 4, alignment(rsys_init_t)
2076 class rsys_um_auth_name_t(Structure):
2077     pass
2078 rsys_um_auth_name_t._fields_ = [
2079     ('name', STRING),
2080     ('pass', STRING),
2081 ]
2082 assert sizeof(rsys_um_auth_name_t) == 8, sizeof(rsys_um_auth_name_t)
2083 assert alignment(rsys_um_auth_name_t) == 4, alignment(rsys_um_auth_name_t)
2084 class rsys_um_auth_uid_t(Structure):
2085     pass
2086 rsys_um_auth_uid_t._fields_ = [
2087     ('uid', rsbac_uid_t),
2088     ('pass', STRING),
2089 ]
2090 assert sizeof(rsys_um_auth_uid_t) == 8, sizeof(rsys_um_auth_uid_t)
2091 assert alignment(rsys_um_auth_uid_t) == 4, alignment(rsys_um_auth_uid_t)
2092 class rsys_um_add_user_t(Structure):
2093     pass
2094 class rsbac_um_user_entry_t(Structure):
2095     pass
2096 rsys_um_add_user_t._fields_ = [
2097     ('ta_number', rsbac_list_ta_number_t),
2098     ('uid', rsbac_uid_t),
2099     ('entry_p', POINTER(rsbac_um_user_entry_t)),
2100     ('pass', STRING),
2101     ('ttl', rsbac_time_t),
2102 ]
2103 assert sizeof(rsys_um_add_user_t) == 20, sizeof(rsys_um_add_user_t)
2104 assert alignment(rsys_um_add_user_t) == 4, alignment(rsys_um_add_user_t)
2105 class rsys_um_add_group_t(Structure):
2106     pass
2107 class rsbac_um_group_entry_t(Structure):
2108     pass
2109 rsys_um_add_group_t._fields_ = [
2110     ('ta_number', rsbac_list_ta_number_t),
2111     ('gid', rsbac_gid_t),
2112     ('entry_p', POINTER(rsbac_um_group_entry_t)),
2113     ('pass', STRING),
2114     ('ttl', rsbac_time_t),
2115 ]
2116 assert sizeof(rsys_um_add_group_t) == 20, sizeof(rsys_um_add_group_t)
2117 assert alignment(rsys_um_add_group_t) == 4, alignment(rsys_um_add_group_t)
2118 class rsys_um_add_gm_t(Structure):
2119     pass
2120 rsys_um_add_gm_t._fields_ = [
2121     ('ta_number', rsbac_list_ta_number_t),
2122     ('uid', rsbac_uid_t),
2123     ('gid', rsbac_gid_t),
2124     ('ttl', rsbac_time_t),
2125 ]
2126 assert sizeof(rsys_um_add_gm_t) == 16, sizeof(rsys_um_add_gm_t)
2127 assert alignment(rsys_um_add_gm_t) == 4, alignment(rsys_um_add_gm_t)
2128 class rsys_um_mod_user_t(Structure):
2129     pass
2130 class rsbac_um_mod_data_t(Union):
2131     pass
2132 rsys_um_mod_user_t._fields_ = [
2133     ('ta_number', rsbac_list_ta_number_t),
2134     ('uid', rsbac_uid_t),
2135     ('mod', rsbac_enum_t),
2136     ('data_p', POINTER(rsbac_um_mod_data_t)),
2137 ]
2138 assert sizeof(rsys_um_mod_user_t) == 16, sizeof(rsys_um_mod_user_t)
2139 assert alignment(rsys_um_mod_user_t) == 4, alignment(rsys_um_mod_user_t)
2140 class rsys_um_mod_group_t(Structure):
2141     pass
2142 rsys_um_mod_group_t._fields_ = [
2143     ('ta_number', rsbac_list_ta_number_t),
2144     ('gid', rsbac_gid_t),
2145     ('mod', rsbac_enum_t),
2146     ('data_p', POINTER(rsbac_um_mod_data_t)),
2147 ]
2148 assert sizeof(rsys_um_mod_group_t) == 16, sizeof(rsys_um_mod_group_t)
2149 assert alignment(rsys_um_mod_group_t) == 4, alignment(rsys_um_mod_group_t)
2150 class rsys_um_get_user_item_t(Structure):
2151     pass
2152 rsys_um_get_user_item_t._fields_ = [
2153     ('ta_number', rsbac_list_ta_number_t),
2154     ('uid', rsbac_uid_t),
2155     ('mod', rsbac_enum_t),
2156     ('data_p', POINTER(rsbac_um_mod_data_t)),
2157 ]
2158 assert sizeof(rsys_um_get_user_item_t) == 16, sizeof(rsys_um_get_user_item_t)
2159 assert alignment(rsys_um_get_user_item_t) == 4, alignment(rsys_um_get_user_item_t)
2160 class rsys_um_get_group_item_t(Structure):
2161     pass
2162 rsys_um_get_group_item_t._fields_ = [
2163     ('ta_number', rsbac_list_ta_number_t),
2164     ('gid', rsbac_gid_t),
2165     ('mod', rsbac_enum_t),
2166     ('data_p', POINTER(rsbac_um_mod_data_t)),
2167 ]
2168 assert sizeof(rsys_um_get_group_item_t) == 16, sizeof(rsys_um_get_group_item_t)
2169 assert alignment(rsys_um_get_group_item_t) == 4, alignment(rsys_um_get_group_item_t)
2170 class rsys_um_remove_user_t(Structure):
2171     pass
2172 rsys_um_remove_user_t._fields_ = [
2173     ('ta_number', rsbac_list_ta_number_t),
2174     ('uid', rsbac_uid_t),
2175 ]
2176 assert sizeof(rsys_um_remove_user_t) == 8, sizeof(rsys_um_remove_user_t)
2177 assert alignment(rsys_um_remove_user_t) == 4, alignment(rsys_um_remove_user_t)
2178 class rsys_um_remove_group_t(Structure):
2179     pass
2180 rsys_um_remove_group_t._fields_ = [
2181     ('ta_number', rsbac_list_ta_number_t),
2182     ('gid', rsbac_gid_t),
2183 ]
2184 assert sizeof(rsys_um_remove_group_t) == 8, sizeof(rsys_um_remove_group_t)
2185 assert alignment(rsys_um_remove_group_t) == 4, alignment(rsys_um_remove_group_t)
2186 class rsys_um_remove_gm_t(Structure):
2187     pass
2188 rsys_um_remove_gm_t._fields_ = [
2189     ('ta_number', rsbac_list_ta_number_t),
2190     ('uid', rsbac_uid_t),
2191     ('gid', rsbac_gid_t),
2192 ]
2193 assert sizeof(rsys_um_remove_gm_t) == 12, sizeof(rsys_um_remove_gm_t)
2194 assert alignment(rsys_um_remove_gm_t) == 4, alignment(rsys_um_remove_gm_t)
2195 class rsys_um_user_exists_t(Structure):
2196     pass
2197 rsys_um_user_exists_t._fields_ = [
2198     ('ta_number', rsbac_list_ta_number_t),
2199     ('uid', rsbac_uid_t),
2200 ]
2201 assert sizeof(rsys_um_user_exists_t) == 8, sizeof(rsys_um_user_exists_t)
2202 assert alignment(rsys_um_user_exists_t) == 4, alignment(rsys_um_user_exists_t)
2203 class rsys_um_group_exists_t(Structure):
2204     pass
2205 rsys_um_group_exists_t._fields_ = [
2206     ('ta_number', rsbac_list_ta_number_t),
2207     ('gid', rsbac_gid_t),
2208 ]
2209 assert sizeof(rsys_um_group_exists_t) == 8, sizeof(rsys_um_group_exists_t)
2210 assert alignment(rsys_um_group_exists_t) == 4, alignment(rsys_um_group_exists_t)
2211 class rsys_um_get_next_user_t(Structure):
2212     pass
2213 rsys_um_get_next_user_t._fields_ = [
2214     ('ta_number', rsbac_list_ta_number_t),
2215     ('old_user', rsbac_uid_t),
2216     ('next_user_p', POINTER(rsbac_uid_t)),
2217 ]
2218 assert sizeof(rsys_um_get_next_user_t) == 12, sizeof(rsys_um_get_next_user_t)
2219 assert alignment(rsys_um_get_next_user_t) == 4, alignment(rsys_um_get_next_user_t)
2220 class rsys_um_get_user_list_t(Structure):
2221     pass
2222 rsys_um_get_user_list_t._fields_ = [
2223     ('ta_number', rsbac_list_ta_number_t),
2224     ('user_array', POINTER(rsbac_uid_t)),
2225     ('maxnum', u_int),
2226 ]
2227 assert sizeof(rsys_um_get_user_list_t) == 12, sizeof(rsys_um_get_user_list_t)
2228 assert alignment(rsys_um_get_user_list_t) == 4, alignment(rsys_um_get_user_list_t)
2229 class rsys_um_get_gm_list_t(Structure):
2230     pass
2231 rsys_um_get_gm_list_t._fields_ = [
2232     ('ta_number', rsbac_list_ta_number_t),
2233     ('user', rsbac_uid_t),
2234     ('group_array', POINTER(rsbac_gid_t)),
2235     ('maxnum', u_int),
2236 ]
2237 assert sizeof(rsys_um_get_gm_list_t) == 16, sizeof(rsys_um_get_gm_list_t)
2238 assert alignment(rsys_um_get_gm_list_t) == 4, alignment(rsys_um_get_gm_list_t)
2239 class rsys_um_get_gm_user_list_t(Structure):
2240     pass
2241 rsys_um_get_gm_user_list_t._fields_ = [
2242     ('ta_number', rsbac_list_ta_number_t),
2243     ('group', rsbac_gid_t),
2244     ('user_array', POINTER(rsbac_uid_t)),
2245     ('maxnum', u_int),
2246 ]
2247 assert sizeof(rsys_um_get_gm_user_list_t) == 16, sizeof(rsys_um_get_gm_user_list_t)
2248 assert alignment(rsys_um_get_gm_user_list_t) == 4, alignment(rsys_um_get_gm_user_list_t)
2249 class rsys_um_get_group_list_t(Structure):
2250     pass
2251 rsys_um_get_group_list_t._fields_ = [
2252     ('ta_number', rsbac_list_ta_number_t),
2253     ('group_array', POINTER(rsbac_gid_t)),
2254     ('maxnum', u_int),
2255 ]
2256 assert sizeof(rsys_um_get_group_list_t) == 12, sizeof(rsys_um_get_group_list_t)
2257 assert alignment(rsys_um_get_group_list_t) == 4, alignment(rsys_um_get_group_list_t)
2258 class rsys_um_get_uid_t(Structure):
2259     pass
2260 rsys_um_get_uid_t._fields_ = [
2261     ('ta_number', rsbac_list_ta_number_t),
2262     ('name', STRING),
2263     ('uid_p', POINTER(rsbac_uid_t)),
2264 ]
2265 assert sizeof(rsys_um_get_uid_t) == 12, sizeof(rsys_um_get_uid_t)
2266 assert alignment(rsys_um_get_uid_t) == 4, alignment(rsys_um_get_uid_t)
2267 class rsys_um_get_gid_t(Structure):
2268     pass
2269 rsys_um_get_gid_t._fields_ = [
2270     ('ta_number', rsbac_list_ta_number_t),
2271     ('name', STRING),
2272     ('gid_p', POINTER(rsbac_gid_t)),
2273 ]
2274 assert sizeof(rsys_um_get_gid_t) == 12, sizeof(rsys_um_get_gid_t)
2275 assert alignment(rsys_um_get_gid_t) == 4, alignment(rsys_um_get_gid_t)
2276 class rsys_um_set_pass_t(Structure):
2277     pass
2278 rsys_um_set_pass_t._fields_ = [
2279     ('uid', rsbac_uid_t),
2280     ('old_pass', STRING),
2281     ('new_pass', STRING),
2282 ]
2283 assert sizeof(rsys_um_set_pass_t) == 12, sizeof(rsys_um_set_pass_t)
2284 assert alignment(rsys_um_set_pass_t) == 4, alignment(rsys_um_set_pass_t)
2285 class rsys_um_set_pass_name_t(Structure):
2286     pass
2287 rsys_um_set_pass_name_t._fields_ = [
2288     ('name', STRING),
2289     ('old_pass', STRING),
2290     ('new_pass', STRING),
2291 ]
2292 assert sizeof(rsys_um_set_pass_name_t) == 12, sizeof(rsys_um_set_pass_name_t)
2293 assert alignment(rsys_um_set_pass_name_t) == 4, alignment(rsys_um_set_pass_name_t)
2294 class rsys_um_set_group_pass_t(Structure):
2295     pass
2296 rsys_um_set_group_pass_t._fields_ = [
2297     ('gid', rsbac_gid_t),
2298     ('new_pass', STRING),
2299 ]
2300 assert sizeof(rsys_um_set_group_pass_t) == 8, sizeof(rsys_um_set_group_pass_t)
2301 assert alignment(rsys_um_set_group_pass_t) == 4, alignment(rsys_um_set_group_pass_t)
2302 class rsys_um_check_account_t(Structure):
2303     pass
2304 rsys_um_check_account_t._fields_ = [
2305     ('uid', rsbac_uid_t),
2306 ]
2307 assert sizeof(rsys_um_check_account_t) == 4, sizeof(rsys_um_check_account_t)
2308 assert alignment(rsys_um_check_account_t) == 4, alignment(rsys_um_check_account_t)
2309 class rsys_um_check_account_name_t(Structure):
2310     pass
2311 rsys_um_check_account_name_t._fields_ = [
2312     ('name', STRING),
2313 ]
2314 assert sizeof(rsys_um_check_account_name_t) == 4, sizeof(rsys_um_check_account_name_t)
2315 assert alignment(rsys_um_check_account_name_t) == 4, alignment(rsys_um_check_account_name_t)
2316 class rsys_list_ta_begin_t(Structure):
2317     pass
2318 rsys_list_ta_begin_t._fields_ = [
2319     ('ttl', rsbac_time_t),
2320     ('ta_number_p', POINTER(rsbac_list_ta_number_t)),
2321     ('commit_uid', rsbac_uid_t),
2322     ('password', STRING),
2323 ]
2324 assert sizeof(rsys_list_ta_begin_t) == 16, sizeof(rsys_list_ta_begin_t)
2325 assert alignment(rsys_list_ta_begin_t) == 4, alignment(rsys_list_ta_begin_t)
2326 class rsys_list_ta_refresh_t(Structure):
2327     pass
2328 rsys_list_ta_refresh_t._fields_ = [
2329     ('ttl', rsbac_time_t),
2330     ('ta_number', rsbac_list_ta_number_t),
2331     ('password', STRING),
2332 ]
2333 assert sizeof(rsys_list_ta_refresh_t) == 12, sizeof(rsys_list_ta_refresh_t)
2334 assert alignment(rsys_list_ta_refresh_t) == 4, alignment(rsys_list_ta_refresh_t)
2335 class rsys_list_ta_commit_t(Structure):
2336     pass
2337 rsys_list_ta_commit_t._fields_ = [
2338     ('ta_number', rsbac_list_ta_number_t),
2339     ('password', STRING),
2340 ]
2341 assert sizeof(rsys_list_ta_commit_t) == 8, sizeof(rsys_list_ta_commit_t)
2342 assert alignment(rsys_list_ta_commit_t) == 4, alignment(rsys_list_ta_commit_t)
2343 class rsys_list_ta_forget_t(Structure):
2344     pass
2345 rsys_list_ta_forget_t._fields_ = [
2346     ('ta_number', rsbac_list_ta_number_t),
2347     ('password', STRING),
2348 ]
2349 assert sizeof(rsys_list_ta_forget_t) == 8, sizeof(rsys_list_ta_forget_t)
2350 assert alignment(rsys_list_ta_forget_t) == 4, alignment(rsys_list_ta_forget_t)
2351 class rsys_list_all_dev_t(Structure):
2352     pass
2353 rsys_list_all_dev_t._fields_ = [
2354     ('ta_number', rsbac_list_ta_number_t),
2355     ('id_p', POINTER(rsbac_dev_desc_t)),
2356     ('maxnum', u_long),
2357 ]
2358 assert sizeof(rsys_list_all_dev_t) == 12, sizeof(rsys_list_all_dev_t)
2359 assert alignment(rsys_list_all_dev_t) == 4, alignment(rsys_list_all_dev_t)
2360 class rsys_acl_list_all_dev_t(Structure):
2361     pass
2362 rsys_acl_list_all_dev_t._fields_ = [
2363     ('ta_number', rsbac_list_ta_number_t),
2364     ('id_p', POINTER(rsbac_dev_desc_t)),
2365     ('maxnum', u_long),
2366 ]
2367 assert sizeof(rsys_acl_list_all_dev_t) == 12, sizeof(rsys_acl_list_all_dev_t)
2368 assert alignment(rsys_acl_list_all_dev_t) == 4, alignment(rsys_acl_list_all_dev_t)
2369 class rsys_list_all_user_t(Structure):
2370     pass
2371 rsys_list_all_user_t._fields_ = [
2372     ('ta_number', rsbac_list_ta_number_t),
2373     ('id_p', POINTER(rsbac_uid_t)),
2374     ('maxnum', u_long),
2375 ]
2376 assert sizeof(rsys_list_all_user_t) == 12, sizeof(rsys_list_all_user_t)
2377 assert alignment(rsys_list_all_user_t) == 4, alignment(rsys_list_all_user_t)
2378 class rsys_acl_list_all_user_t(Structure):
2379     pass
2380 rsys_acl_list_all_user_t._fields_ = [
2381     ('ta_number', rsbac_list_ta_number_t),
2382     ('id_p', POINTER(rsbac_uid_t)),
2383     ('maxnum', u_long),
2384 ]
2385 assert sizeof(rsys_acl_list_all_user_t) == 12, sizeof(rsys_acl_list_all_user_t)
2386 assert alignment(rsys_acl_list_all_user_t) == 4, alignment(rsys_acl_list_all_user_t)
2387 class rsys_list_all_group_t(Structure):
2388     pass
2389 rsys_list_all_group_t._fields_ = [
2390     ('ta_number', rsbac_list_ta_number_t),
2391     ('id_p', POINTER(rsbac_gid_t)),
2392     ('maxnum', u_long),
2393 ]
2394 assert sizeof(rsys_list_all_group_t) == 12, sizeof(rsys_list_all_group_t)
2395 assert alignment(rsys_list_all_group_t) == 4, alignment(rsys_list_all_group_t)
2396 class rsys_acl_list_all_group_t(Structure):
2397     pass
2398 rsys_acl_list_all_group_t._fields_ = [
2399     ('ta_number', rsbac_list_ta_number_t),
2400     ('id_p', POINTER(rsbac_gid_t)),
2401     ('maxnum', u_long),
2402 ]
2403 assert sizeof(rsys_acl_list_all_group_t) == 12, sizeof(rsys_acl_list_all_group_t)
2404 assert alignment(rsys_acl_list_all_group_t) == 4, alignment(rsys_acl_list_all_group_t)
2405 class rsys_list_all_ipc_t(Structure):
2406     pass
2407 rsys_list_all_ipc_t._fields_ = [
2408     ('ta_number', rsbac_list_ta_number_t),
2409     ('id_p', POINTER(rsbac_ipc_t)),
2410     ('maxnum', u_long),
2411 ]
2412 assert sizeof(rsys_list_all_ipc_t) == 12, sizeof(rsys_list_all_ipc_t)
2413 assert alignment(rsys_list_all_ipc_t) == 4, alignment(rsys_list_all_ipc_t)
2414 class rsys_rc_select_fd_create_type_t(Structure):
2415     pass
2416 rsys_rc_select_fd_create_type_t._fields_ = [
2417     ('type', rsbac_rc_type_id_t),
2418 ]
2419 assert sizeof(rsys_rc_select_fd_create_type_t) == 4, sizeof(rsys_rc_select_fd_create_type_t)
2420 assert alignment(rsys_rc_select_fd_create_type_t) == 4, alignment(rsys_rc_select_fd_create_type_t)
2421 class rsbac_syscall_arg_t(Union):
2422     pass
2423 rsbac_syscall_arg_t._fields_ = [
2424     ('check', rsys_check_t),
2425     ('get_attr', rsys_get_attr_t),
2426     ('get_attr_n', rsys_get_attr_n_t),
2427     ('set_attr', rsys_set_attr_t),
2428     ('set_attr_n', rsys_set_attr_n_t),
2429     ('remove_target', rsys_remove_target_t),
2430     ('remove_target_n', rsys_remove_target_n_t),
2431     ('net_list_all_netdev', rsys_net_list_all_netdev_t),
2432     ('net_template', rsys_net_template_t),
2433     ('net_list_all_template', rsys_net_list_all_template_t),
2434     ('switch_module', rsys_switch_t),
2435     ('get_switch_module', rsys_get_switch_t),
2436     ('adf_log_switch', rsys_adf_log_switch_t),
2437     ('get_adf_log', rsys_get_adf_log_t),
2438     ('log', rsys_log_t),
2439     ('mac_set_curr_level', rsys_mac_set_curr_level_t),
2440     ('mac_get_curr_level', rsys_mac_get_curr_level_t),
2441     ('mac_get_max_level', rsys_mac_get_max_level_t),
2442     ('mac_get_min_level', rsys_mac_get_min_level_t),
2443     ('mac_add_p_tru', rsys_mac_add_p_tru_t),
2444     ('mac_remove_p_tru', rsys_mac_remove_p_tru_t),
2445     ('mac_add_f_tru', rsys_mac_add_f_tru_t),
2446     ('mac_remove_f_tru', rsys_mac_remove_f_tru_t),
2447     ('mac_get_f_trulist', rsys_mac_get_f_trulist_t),
2448     ('mac_get_p_trulist', rsys_mac_get_p_trulist_t),
2449     ('pm', rsys_pm_t),
2450     ('pm_change_current_task', rsys_pm_change_current_task_t),
2451     ('pm_create_file', rsys_pm_create_file_t),
2452     ('rc_copy_role', rsys_rc_copy_role_t),
2453     ('rc_copy_type', rsys_rc_copy_type_t),
2454     ('rc_get_item', rsys_rc_get_item_t),
2455     ('rc_set_item', rsys_rc_set_item_t),
2456     ('rc_get_list', rsys_rc_get_list_t),
2457     ('rc_change_role', rsys_rc_change_role_t),
2458     ('rc_get_eff_rights_n', rsys_rc_get_eff_rights_n_t),
2459     ('rc_get_current_role', rsys_rc_get_current_role_t),
2460     ('auth_add_p_cap', rsys_auth_add_p_cap_t),
2461     ('auth_remove_p_cap', rsys_auth_remove_p_cap_t),
2462     ('auth_add_f_cap', rsys_auth_add_f_cap_t),
2463     ('auth_remove_f_cap', rsys_auth_remove_f_cap_t),
2464     ('auth_get_f_caplist', rsys_auth_get_f_caplist_t),
2465     ('auth_get_p_caplist', rsys_auth_get_p_caplist_t),
2466     ('acl', rsys_acl_t),
2467     ('acl_n', rsys_acl_n_t),
2468     ('acl_get_rights', rsys_acl_get_rights_t),
2469     ('acl_get_rights_n', rsys_acl_get_rights_n_t),
2470     ('acl_get_tlist', rsys_acl_get_tlist_t),
2471     ('acl_get_tlist_n', rsys_acl_get_tlist_n_t),
2472     ('acl_get_mask', rsys_acl_get_mask_t),
2473     ('acl_get_mask_n', rsys_acl_get_mask_n_t),
2474     ('acl_group', rsys_acl_group_t),
2475     ('reg', rsys_reg_t),
2476     ('jail', rsys_jail_t),
2477     ('init', rsys_init_t),
2478     ('um_auth_name', rsys_um_auth_name_t),
2479     ('um_auth_uid', rsys_um_auth_uid_t),
2480     ('um_add_user', rsys_um_add_user_t),
2481     ('um_add_group', rsys_um_add_group_t),
2482     ('um_add_gm', rsys_um_add_gm_t),
2483     ('um_mod_user', rsys_um_mod_user_t),
2484     ('um_mod_group', rsys_um_mod_group_t),
2485     ('um_get_user_item', rsys_um_get_user_item_t),
2486     ('um_get_group_item', rsys_um_get_group_item_t),
2487     ('um_remove_user', rsys_um_remove_user_t),
2488     ('um_remove_group', rsys_um_remove_group_t),
2489     ('um_remove_gm', rsys_um_remove_gm_t),
2490     ('um_user_exists', rsys_um_user_exists_t),
2491     ('um_group_exists', rsys_um_group_exists_t),
2492     ('um_get_next_user', rsys_um_get_next_user_t),
2493     ('um_get_user_list', rsys_um_get_user_list_t),
2494     ('um_get_gm_list', rsys_um_get_gm_list_t),
2495     ('um_get_gm_user_list', rsys_um_get_gm_user_list_t),
2496     ('um_get_group_list', rsys_um_get_group_list_t),
2497     ('um_get_uid', rsys_um_get_uid_t),
2498     ('um_get_gid', rsys_um_get_gid_t),
2499     ('um_set_pass', rsys_um_set_pass_t),
2500     ('um_set_pass_name', rsys_um_set_pass_name_t),
2501     ('um_set_group_pass', rsys_um_set_group_pass_t),
2502     ('um_check_account', rsys_um_check_account_t),
2503     ('um_check_account_name', rsys_um_check_account_name_t),
2504     ('list_ta_begin', rsys_list_ta_begin_t),
2505     ('list_ta_refresh', rsys_list_ta_refresh_t),
2506     ('list_ta_commit', rsys_list_ta_commit_t),
2507     ('list_ta_forget', rsys_list_ta_forget_t),
2508     ('list_all_dev', rsys_list_all_dev_t),
2509     ('acl_list_all_dev', rsys_acl_list_all_dev_t),
2510     ('list_all_user', rsys_list_all_user_t),
2511     ('acl_list_all_user', rsys_acl_list_all_user_t),
2512     ('list_all_group', rsys_list_all_group_t),
2513     ('acl_list_all_group', rsys_acl_list_all_group_t),
2514     ('list_all_ipc', rsys_list_all_ipc_t),
2515     ('rc_select_fd_create_type', rsys_rc_select_fd_create_type_t),
2516     ('dummy', c_int),
2517 ]
2518 assert sizeof(rsbac_syscall_arg_t) == 28, sizeof(rsbac_syscall_arg_t)
2519 assert alignment(rsbac_syscall_arg_t) == 4, alignment(rsbac_syscall_arg_t)
2520 rsbac_old_uid_t = __u16
2521 rsbac_old_gid_t = __u16
2522 class rsbac_nanotime_t(Structure):
2523     pass
2524 rsbac_nanotime_t._fields_ = [
2525     ('sec', rsbac_time_t),
2526     ('nsec', __u32),
2527 ]
2528 assert sizeof(rsbac_nanotime_t) == 8, sizeof(rsbac_nanotime_t)
2529 assert alignment(rsbac_nanotime_t) == 4, alignment(rsbac_nanotime_t)
2530 rsbac_boolean_int_t = __u8
2531 rsbac_pseudo_t = __u32
2532 rsbac_ta_number_t = __u32
2533
2534 # values for enumeration 'rsbac_old_security_level_t'
2535 rsbac_old_security_level_t = c_int # enum
2536 rsbac_cwi_relation_id_t = u_int
2537
2538 # values for enumeration 'rsbac_system_role_t'
2539 rsbac_system_role_t = c_int # enum
2540 rsbac_system_role_int_t = rsbac_enum_t
2541
2542 # values for enumeration 'rsbac_fake_root_uid_t'
2543 rsbac_fake_root_uid_t = c_int # enum
2544 rsbac_fake_root_uid_int_t = rsbac_enum_t
2545
2546 # values for enumeration 'rsbac_scd_type_t'
2547 rsbac_scd_type_t = c_int # enum
2548 rsbac_scd_vector_t = __u32
2549
2550 # values for enumeration 'rsbac_dev_type_t'
2551 rsbac_dev_type_t = c_int # enum
2552 rsbac_inode_nr_t = __u32
2553
2554 # values for enumeration 'rsbac_linux_dac_disable_t'
2555 rsbac_linux_dac_disable_t = c_int # enum
2556 rsbac_linux_dac_disable_int_t = rsbac_enum_t
2557
2558 # values for enumeration 'rsbac_log_level_t'
2559 rsbac_log_level_t = c_int # enum
2560 rsbac_log_array_t = __u64
2561 rsbac_mac_user_flags_t = __u8
2562 rsbac_mac_process_flags_t = __u16
2563 rsbac_mac_file_flags_t = __u8
2564 class rsbac_fs_file_t(Structure):
2565     pass
2566 rsbac_fs_file_t._fields_ = [
2567 ]
2568 rsbac_mac_file_t = rsbac_fs_file_t
2569 rsbac_mac_auto_int_t = rsbac_enum_t
2570
2571 # values for enumeration 'rsbac_mac_auto_t'
2572 rsbac_mac_auto_t = c_int # enum
2573 rsbac_daz_scanned_t = __u8
2574 rsbac_daz_scanner_t = __u8
2575 rsbac_ff_flags_t = __u16
2576 rsbac_auth_file_t = rsbac_fs_file_t
2577
2578 # values for enumeration 'rsbac_auth_cap_type_t'
2579 rsbac_auth_cap_type_t = c_int # enum
2580 rsbac_auth_cap_type_int_t = rsbac_enum_t
2581
2582 # values for enumeration 'rsbac_auth_may_setuid_t'
2583 rsbac_auth_may_setuid_t = c_int # enum
2584 rsbac_auth_may_setuid_int_t = rsbac_enum_t
2585
2586 # values for enumeration 'rsbac_cap_process_hiding_t'
2587 rsbac_cap_process_hiding_t = c_int # enum
2588 rsbac_cap_process_hiding_int_t = rsbac_enum_t
2589
2590 # values for enumeration 'rsbac_cap_ld_env_t'
2591 rsbac_cap_ld_env_t = c_int # enum
2592 rsbac_cap_ld_env_int_t = rsbac_enum_t
2593 rsbac_jail_id_t = __u32
2594 rsbac_pax_flags_t = c_ulong
2595 rsbac_res_limit_t = __u32
2596 rsbac_res_array_t = rsbac_res_limit_t * 11
2597 rsbac_reg_handle_t = __s32
2598
2599 # values for enumeration 'rsbac_adf_request_t'
2600 rsbac_adf_request_t = c_int # enum
2601 rsbac_adf_request_int_t = rsbac_enum_t
2602
2603 # values for enumeration 'rsbac_adf_req_ret_t'
2604 rsbac_adf_req_ret_t = c_int # enum
2605
2606 # values for enumeration 'rsbac_switch_target_t'
2607 rsbac_switch_target_t = c_int # enum
2608 rsbac_switch_target_int_t = rsbac_enum_t
2609
2610 # values for enumeration 'rsbac_attribute_t'
2611 rsbac_attribute_t = c_int # enum
2612 __u_short = c_ushort
2613 u_short = __u_short
2614 rsbac_attribute_value_t._pack_ = 4
2615 rsbac_attribute_value_t._fields_ = [
2616     ('owner', rsbac_uid_t),
2617     ('pseudo', rsbac_pseudo_t),
2618     ('security_level', rsbac_security_level_t),
2619     ('mac_categories', rsbac_mac_category_vector_t),
2620     ('system_role', rsbac_system_role_int_t),
2621     ('current_sec_level', rsbac_security_level_t),
2622     ('min_write_open', rsbac_security_level_t),
2623     ('max_read_open', rsbac_security_level_t),
2624     ('mac_user_flags', rsbac_mac_user_flags_t),
2625     ('mac_process_flags', rsbac_mac_process_flags_t),
2626     ('mac_file_flags', rsbac_mac_file_flags_t),
2627     ('mac_auto', rsbac_mac_auto_int_t),
2628     ('mac_check', rsbac_boolean_t),
2629     ('mac_prop_trusted', rsbac_boolean_t),
2630     ('pm_role', rsbac_pm_role_int_t),
2631     ('pm_process_type', rsbac_pm_process_type_int_t),
2632     ('pm_current_task', rsbac_pm_task_id_t),
2633     ('pm_object_class', rsbac_pm_object_class_id_t),
2634     ('pm_ipc_purpose', rsbac_pm_purpose_id_t),
2635     ('pm_object_type', rsbac_pm_object_type_int_t),
2636     ('pm_program_type', rsbac_pm_program_type_int_t),
2637     ('pm_tp', rsbac_pm_tp_id_t),
2638     ('pm_task_set', rsbac_pm_task_set_id_t),
2639     ('daz_scanned', rsbac_daz_scanned_t),
2640     ('daz_scanner', rsbac_daz_scanner_t),
2641     ('ff_flags', rsbac_ff_flags_t),
2642     ('rc_type', rsbac_rc_type_id_t),
2643     ('rc_type_fd', rsbac_rc_type_id_t),
2644     ('rc_force_role', rsbac_rc_role_id_t),
2645     ('rc_initial_role', rsbac_rc_role_id_t),
2646     ('rc_role', rsbac_rc_role_id_t),
2647     ('rc_def_role', rsbac_rc_role_id_t),
2648     ('auth_may_setuid', rsbac_auth_may_setuid_int_t),
2649     ('auth_may_set_cap', rsbac_boolean_t),
2650     ('auth_p_capset', rsbac_pid_t),
2651     ('auth_f_capset', rsbac_inode_nr_t),
2652     ('auth_learn', rsbac_boolean_t),
2653     ('min_caps', rsbac_cap_vector_t),
2654     ('max_caps', rsbac_cap_vector_t),
2655     ('max_caps_user', rsbac_cap_vector_t),
2656     ('max_caps_program', rsbac_cap_vector_t),
2657     ('jail_id', rsbac_jail_id_t),
2658     ('jail_parent', rsbac_jail_id_t),
2659     ('jail_ip', rsbac_jail_ip_t),
2660     ('jail_flags', rsbac_jail_flags_t),
2661     ('jail_max_caps', rsbac_cap_vector_t),
2662     ('jail_scd_get', rsbac_jail_scd_vector_t),
2663     ('jail_scd_modify', rsbac_jail_scd_vector_t),
2664     ('pax_flags', rsbac_pax_flags_t),
2665     ('res_array', rsbac_res_array_t),
2666     ('log_array_low', rsbac_log_array_t),
2667     ('log_array_high', rsbac_log_array_t),
2668     ('log_program_based', rsbac_request_vector_t),
2669     ('log_user_based', rsbac_request_vector_t),
2670     ('symlink_add_remote_ip', rsbac_enum_t),
2671     ('symlink_add_uid', rsbac_boolean_t),
2672     ('symlink_add_mac_level', rsbac_boolean_t),
2673     ('symlink_add_rc_role', rsbac_boolean_t),
2674     ('linux_dac_disable', rsbac_linux_dac_disable_int_t),
2675     ('cap_process_hiding', rsbac_cap_process_hiding_int_t),
2676     ('fake_root_uid', rsbac_fake_root_uid_int_t),
2677     ('audit_uid', rsbac_uid_t),
2678     ('auid_exempt', rsbac_uid_t),
2679     ('auth_last_auth', rsbac_uid_t),
2680     ('remote_ip', __u32),
2681     ('cap_ld_env', rsbac_cap_ld_env_int_t),
2682     ('rc_select_type', rsbac_rc_type_id_t),
2683     ('u_char_dummy', u_char),
2684     ('u_short_dummy', u_short),
2685     ('dummy', c_int),
2686     ('u_dummy', u_int),
2687     ('long_dummy', c_long),
2688     ('u_long_dummy', u_long),
2689 ]
2690 assert sizeof(rsbac_attribute_value_t) == 44, sizeof(rsbac_attribute_value_t)
2691 assert alignment(rsbac_attribute_value_t) == 4, alignment(rsbac_attribute_value_t)
2692 rsbac_um_days_t = __s32
2693
2694 # values for enumeration 'rsbac_um_mod_t'
2695 rsbac_um_mod_t = c_int # enum
2696 rsbac_um_mod_data_t._fields_ = [
2697     ('string', c_char * 256),
2698     ('group', rsbac_gid_t),
2699     ('days', rsbac_um_days_t),
2700     ('ttl', rsbac_time_t),
2701 ]
2702 assert sizeof(rsbac_um_mod_data_t) == 256, sizeof(rsbac_um_mod_data_t)
2703 assert alignment(rsbac_um_mod_data_t) == 4, alignment(rsbac_um_mod_data_t)
2704 rsbac_um_user_entry_t._fields_ = [
2705     ('name', c_char * 16),
2706     ('pass', c_char * 24),
2707     ('fullname', c_char * 30),
2708     ('homedir', c_char * 50),
2709     ('shell', c_char * 24),
2710     ('group', rsbac_gid_t),
2711     ('lastchange', rsbac_um_days_t),
2712     ('minchange', rsbac_um_days_t),
2713     ('maxchange', rsbac_um_days_t),
2714     ('warnchange', rsbac_um_days_t),
2715     ('inactive', rsbac_um_days_t),
2716     ('expire', rsbac_um_days_t),
2717 ]
2718 assert sizeof(rsbac_um_user_entry_t) == 172, sizeof(rsbac_um_user_entry_t)
2719 assert alignment(rsbac_um_user_entry_t) == 4, alignment(rsbac_um_user_entry_t)
2720 rsbac_um_group_entry_t._fields_ = [
2721     ('name', c_char * 16),
2722     ('pass', c_char * 24),
2723 ]
2724 assert sizeof(rsbac_um_group_entry_t) == 40, sizeof(rsbac_um_group_entry_t)
2725 assert alignment(rsbac_um_group_entry_t) == 1, alignment(rsbac_um_group_entry_t)
2726 _ATFILE_SOURCE = 1 # Variable c_int
2727 RSBAC_VERSION_MAJOR = 1 # Variable c_int
2728 __NR_clock_settime = 264 # Variable c_int
2729 ETOOMANYREFS = 109 # Variable c_int
2730 __NR_lsetxattr = 227 # Variable c_int
2731 RSBAC_AUTH_GROUP_F_CAP = 4294967293L # Variable c_uint
2732 RSBAC_ACL_DEFAULT_NETDEV_MASK = 504403295705665536L # Variable c_ulonglong
2733 __NR_prctl = 172 # Variable c_int
2734 RSBAC_EWEAKPASSWORD = 1032 # Variable c_int
2735 __NR_vfork = 190 # Variable c_int
2736 ENAMETOOLONG = 36 # Variable c_int
2737 __NR_olduname = 109 # Variable c_int
2738 ETXTBSY = 26 # Variable c_int
2739 __clockid_t_defined = 1 # Variable c_int
2740 RSBAC_JAIL_LOCALHOST = 16777343 # Variable c_int
2741 PF_PAX_SEGMEXEC = 536870912 # Variable c_int
2742 __NR_prof = 44 # Variable c_int
2743 RSBAC_ENOTFOUND = 1009 # Variable c_int
2744 EL3HLT = 46 # Variable c_int
2745 CAP_AUDIT_CONTROL = 30 # Variable c_int
2746 RSBAC_DATAPROT_UID = 401 # Variable c_int
2747 RSBAC_CAP_DEFAULT_MIN = 0 # Variable c_uint
2748 RSBAC_ECOULDNOTCREATEPATH = 1014 # Variable c_int
2749 RSBAC_PAX_ALL_FLAGS = 4278190080L # Variable c_ulong
2750 __timer_t_defined = 1 # Variable c_int
2751 __NR_mpx = 56 # Variable c_int
2752 __NR_truncate = 92 # Variable c_int
2753 __SIZEOF_PTHREAD_CONDATTR_T = 4 # Variable c_int
2754 __NR_sync_file_range = 314 # Variable c_int
2755 __NR_mq_open = 277 # Variable c_int
2756 __NR_getdents64 = 220 # Variable c_int
2757 __NR_settimeofday = 79 # Variable c_int
2758 __NR_vserver = 273 # Variable c_int
2759 _LINUX_CAPABILITY_VERSION = 429392688 # Variable c_int
2760 EFBIG = 27 # Variable c_int
2761 RSBAC_RC_ALL_REQUESTS = 18446744073709551615L # Variable c_ulonglong
2762 RSBAC_EACCESS = 1002 # Variable c_int
2763 __NR_epoll_wait = 256 # Variable c_int
2764 __NR_getresgid = 171 # Variable c_int
2765 __NR_sync = 36 # Variable c_int
2766 RSBAC_AUTH_MAX_RANGE_GID = 4294967286L # Variable c_uint
2767 ENOLINK = 67 # Variable c_int
2768 RSBAC_ENOROOTDEV = 1008 # Variable c_int
2769 MAC_trusted = 4 # Variable c_int
2770 RSBAC_NET_TEMP_INET_ID = 100110 # Variable c_int
2771 RSBAC_AUTH_MAX_RANGE_UID = 4294967286L # Variable c_uint
2772 __NR_create_module = 127 # Variable c_int
2773 EL3RST = 47 # Variable c_int
2774 RSBAC_UM_USER_LIST_NAME = 'um_user' # Variable STRING
2775 EREMOTEIO = 121 # Variable c_int
2776 __SIZEOF_PTHREAD_MUTEXATTR_T = 4 # Variable c_int
2777 CAP_NET_BROADCAST = 11 # Variable c_int
2778 __NR_setresuid = 164 # Variable c_int
2779 RSBAC_UM_PASS_LEN = 24 # Variable c_int
2780 RST_min = 32 # Variable c_int
2781 __NR_swapoff = 115 # Variable c_int
2782 RSBAC_NET_MAX_ADDRESS_LEN = 128 # Variable c_int
2783 RC_type_no_execute = 4294967292L # Variable c_uint
2784 JAIL_allow_dev_write = 1024 # Variable c_int
2785 ENOTUNIQ = 76 # Variable c_int
2786 __NR_readahead = 225 # Variable c_int
2787 RSBAC_NET_TEMP_LAN_ADDRESS = '192.168.0.0' # Variable STRING
2788 RSBAC_UM_FULLNAME_LEN = 30 # Variable c_int
2789 __NR_sysinfo = 116 # Variable c_int
2790 __NR_stat64 = 195 # Variable c_int
2791 RSBAC_PM_A_WRITE = 2 # Variable c_int
2792 __NR_unlink = 10 # Variable c_int
2793 RSBAC_PAX_DEF_FLAGS = 754974720 # Variable c_int
2794 ERESTART = 85 # Variable c_int
2795 __NR_getppid = 64 # Variable c_int
2796 __USE_LARGEFILE64 = 1 # Variable c_int
2797 RSBAC_ALL_USERS = 4294967292L # Variable c_uint
2798 __NR_ugetrlimit = 191 # Variable c_int
2799 RSBAC_ALL_REQUEST_VECTOR = 1125899906842623L # Variable c_ulonglong
2800 __NR_removexattr = 235 # Variable c_int
2801 RSBAC_ACL_MAX_MAXNUM = 1000000 # Variable c_int
2802 __NR_getgid = 47 # Variable c_int
2803 __NR_fremovexattr = 237 # Variable c_int
2804 RSBAC_MAC_NR_CATS = 64 # Variable c_int
2805 EUCLEAN = 117 # Variable c_int
2806 RSBAC_ACL_DEFAULT_NETOBJ_MASK = 504702105170975104L # Variable c_ulonglong
2807 ENOPROTOOPT = 92 # Variable c_int
2808 _SVID_SOURCE = 1 # Variable c_int
2809 __NR_setgid32 = 214 # Variable c_int
2810 RSBAC_UM_USER_LIST_VERSION = 1 # Variable c_int
2811 __NR_waitpid = 7 # Variable c_int
2812 __NR_readlinkat = 305 # Variable c_int
2813 CAP_SYS_RAWIO = 17 # Variable c_int
2814 __NR_uname = 122 # Variable c_int
2815 __NR_setfsgid = 139 # Variable c_int
2816 __SIZEOF_PTHREAD_BARRIER_T = 20 # Variable c_int
2817 __NR_poll = 168 # Variable c_int
2818 __NR_fsync = 118 # Variable c_int
2819 RSBAC_READ_WRITE_REQUEST_VECTOR = 2251721555016702L # Variable c_ulonglong
2820 __NR_io_destroy = 246 # Variable c_int
2821 __NR_sched_getscheduler = 157 # Variable c_int
2822 __NR_ioctl = 54 # Variable c_int
2823 RSBAC_PM_DEV_OBJECT_CLASS_ID = 60001 # Variable c_uint
2824 EHOSTDOWN = 112 # Variable c_int
2825 RSBAC_NETOBJ_REQUEST_VECTOR = 298946905479552L # Variable c_ulonglong
2826 __NR_ftruncate64 = 194 # Variable c_int
2827 _LARGEFILE_SOURCE = 1 # Variable c_int
2828 __NR_timer_gettime = 261 # Variable c_int
2829 __NR_fstat64 = 197 # Variable c_int
2830 EPIPE = 32 # Variable c_int
2831 __NR_sigpending = 73 # Variable c_int
2832 RSBAC_RC_KERNEL_P_TYPE = 999999 # Variable c_int
2833 SL_max = 252 # Variable c_int
2834 __NR_setitimer = 104 # Variable c_int
2835 __NR_tee = 315 # Variable c_int
2836 __NR_restart_syscall = 0 # Variable c_int
2837 __NR_timer_getoverrun = 262 # Variable c_int
2838 EINPROGRESS = 115 # Variable c_int
2839 __NR_exit = 1 # Variable c_int
2840 RSBAC_SEC_DEL_CHUNK_SIZE = 65536 # Variable c_int
2841 RSBAC_MAC_MAX_MAXNUM = 1000000 # Variable c_int
2842 EADDRINUSE = 98 # Variable c_int
2843 RSBAC_NO_USER = 4294967293L # Variable c_uint
2844 RSBAC_MAC_DEF_CAT_VECTOR = 1 # Variable c_ulonglong
2845 FF_no_delete_or_rename = 64 # Variable c_int
2846 __NR_unlinkat = 301 # Variable c_int
2847 __NR_fchown = 95 # Variable c_int
2848 RSBAC_RES_MAX = 10 # Variable c_int
2849 __NR_writev = 146 # Variable c_int
2850 RSBAC_RC_SPECIAL_RIGHT_BASE = 56 # Variable c_int
2851 RSBAC_ALL_GROUPS = 4294967292L # Variable c_uint
2852 __NR_mknod = 14 # Variable c_int
2853 __NR_time = 13 # Variable c_int
2854 RSBAC_ACL_SYSADM_RIGHTS_VECTOR = 0 # Variable c_int
2855 RSBAC_NETDEV_REQUEST_VECTOR = 137440169984L # Variable c_ulonglong
2856 __NR_vm86old = 113 # Variable c_int
2857 _ENDIAN_H = 1 # Variable c_int
2858 __NR_openat = 295 # Variable c_int
2859 __NR_getresgid32 = 211 # Variable c_int
2860 ELIBACC = 79 # Variable c_int
2861 __NR_epoll_create = 254 # Variable c_int
2862 __NR_rename = 38 # Variable c_int
2863 __USE_FORTIFY_LEVEL = 0 # Variable c_int
2864 __NR_idle = 112 # Variable c_int
2865 __NR_sendfile = 187 # Variable c_int
2866 __NR_rt_sigaction = 174 # Variable c_int
2867 EDQUOT = 122 # Variable c_int
2868 ENOENT = 2 # Variable c_int
2869 __NR_socketcall = 102 # Variable c_int
2870 __NR_mount = 21 # Variable c_int
2871 RSBAC_UM_USER_PWHISTORY_LIST_KEY = 8854687 # Variable c_int
2872 __NR_profil = 98 # Variable c_int
2873 __USE_XOPEN_EXTENDED = 1 # Variable c_int
2874 __NR_get_mempolicy = 275 # Variable c_int
2875 __USE_POSIX = 1 # Variable c_int
2876 __NR_inotify_rm_watch = 293 # Variable c_int
2877 ECOMM = 70 # Variable c_int
2878 __NR_flock = 143 # Variable c_int
2879 RSBAC_VERSION = '1.3.0' # Variable STRING
2880 __NR_getpgrp = 65 # Variable c_int
2881 EXFULL = 54 # Variable c_int
2882 __NR_sched_setscheduler = 156 # Variable c_int
2883 RSBAC_ACL_GEN_RIGHTS_VECTOR = 0 # Variable c_int
2884 ENOTDIR = 20 # Variable c_int
2885 __NR_sigreturn = 119 # Variable c_int
2886 RSBAC_AUTH_LOGIN_PATH = '/bin/login' # Variable STRING
2887 RSBAC_PM_A_APPEND = 16 # Variable c_int
2888 __NR_getgroups = 80 # Variable c_int
2889 __NR_mmap2 = 192 # Variable c_int
2890 RSBAC_UM_OLD_USER_PWHISTORY_LIST_NAME = 'um_pwh.' # Variable STRING
2891 __NR_flistxattr = 234 # Variable c_int
2892 __NR_oldfstat = 28 # Variable c_int
2893 __NR_get_thread_area = 244 # Variable c_int
2894 CAP_CHOWN = 0 # Variable c_int
2895 __NR_mq_timedsend = 279 # Variable c_int
2896 __NR_sched_get_priority_max = 159 # Variable c_int
2897 __NR_mprotect = 125 # Variable c_int
2898 __WORDSIZE = 32 # Variable c_int
2899 RSBAC_RC_AUDITOR_ROLE = 3 # Variable c_int
2900 __NR_setgroups = 81 # Variable c_int
2901 EAFNOSUPPORT = 97 # Variable c_int
2902 RSBAC_MAC_MAX_CAT_VECTOR = 18446744073709551615L # Variable c_ulonglong
2903 __NR_setuid32 = 213 # Variable c_int
2904 CAP_LEASE = 28 # Variable c_int
2905 CAP_FSETID = 4 # Variable c_int
2906 RSBAC_USER_REQUEST_VECTOR = 1125917138721560L # Variable c_ulonglong
2907 ENOPKG = 65 # Variable c_int
2908 __NR_ftime = 35 # Variable c_int
2909 PF_PAX_RANDEXEC = 268435456 # Variable c_int
2910 _XOPEN_SOURCE = 600 # Variable c_int
2911 RSBAC_UM_MAX_MAXNUM = 1000000 # Variable c_int
2912 __NR__newselect = 142 # Variable c_int
2913 RSBAC_ACL_USER_RIGHTS_VECTOR = 1125917138721560L # Variable c_ulonglong
2914 __NR_inotify_add_watch = 292 # Variable c_int
2915 __GLIBC__ = 2 # Variable c_int
2916 __USE_ISOC99 = 1 # Variable c_int
2917 EINVAL = 22 # Variable c_int
2918 JAIL_allow_dev_get_status = 128 # Variable c_int
2919 EMEDIUMTYPE = 124 # Variable c_int
2920 __NR_sendfile64 = 239 # Variable c_int
2921 EBFONT = 59 # Variable c_int
2922 DAZ_infected = 1 # Variable c_int
2923 RC_role_min_special = 4294967291L # Variable c_uint
2924 CAP_AUDIT_WRITE = 29 # Variable c_int
2925 RSBAC_SCD_REQUEST_VECTOR = 17181153280L # Variable c_ulonglong
2926 RSBAC_OLD_NO_USER = 65533 # Variable c_int
2927 ENOKEY = 126 # Variable c_int
2928 __NR_getpid = 20 # Variable c_int
2929 __NR_setpgid = 57 # Variable c_int
2930 _XLOCALE_H = 1 # Variable c_int
2931 ENODEV = 19 # Variable c_int
2932 __NR_sched_setparam = 154 # Variable c_int
2933 __NR_fdatasync = 148 # Variable c_int
2934 RSBAC_ACL_DEFAULT_FD_MASK = 505265033714728885L # Variable c_ulonglong
2935 EPROTONOSUPPORT = 93 # Variable c_int
2936 __NR_chroot = 61 # Variable c_int
2937 _POSIX_C_SOURCE = 200112 # Variable c_long
2938 __NR_sgetmask = 68 # Variable c_int
2939 RSBAC_MAX_MOD = 12 # Variable c_int
2940 RSBAC_RC_SYS_TYPE = 2 # Variable c_int
2941 RC_type_min_special = 4294967289L # Variable c_uint
2942 ETIME = 62 # Variable c_int
2943 __NR__llseek = 140 # Variable c_int
2944 __NR_oldlstat = 84 # Variable c_int
2945 ENETRESET = 102 # Variable c_int
2946 __NR_rt_sigreturn = 173 # Variable c_int
2947 __error_t_defined = 1 # Variable c_int
2948 __NR_llistxattr = 233 # Variable c_int
2949 TRUE = 1 # Variable c_int
2950 __time_t_defined = 1 # Variable c_int
2951 RSBAC_RC_OLD_SPECIAL_RIGHT_BASE = 48 # Variable c_int
2952 SL_inherit = 254 # Variable c_int
2953 __NR_waitid = 284 # Variable c_int
2954 EISCONN = 106 # Variable c_int
2955 __USE_POSIX2 = 1 # Variable c_int
2956 ELIBEXEC = 83 # Variable c_int
2957 MAC_read_up = 16 # Variable c_int
2958 EMLINK = 31 # Variable c_int
2959 __NR_execve = 11 # Variable c_int
2960 __NR_creat = 8 # Variable c_int
2961 __NR_sched_getparam = 155 # Variable c_int
2962 __NR_mlock = 150 # Variable c_int
2963 RSBAC_MAC_MAX_CAT = 63 # Variable c_int
2964 __NR_pause = 29 # Variable c_int
2965 FF_no_search = 1024 # Variable c_int
2966 ECANCELED = 125 # Variable c_int
2967 RSBAC_MAC_INHERIT_CAT_VECTOR = 0 # Variable c_ulonglong
2968 __NR_setregid32 = 204 # Variable c_int
2969 RC_type_inherit_process = 4294967295L # Variable c_uint
2970 RSBAC_NET_TEMP_NAMELEN = 16 # Variable c_int
2971 __USE_ATFILE = 1 # Variable c_int
2972 RC_type_use_fd = 4294967289L # Variable c_uint
2973 PF_PAX_EMUTRAMP = 33554432 # Variable c_int
2974 __NR_lstat = 107 # Variable c_int
2975 __NR_lchown = 16 # Variable c_int
2976 RSBAC_READ_REQUEST_VECTOR = 1125901018863776L # Variable c_ulonglong
2977 FF_append_only = 256 # Variable c_int
2978 RSBAC_NET_TEMP_LNET_ADDRESS = '127.0.0.0' # Variable STRING
2979 __NR_migrate_pages = 294 # Variable c_int
2980 __NR_fstat = 108 # Variable c_int
2981 CAP_SYS_TTY_CONFIG = 26 # Variable c_int
2982 AST_min = 32 # Variable c_int
2983 EIDRM = 43 # Variable c_int
2984 EADDRNOTAVAIL = 99 # Variable c_int
2985 RSBAC_PM_A_ALL = 31 # Variable c_int
2986 __NR_utime = 30 # Variable c_int
2987 __NR_mincore = 218 # Variable c_int
2988 __NR_mremap = 163 # Variable c_int
2989 RSBAC_RC_SEC_TYPE = 1 # Variable c_int
2990 RSBAC_MAC_U_FLAGS = 125 # Variable c_int
2991 CLOCK_THREAD_CPUTIME_ID = 3 # Variable c_int
2992 _POSIX_SOURCE = 1 # Variable c_int
2993 CAP_MKNOD = 27 # Variable c_int
2994 __NR_set_robust_list = 311 # Variable c_int
2995 __NR_setresgid = 170 # Variable c_int
2996 __NR_add_key = 286 # Variable c_int
2997 __NR_stat = 106 # Variable c_int
2998 EPROTOTYPE = 91 # Variable c_int
2999 ENOMEDIUM = 123 # Variable c_int
3000 __NR_ppoll = 309 # Variable c_int
3001 __NR_oldolduname = 59 # Variable c_int
3002 __GLIBC_MINOR__ = 4 # Variable c_int
3003 RSBAC_PM_IPC_OBJECT_CLASS_ID = 60000 # Variable c_uint
3004 RSBAC_MAC_DEF_P_FLAGS = 0 # Variable c_int
3005 RSBAC_AUTH_LOGIN_PATH_DIR = 'bin' # Variable STRING
3006 RC_type_no_chown = 4294967290L # Variable c_uint
3007 __NR_chdir = 12 # Variable c_int
3008 RSBAC_NWW_REQUEST_VECTOR = 263938625241246L # Variable c_ulonglong
3009 CLOCK_PROCESS_CPUTIME_ID = 2 # Variable c_int
3010 RSBAC_EPERM = 1001 # Variable c_int
3011 RSBAC_EREINIT = 1011 # Variable c_int
3012 RSBAC_UM_USER_PWHISTORY_LIST_NAME = 'um_pwh' # Variable STRING
3013 __NR_readv = 145 # Variable c_int
3014 RSBAC_CAP_DEFAULT_MAX = 4294967295L # Variable c_uint
3015 __NR_renameat = 302 # Variable c_int
3016 ELOOP = 40 # Variable c_int
3017 __NR_swapon = 87 # Variable c_int
3018 RSBAC_ENOTWRITABLE = 1022 # Variable c_int
3019 RSBAC_SYSADM_UID = 0 # Variable c_int
3020 __NR_personality = 136 # Variable c_int
3021 EREMOTE = 66 # Variable c_int
3022 __NR_sigprocmask = 126 # Variable c_int
3023 RSBAC_ENOMEM = 1024 # Variable c_int
3024 __NR_adjtimex = 124 # Variable c_int
3025 _SYS_TYPES_H = 1 # Variable c_int
3026 FF_search_only = 4 # Variable c_int
3027 __NR_clock_getres = 266 # Variable c_int
3028 RSBAC_NETTEMP_REQUEST_VECTOR = 17181475584L # Variable c_ulonglong
3029 JAIL_allow_inet_raw = 8 # Variable c_int
3030 FF_read_only = 1 # Variable c_int
3031 __NR_mkdirat = 296 # Variable c_int
3032 RSBAC_NONE_REQUEST_VECTOR = 69668540417L # Variable c_ulonglong
3033 __NR_getxattr = 229 # Variable c_int
3034 __USE_GNU = 1 # Variable c_int
3035 __NR_unshare = 310 # Variable c_int
3036 __NR_io_cancel = 249 # Variable c_int
3037 RSBAC_RC_GENERAL_TYPE = 0 # Variable c_int
3038 __NR_setfsuid = 138 # Variable c_int
3039 __NR_gettid = 224 # Variable c_int
3040 __NR_write = 4 # Variable c_int
3041 CAP_FOWNER = 3 # Variable c_int
3042 ELIBMAX = 82 # Variable c_int
3043 __NR_uselib = 86 # Variable c_int
3044 __NR_ipc = 117 # Variable c_int
3045 __NR_fchdir = 133 # Variable c_int
3046 EMULTIHOP = 72 # Variable c_int
3047 __NR_access = 33 # Variable c_int
3048 __NR_lseek = 19 # Variable c_int
3049 __NR_keyctl = 288 # Variable c_int
3050 RSBAC_PM_A_CREATE = 8 # Variable c_int
3051 RSBAC_EINVALIDVERSION = 1026 # Variable c_int
3052 __USE_SVID = 1 # Variable c_int
3053 RSBAC_UM_HOMEDIR_LEN = 50 # Variable c_int
3054 __NR_madvise = 219 # Variable c_int
3055 __NR_fcntl = 55 # Variable c_int
3056 __USE_ANSI = 1 # Variable c_int
3057 __NR_utimes = 271 # Variable c_int
3058 RSBAC_ADF_REQUEST_ARRAY_VERSION = 2 # Variable c_int
3059 CAP_NET_BIND_SERVICE = 10 # Variable c_int
3060 __NR_epoll_ctl = 255 # Variable c_int
3061 CAP_SYS_TIME = 25 # Variable c_int
3062 EDOTDOT = 73 # Variable c_int
3063 __NR_sigaltstack = 186 # Variable c_int
3064 __NR_fork = 2 # Variable c_int
3065 __NR_setfsgid32 = 216 # Variable c_int
3066 ECONNABORTED = 103 # Variable c_int
3067 EISNAM = 120 # Variable c_int
3068 RSBAC_IFNAMSIZ = 16 # Variable c_int
3069 RSBAC_EINVALIDMODULE = 1027 # Variable c_int
3070 __NR_pread64 = 180 # Variable c_int
3071 RSBAC_NET_NR_PORTS = 10 # Variable c_int
3072 RSBAC_LIST_TTL_KEEP = 4294967295L # Variable c_uint
3073 __NR_pipe = 42 # Variable c_int
3074 __SIZEOF_PTHREAD_RWLOCK_T = 32 # Variable c_int
3075 __NR_vmsplice = 316 # Variable c_int
3076 __STDC_ISO_10646__ = 200009 # Variable c_long
3077 __NR_reboot = 88 # Variable c_int
3078 JAIL_allow_dev_read = 512 # Variable c_int
3079 ELNRNG = 48 # Variable c_int
3080 __NR_capget = 184 # Variable c_int
3081 FALSE = 0 # Variable c_int
3082 RSBAC_RC_NAME_LEN = 16 # Variable c_int
3083 RSBAC_RES_UNSET = 0 # Variable c_int
3084 __NR_kexec_load = 283 # Variable c_int
3085 __NR_getegid32 = 202 # Variable c_int
3086 __USE_LARGEFILE = 1 # Variable c_int
3087 __NR_setuid = 23 # Variable c_int
3088 __NR_fstatfs64 = 269 # Variable c_int
3089 RSBAC_UM_GROUP_LIST_VERSION = 1 # Variable c_int
3090 _FEATURES_H = 1 # Variable c_int
3091 __NR_syslog = 103 # Variable c_int
3092 RC_role_inherit_process = 4294967294L # Variable c_uint
3093 __NR_sched_rr_get_interval = 161 # Variable c_int
3094 __NR_getgroups32 = 205 # Variable c_int
3095 NR_syscalls = 317 # Variable c_int
3096 __NR_mq_notify = 281 # Variable c_int
3097 RSBAC_SECOFF_UID = 400 # Variable c_int
3098 CAP_IPC_OWNER = 15 # Variable c_int
3099 _BITS_TYPES_H = 1 # Variable c_int
3100 __NR_setpriority = 97 # Variable c_int
3101 EILSEQ = 84 # Variable c_int
3102 __NR_brk = 45 # Variable c_int
3103 __NR_getcwd = 183 # Variable c_int
3104 __NR_setdomainname = 121 # Variable c_int
3105 EPFNOSUPPORT = 96 # Variable c_int
3106 EFAULT = 14 # Variable c_int
3107 ENONET = 64 # Variable c_int
3108 __NR_link = 9 # Variable c_int
3109 ECHRNG = 44 # Variable c_int
3110 __NR_init_module = 128 # Variable c_int
3111 RSBAC_ACL_GROUP_EVERYONE = 0 # Variable c_int
3112 _XOPEN_SOURCE_EXTENDED = 1 # Variable c_int
3113 __NR_set_tid_address = 258 # Variable c_int
3114 __NR_capset = 185 # Variable c_int
3115 __USE_POSIX199309 = 1 # Variable c_int
3116 CLOCKS_PER_SEC = 1000000 # Variable c_long
3117 RSBAC_NET_TEMP_NAME = 'nettemp' # Variable STRING
3118 RSBAC_EINVALIDPOINTER = 1005 # Variable c_int
3119 __NR_stty = 31 # Variable c_int
3120 __NR_io_getevents = 247 # Variable c_int
3121 __NR_setreuid32 = 203 # Variable c_int
3122 ESRCH = 3 # Variable c_int
3123 __NR_msync = 144 # Variable c_int
3124 __NR_sysfs = 135 # Variable c_int
3125 __USE_XOPEN = 1 # Variable c_int
3126 __NR_getdents = 141 # Variable c_int
3127 RSBAC_AUTH_LOGIN_PATH_FILE = 'login' # Variable STRING
3128 __NR_fgetxattr = 231 # Variable c_int
3129 EKEYREVOKED = 128 # Variable c_int
3130 __NR_open = 5 # Variable c_int
3131 RSBAC_EMALWAREDETECTED = 1023 # Variable c_int
3132 __NR_rt_sigtimedwait = 177 # Variable c_int
3133 RSBAC_NET_TEMP_AUTO_ADDRESS = '0.0.0.0' # Variable STRING
3134 JAIL_allow_dev_mod_system = 256 # Variable c_int
3135 ECONNRESET = 104 # Variable c_int
3136 __NR_wait4 = 114 # Variable c_int
3137 __NR_setregid = 71 # Variable c_int
3138 SL_min = 0 # Variable c_int
3139 EHOSTUNREACH = 113 # Variable c_int
3140 RSBAC_ACL_ACMAN_RIGHTS_VECTOR = 504403158265495552L # Variable c_ulonglong
3141 CAP_SYS_BOOT = 22 # Variable c_int
3142 EL2NSYNC = 45 # Variable c_int
3143 ERANGE = 34 # Variable c_int
3144 __NR_madvise1 = 219 # Variable c_int
3145 _BSD_SOURCE = 1 # Variable c_int
3146 ENOMSG = 42 # Variable c_int
3147 RSBAC_ACL_DEFAULT_SCD_MASK = 504403175446648832L # Variable c_ulonglong
3148 ENOANO = 55 # Variable c_int
3149 __NR_sethostname = 74 # Variable c_int
3150 __NR_timer_delete = 263 # Variable c_int
3151 EISDIR = 21 # Variable c_int
3152 RSBAC_ACL_GROUP_VERSION = 2 # Variable c_int
3153 __NR_sigaction = 67 # Variable c_int
3154 __NR_sched_get_priority_min = 160 # Variable c_int
3155 __NR_afs_syscall = 137 # Variable c_int
3156 __NR_set_thread_area = 243 # Variable c_int
3157 RSBAC_ACL_DEFAULT_G_MASK = 504403175496293120L # Variable c_ulonglong
3158 __GNU_LIBRARY__ = 6 # Variable c_int
3159 _BITS_TYPESIZES_H = 1 # Variable c_int
3160 RSBAC_NWM_REQUEST_VECTOR = 263882807533592L # Variable c_ulonglong
3161 RSBAC_EEXPIRED = 1028 # Variable c_int
3162 __NR_munlockall = 153 # Variable c_int
3163 __NR_pselect6 = 308 # Variable c_int
3164 __NR_fstatat64 = 300 # Variable c_int
3165 __NR_mq_unlink = 278 # Variable c_int
3166 __NR_readlink = 85 # Variable c_int
3167 CAP_SETPCAP = 8 # Variable c_int
3168 __NR_ioprio_get = 290 # Variable c_int
3169 __NR_pivot_root = 217 # Variable c_int
3170 ESTRPIPE = 86 # Variable c_int
3171 ESHUTDOWN = 108 # Variable c_int
3172 __NR_fstatfs = 100 # Variable c_int
3173 __NR_stime = 25 # Variable c_int
3174 __NR_kill = 37 # Variable c_int
3175 RSBAC_UM_USER_PWHISTORY_LIST_VERSION = 1 # Variable c_int
3176 FF_secure_delete = 16 # Variable c_int
3177 __NR_readdir = 89 # Variable c_int
3178 __NR_rt_sigpending = 176 # Variable c_int
3179 RSBAC_UM_USER_LIST_KEY = 6363636 # Variable c_int
3180 EBADRQC = 56 # Variable c_int
3181 CAP_DAC_READ_SEARCH = 2 # Variable c_int
3182 __NR_geteuid32 = 201 # Variable c_int
3183 CAP_SYS_PACCT = 20 # Variable c_int
3184 RSBAC_NWR_REQUEST_VECTOR = 4195456 # Variable c_ulonglong
3185 EUNATCH = 49 # Variable c_int
3186 __NR_setsid = 66 # Variable c_int
3187 CAP_SYS_ADMIN = 21 # Variable c_int
3188 __GLIBC_HAVE_LONG_LONG = 1 # Variable c_int
3189 JAIL_allow_suid_files = 8192 # Variable c_int
3190 __NR_getpmsg = 188 # Variable c_int
3191 __NR_vhangup = 111 # Variable c_int
3192 JAIL_allow_all_net_family = 2 # Variable c_int
3193 __NR_statfs = 99 # Variable c_int
3194 RSBAC_EREADFAILED = 1003 # Variable c_int
3195 RSBAC_JAIL_DEF_ID = 0 # Variable c_int
3196 EBUSY = 16 # Variable c_int
3197 __NR_symlinkat = 304 # Variable c_int
3198 __NR_ulimit = 58 # Variable c_int
3199 __NR_modify_ldt = 123 # Variable c_int
3200 ENOTTY = 25 # Variable c_int
3201 EKEYEXPIRED = 127 # Variable c_int
3202 RSBAC_ACL_SPECIAL_RIGHT_BASE = 56 # Variable c_int
3203 RSBAC_RC_GENERAL_ROLE = 0 # Variable c_int
3204 __NR_gtty = 32 # Variable c_int
3205 __NR_delete_module = 129 # Variable c_int
3206 __NR_setresuid32 = 208 # Variable c_int
3207 MAC_program_auto = 256 # Variable c_int
3208 RSBAC_ACL_OLD_SPECIAL_RIGHT_BASE = 48 # Variable c_int
3209 FF_no_execute = 32 # Variable c_int
3210 __NR_get_kernel_syms = 130 # Variable c_int
3211 CAP_NET_ADMIN = 12 # Variable c_int
3212 RSBAC_NET_TEMP_LNET_ID = 100101 # Variable c_int
3213 RSBAC_PROCESS_REQUEST_VECTOR = 263886080217432L # Variable c_ulonglong
3214 __NR_rt_sigsuspend = 179 # Variable c_int
3215 ENOTNAM = 118 # Variable c_int
3216 __NR_signal = 48 # Variable c_int
3217 MAC_write_down = 32 # Variable c_int
3218 RSBAC_ACL_ALL_RIGHTS_VECTOR = 505529058172338175L # Variable c_ulonglong
3219 __SIZEOF_PTHREAD_COND_T = 48 # Variable c_int
3220 __NR_fchmodat = 306 # Variable c_int
3221 RSBAC_RC_ALL_RIGHTS_VECTOR = 9152440342723690495L # Variable c_ulonglong
3222 ENOTSOCK = 88 # Variable c_int
3223 __NR_getuid = 24 # Variable c_int
3224 RSBAC_NET_UNKNOWN = 0 # Variable c_int
3225 RC_role_max_value = 4294967264L # Variable c_uint
3226 FF_write_only = 8 # Variable c_int
3227 __NR_fcntl64 = 221 # Variable c_int
3228 RSBAC_ACL_DEFAULT_U_MASK = 505529075404217112L # Variable c_ulonglong
3229 __NR_clock_nanosleep = 267 # Variable c_int
3230 MAC_write_up = 8 # Variable c_int
3231 RC_type_inherit_parent = 4294967294L # Variable c_uint
3232 ECHILD = 10 # Variable c_int
3233 PF_PAX_RANDMMAP = 134217728 # Variable c_int
3234 __NR_io_setup = 245 # Variable c_int
3235 MAC_prop_trusted = 128 # Variable c_int
3236 RSBAC_EDECISIONMISMATCH = 1025 # Variable c_int
3237 __USE_XOPEN2K = 1 # Variable c_int
3238 RSBAC_UM_SHELL_LEN = 24 # Variable c_int
3239 __NR_chown32 = 212 # Variable c_int
3240 __NR_lremovexattr = 236 # Variable c_int
3241 RSBAC_PM_A_READ = 1 # Variable c_int
3242 ETIMEDOUT = 110 # Variable c_int
3243 __timespec_defined = 1 # Variable c_int
3244 RSBAC_AUDITOR_UID = 404 # Variable c_int
3245 RSBAC_ENOTINITIALIZED = 1010 # Variable c_int
3246 __NR__sysctl = 149 # Variable c_int
3247 __NR_getegid = 50 # Variable c_int
3248 __NR_timer_create = 259 # Variable c_int
3249 EALREADY = 114 # Variable c_int
3250 CAP_NET_RAW = 13 # Variable c_int
3251 __SIZEOF_PTHREAD_BARRIERATTR_T = 4 # Variable c_int
3252 __NR_rt_sigprocmask = 175 # Variable c_int
3253 EMFILE = 24 # Variable c_int
3254 __NR_getgid32 = 200 # Variable c_int
3255 RSBAC_ACL_SPECIAL_RIGHTS_VECTOR = 504403158265495552L # Variable c_ulonglong
3256 ENOTEMPTY = 39 # Variable c_int
3257 RSBAC_ACL_DEFAULT_NETTEMP_MASK = 504403175446971136L # Variable c_ulonglong
3258 __NR_io_submit = 248 # Variable c_int
3259 EDOM = 33 # Variable c_int
3260 RSBAC_OLD_ALL_USERS = 65532 # Variable c_int
3261 CAP_FS_MASK = 31 # Variable c_int
3262 RSBAC_NET_NR_INET_ADDR = 25 # Variable c_int
3263 ENFILE = 23 # Variable c_int
3264 EREMCHG = 78 # Variable c_int
3265 __NR_inotify_init = 291 # Variable c_int
3266 __USE_MISC = 1 # Variable c_int
3267 __NR_faccessat = 307 # Variable c_int
3268 __BIT_TYPES_DEFINED__ = 1 # Variable c_int
3269 __NR_splice = 313 # Variable c_int
3270 CAP_SYS_MODULE = 16 # Variable c_int
3271 RSBAC_MAC_P_FLAGS = 447 # Variable c_int
3272 ENOMEM = 12 # Variable c_int
3273 ENOSR = 63 # Variable c_int
3274 EOWNERDEAD = 130 # Variable c_int
3275 ELIBSCN = 81 # Variable c_int
3276 RSBAC_EWRITEFAILED = 1004 # Variable c_int
3277 RSBAC_UM_GROUP_LIST_KEY = 9847298 # Variable c_int
3278 __NR_lgetxattr = 230 # Variable c_int
3279 RSBAC_ACL_DEFAULT_DEV_MASK = 504686892411754629L # Variable c_ulonglong
3280 JAIL_allow_external_ipc = 1 # Variable c_int
3281 EBADSLT = 57 # Variable c_int
3282 CAP_LINUX_IMMUTABLE = 9 # Variable c_int
3283 RSBAC_AUTH_OWNER_F_CAP = 4294967293L # Variable c_uint
3284 RSBAC_WRITE_REQUEST_VECTOR = 1108365786833758L # Variable c_ulonglong
3285 RSBAC_PM_A_DELETE = 4 # Variable c_int
3286 __NR_close = 6 # Variable c_int
3287 _SYS_SYSMACROS_H = 1 # Variable c_int
3288 TIMER_ABSTIME = 1 # Variable c_int
3289 RSBAC_EINVALIDTRANSACTION = 1031 # Variable c_int
3290 JAIL_allow_parent_ipc = 4096 # Variable c_int
3291 __NR_fadvise64_64 = 272 # Variable c_int
3292 __NR_lock = 53 # Variable c_int
3293 __NR_fsetxattr = 228 # Variable c_int
3294 __NR_rt_sigqueueinfo = 178 # Variable c_int
3295 JAIL_auto_adjust_inet_any = 16 # Variable c_int
3296 __NR_chmod = 15 # Variable c_int
3297 __NR_geteuid = 49 # Variable c_int
3298 __USE_POSIX199506 = 1 # Variable c_int
3299 __NR_fchownat = 298 # Variable c_int
3300 __NR_lookup_dcookie = 253 # Variable c_int
3301 RSBAC_MAC_GENERAL_CATEGORY = 0 # Variable c_int
3302 __NR_linkat = 303 # Variable c_int
3303 RSBAC_RC_SYSTEM_ADMIN_ROLE = 2 # Variable c_int
3304 EACCES = 13 # Variable c_int
3305 RSBAC_EMAX = 1032 # Variable c_int
3306 RSBAC_MAC_DEF_U_FLAGS = 0 # Variable c_int
3307 __NR_getsid = 147 # Variable c_int
3308 RSBAC_LIST_TA_MAX_PASSLEN = 36 # Variable c_int
3309 RSBAC_EEXISTS = 1019 # Variable c_int
3310 __NR_fadvise64 = 250 # Variable c_int
3311 EIO = 5 # Variable c_int
3312 RSBAC_NET_TEMP_KEY = 135639038 # Variable c_int
3313 __SIZEOF_PTHREAD_COND_COMPAT_T = 12 # Variable c_int
3314 __NR_sched_getaffinity = 242 # Variable c_int
3315 FF_execute_only = 2 # Variable c_int
3316 RC_type_use_new_role_def_create = 4294967291L # Variable c_uint
3317 _SYS_CDEFS_H = 1 # Variable c_int
3318 CAP_DAC_OVERRIDE = 1 # Variable c_int
3319 __NR_setxattr = 226 # Variable c_int
3320 __SIZEOF_PTHREAD_ATTR_T = 36 # Variable c_int
3321 ENOCSI = 50 # Variable c_int
3322 __NR_statfs64 = 268 # Variable c_int
3323 __NR_futex = 240 # Variable c_int
3324 __NR_tgkill = 270 # Variable c_int
3325 __NR_lchown32 = 198 # Variable c_int
3326 RSBAC_ACL_GROUP_NAMELEN = 16 # Variable c_int
3327 RSBAC_EINVALIDATTR = 1015 # Variable c_int
3328 RSBAC_DEV_REQUEST_VECTOR = 283734146259077L # Variable c_ulonglong
3329 ENODATA = 61 # Variable c_int
3330 __NR_gettimeofday = 78 # Variable c_int
3331 RSBAC_RC_SPECIAL_RIGHTS_VECTOR = 9151314442816847872L # Variable c_ulonglong
3332 _BITS_TIME_H = 1 # Variable c_int
3333 CAP_SYS_NICE = 23 # Variable c_int
3334 RSBAC_UM_OLD_GROUP_LIST_NAME = 'um_g.' # Variable STRING
3335 __NR_iopl = 110 # Variable c_int
3336 ENOSTR = 60 # Variable c_int
3337 __NR_set_mempolicy = 276 # Variable c_int
3338 __NR_symlink = 83 # Variable c_int
3339 CAP_SYS_RESOURCE = 24 # Variable c_int
3340 E2BIG = 7 # Variable c_int
3341 __NR_clone = 120 # Variable c_int
3342 _TIME_H = 1 # Variable c_int
3343 CAP_IPC_LOCK = 14 # Variable c_int
3344 __NR_munmap = 91 # Variable c_int
3345 __NR_mkdir = 39 # Variable c_int
3346 ENXIO = 6 # Variable c_int
3347 __NR_futimesat = 299 # Variable c_int
3348 ESOCKTNOSUPPORT = 94 # Variable c_int
3349 __NR_query_module = 167 # Variable c_int
3350 EBADFD = 77 # Variable c_int
3351 __NR_nfsservctl = 169 # Variable c_int
3352 RSBAC_NET_ANY = 0 # Variable c_int
3353 _STRUCT_TIMEVAL = 1 # Variable c_int
3354 __NR_getuid32 = 199 # Variable c_int
3355 CAP_SETGID = 6 # Variable c_int
3356 RSBAC_NO_GROUP = 4294967293L # Variable c_uint
3357 __NR_munlock = 151 # Variable c_int
3358 ENOLCK = 37 # Variable c_int
3359 RSBAC_FD_REQUEST_VECTOR = 861875449233333L # Variable c_ulonglong
3360 PF_PAX_MPROTECT = 67108864 # Variable c_int
3361 __NR_mlockall = 152 # Variable c_int
3362 RSBAC_NWF_REQUEST_VECTOR = 34085024 # Variable c_ulonglong
3363 RSBAC_VERSION_MINOR = 0 # Variable c_int
3364 __STDC_IEC_559__ = 1 # Variable c_int
3365 __NR_umount2 = 52 # Variable c_int
3366 _BITS_PTHREADTYPES_H = 1 # Variable c_int
3367 __FDSET_LONGS = 32 # Variable c_uint
3368 EEXIST = 17 # Variable c_int
3369 __NR_ssetmask = 69 # Variable c_int
3370 __NR_nice = 34 # Variable c_int
3371 __NR_umount = 22 # Variable c_int
3372 __NR_oldstat = 18 # Variable c_int
3373 EPROTO = 71 # Variable c_int
3374 __NR_ftruncate = 93 # Variable c_int
3375 _SYS_SELECT_H = 1 # Variable c_int
3376 __NR_ustat = 62 # Variable c_int
3377 __NR_lstat64 = 196 # Variable c_int
3378 ESRMNT = 69 # Variable c_int
3379 __NR_exit_group = 252 # Variable c_int
3380 PF_PAX_PAGEEXEC = 16777216 # Variable c_int
3381 RSBAC_TPMAN_UID = 402 # Variable c_int
3382 RSBAC_PM_A_WRITE_TO_FILE = 18 # Variable c_int
3383 RSBAC_READ_WRITE_OPEN_REQUEST_VECTOR = 2097152 # Variable c_ulonglong
3384 __NR_dup = 41 # Variable c_int
3385 RSBAC_AUTH_DAC_GROUP_F_CAP = 4294967292L # Variable c_uint
3386 __NR_sched_yield = 158 # Variable c_int
3387 __NR_ioprio_set = 289 # Variable c_int
3388 RSBAC_PM_ROOT_TASK_SET_ID = 4294967295L # Variable c_uint
3389 RSBAC_AUTH_DAC_OWNER_F_CAP = 4294967292L # Variable c_uint
3390 RSBAC_NWC_REQUEST_VECTOR = 384 # Variable c_ulonglong
3391 __NR_clock_gettime = 265 # Variable c_int
3392 RSBAC_VERSION_MID = 3 # Variable c_int
3393 __NR_setresgid32 = 210 # Variable c_int
3394 RSBAC_NET_TEMP_LAN_ID = 100102 # Variable c_int
3395 __NR_break = 17 # Variable c_int
3396 __clock_t_defined = 1 # Variable c_int
3397 __NR_putpmsg = 189 # Variable c_int
3398 ENOSPC = 28 # Variable c_int
3399 __NR_getpriority = 96 # Variable c_int
3400 EBADMSG = 74 # Variable c_int
3401 RSBAC_UM_OLD_USER_LIST_NAME = 'um_u.' # Variable STRING
3402 ELIBBAD = 80 # Variable c_int
3403 JAIL_allow_tty_open = 2048 # Variable c_int
3404 ESTALE = 116 # Variable c_int
3405 RSBAC_EINVALIDDEV = 1016 # Variable c_int
3406 RSBAC_EXECUTE_REQUEST_VECTOR = 68719477760L # Variable c_ulonglong
3407 __NR_setrlimit = 75 # Variable c_int
3408 RSBAC_RC_ROLE_ADMIN_ROLE = 1 # Variable c_int
3409 RSBAC_EINVALIDVALUE = 1018 # Variable c_int
3410 CLOCK_MONOTONIC = 1 # Variable c_int
3411 __NR_getresuid = 165 # Variable c_int
3412 RSBAC_ECOULDNOTADDDEVICE = 1012 # Variable c_int
3413 __NR_rmdir = 40 # Variable c_int
3414 __NR_tkill = 238 # Variable c_int
3415 ENOTRECOVERABLE = 131 # Variable c_int
3416 ENOBUFS = 105 # Variable c_int
3417 EDESTADDRREQ = 89 # Variable c_int
3418 __NR_chown = 182 # Variable c_int
3419 __NR_setfsuid32 = 215 # Variable c_int
3420 EINTR = 4 # Variable c_int
3421 EADV = 68 # Variable c_int
3422 __NR_quotactl = 131 # Variable c_int
3423 __NR_remap_file_pages = 257 # Variable c_int
3424 RSBAC_EINVALIDREQUEST = 1021 # Variable c_int
3425 ENOSYS = 38 # Variable c_int
3426 DAZ_clean = 2 # Variable c_int
3427 RSBAC_ECOULDNOTADDITEM = 1013 # Variable c_int
3428 RSBAC_SECURITY_REQUEST_VECTOR = 806387712 # Variable c_ulonglong
3429 __USE_BSD = 1 # Variable c_int
3430 RSBAC_SYSTEM_REQUEST_VECTOR = 8733982721L # Variable c_ulonglong
3431 EUSERS = 87 # Variable c_int
3432 __NR_getrlimit = 76 # Variable c_int
3433 CLOCK_REALTIME = 0 # Variable c_int
3434 __NR_sched_setaffinity = 241 # Variable c_int
3435 CAP_SETUID = 7 # Variable c_int
3436 _SIGSET_H_types = 1 # Variable c_int
3437 RSBAC_VERSION_NR = 66304 # Variable c_int
3438 RSBAC_NET_MAX_PORT = 65535 # Variable c_int
3439 __NR_get_robust_list = 312 # Variable c_int
3440 RSBAC_NET_TEMP_OLD_VERSION = 1 # Variable c_int
3441 RSBAC_NET_TEMP_ALL_ID = 4294967295L # Variable c_uint
3442 RSBAC_MAC_F_FLAGS = 62 # Variable c_int
3443 _ERRNO_H = 1 # Variable c_int
3444 __SIZEOF_PTHREAD_MUTEX_T = 24 # Variable c_int
3445 __USE_UNIX98 = 1 # Variable c_int
3446 RSBAC_BIN_UID = 1 # Variable c_int
3447 __NR_timer_settime = 260 # Variable c_int
3448 RSBAC_RC_PROCESS_RIGHTS_VECTOR = 272132417425752L # Variable c_ulonglong
3449 SL_none = 255 # Variable c_int
3450 __NR_nanosleep = 162 # Variable c_int
3451 __NR_pwrite64 = 181 # Variable c_int
3452 __NR_umask = 60 # Variable c_int
3453 EPERM = 1 # Variable c_int
3454 RSBAC_RES_NONE = 11 # Variable c_int
3455 __NR_sigsuspend = 72 # Variable c_int
3456 RSBAC_JAIL_VERSION = 1 # Variable c_int
3457 EKEYREJECTED = 129 # Variable c_int
3458 __NR_acct = 51 # Variable c_int
3459 __NR_select = 82 # Variable c_int
3460 RSBAC_UM_GROUP_LIST_NAME = 'um_grp' # Variable STRING
3461 ENOTCONN = 107 # Variable c_int
3462 __NR_times = 43 # Variable c_int
3463 ENETUNREACH = 101 # Variable c_int
3464 RSBAC_ENOROOTDIR = 1006 # Variable c_int
3465 _ISOC99_SOURCE = 1 # Variable c_int
3466 RSBAC_MAC_MIN_CAT_VECTOR = 0 # Variable c_ulonglong
3467 JAIL_allow_mount = 16384 # Variable c_int
3468 RSBAC_EMUSTCHANGE = 1029 # Variable c_int
3469 __STDC_IEC_559_COMPLEX__ = 1 # Variable c_int
3470 ESPIPE = 29 # Variable c_int
3471 RSBAC_EBUSY = 1030 # Variable c_int
3472 __NR_dup2 = 63 # Variable c_int
3473 __NR_mq_getsetattr = 282 # Variable c_int
3474 RSBAC_FF_ROOT_DEF = 0 # Variable c_int
3475 __NR_request_key = 287 # Variable c_int
3476 RSBAC_NET_TEMP_VERSION = 2 # Variable c_int
3477 EMSGSIZE = 90 # Variable c_int
3478 __NR_bdflush = 134 # Variable c_int
3479 __NR_vm86 = 166 # Variable c_int
3480 CAP_SYS_CHROOT = 18 # Variable c_int
3481 __NR_read = 3 # Variable c_int
3482 RSBAC_UM_NR_GROUP_LISTS = 8 # Variable c_int
3483 EROFS = 30 # Variable c_int
3484 RSBAC_IPC_REQUEST_VECTOR = 298809472818074L # Variable c_ulonglong
3485 ECONNREFUSED = 111 # Variable c_int
3486 __NR_mmap = 90 # Variable c_int
3487 RSBAC_ACL_ROLE_EVERYROLE = 64 # Variable c_int
3488 __NR_alarm = 27 # Variable c_int
3489 RSBAC_RC_BOOT_ROLE = 999999 # Variable c_int
3490 __NR_getresuid32 = 209 # Variable c_int
3491 EOVERFLOW = 75 # Variable c_int
3492 ENETDOWN = 100 # Variable c_int
3493 ENOEXEC = 8 # Variable c_int
3494 RC_type_no_create = 4294967293L # Variable c_uint
3495 __NR_mq_timedreceive = 280 # Variable c_int
3496 EBADF = 9 # Variable c_int
3497 EBADE = 52 # Variable c_int
3498 RSBAC_EINVALIDTARGET = 1017 # Variable c_int
3499 RSBAC_NWE_REQUEST_VECTOR = 512 # Variable c_ulonglong
3500 RSBAC_AUTH_MAX_MAXNUM = 1000000 # Variable c_int
3501 RC_type_max_value = 4294967264L # Variable c_uint
3502 RSBAC_PM_A_WRITING = 30 # Variable c_int
3503 JAIL_allow_inet_localhost = 32 # Variable c_int
3504 RSBAC_UM_NAME_LEN = 16 # Variable c_int
3505 __NR_truncate64 = 193 # Variable c_int
3506 FF_no_mount = 512 # Variable c_int
3507 __SIZEOF_PTHREAD_RWLOCKATTR_T = 8 # Variable c_int
3508 EBADR = 53 # Variable c_int
3509 __NR_getrusage = 77 # Variable c_int
3510 EXDEV = 18 # Variable c_int
3511 _LARGEFILE64_SOURCE = 1 # Variable c_int
3512 __NR_ioperm = 101 # Variable c_int
3513 ENAVAIL = 119 # Variable c_int
3514 __NR_mknodat = 297 # Variable c_int
3515 RSBAC_AUTH_OLD_OWNER_F_CAP = 65533 # Variable c_ushort
3516 __NR_listxattr = 232 # Variable c_int
3517 RSBAC_EPATHTOOLONG = 1007 # Variable c_int
3518 __NR_getitimer = 105 # Variable c_int
3519 _SIGSET_NWORDS = 32 # Variable c_uint
3520 RSBAC_UM_NR_USER_LISTS = 8 # Variable c_int
3521 __NR_mbind = 274 # Variable c_int
3522 CAP_SYS_PTRACE = 19 # Variable c_int
3523 __NR_fchown32 = 207 # Variable c_int
3524 CAP_KILL = 5 # Variable c_int
3525 __NR_setreuid = 70 # Variable c_int
3526 DAZ_max = 2 # Variable c_int
3527 RSBAC_MAXNAMELEN = 256 # Variable c_int
3528 ENOTBLK = 15 # Variable c_int
3529 RSBAC_UM_NR_USER_PWHISTORY_LISTS = 8 # Variable c_int
3530 __NR_ptrace = 26 # Variable c_int
3531 __NR_setgroups32 = 206 # Variable c_int
3532 RSBAC_NET_TEMP_AUTO_ID = 100105 # Variable c_int
3533 __NR_fchmod = 94 # Variable c_int
3534 __NR_getpgid = 132 # Variable c_int
3535 EL2HLT = 51 # Variable c_int
3536 RSBAC_EINTERNONLY = 1020 # Variable c_int
3537 __NR_setgid = 46 # Variable c_int
3538 __kernel_ino_t = c_ulong
3539 __kernel_mode_t = c_ushort
3540 __kernel_nlink_t = c_ushort
3541 __kernel_off_t = c_long
3542 __kernel_pid_t = c_int
3543 __kernel_ipc_pid_t = c_ushort
3544 __kernel_uid_t = c_ushort
3545 __kernel_gid_t = c_ushort
3546 __kernel_size_t = c_uint
3547 __kernel_ssize_t = c_int
3548 __kernel_ptrdiff_t = c_int
3549 __kernel_time_t = c_long
3550 __kernel_suseconds_t = c_long
3551 __kernel_clock_t = c_long
3552 __kernel_timer_t = c_int
3553 __kernel_clockid_t = c_int
3554 __kernel_daddr_t = c_int
3555 __kernel_caddr_t = STRING
3556 __kernel_uid16_t = c_ushort
3557 __kernel_gid16_t = c_ushort
3558 __kernel_uid32_t = c_uint
3559 __kernel_gid32_t = c_uint
3560 __kernel_old_uid_t = c_ushort
3561 __kernel_old_gid_t = c_ushort
3562 __kernel_old_dev_t = c_ushort
3563 __kernel_loff_t = c_longlong
3564 class __kernel_fsid_t(Structure):
3565     pass
3566 __kernel_fsid_t._fields_ = [
3567     ('__val', c_int * 2),
3568 ]
3569 assert sizeof(__kernel_fsid_t) == 8, sizeof(__kernel_fsid_t)
3570 assert alignment(__kernel_fsid_t) == 4, alignment(__kernel_fsid_t)
3571 umode_t = c_ushort
3572 __s8 = c_byte
3573 __s16 = c_short
3574 __s64 = c_longlong
3575 pthread_t = c_ulong
3576 class pthread_attr_t(Union):
3577     pass
3578 pthread_attr_t._fields_ = [
3579     ('__size', c_char * 36),
3580     ('__align', c_long),
3581 ]
3582 assert sizeof(pthread_attr_t) == 36, sizeof(pthread_attr_t)
3583 assert alignment(pthread_attr_t) == 4, alignment(pthread_attr_t)
3584 class __pthread_internal_slist(Structure):
3585     pass
3586 __pthread_internal_slist._fields_ = [
3587     ('__next', POINTER(__pthread_internal_slist)),
3588 ]
3589 assert sizeof(__pthread_internal_slist) == 4, sizeof(__pthread_internal_slist)
3590 assert alignment(__pthread_internal_slist) == 4, alignment(__pthread_internal_slist)
3591 __pthread_slist_t = __pthread_internal_slist
3592 class __pthread_mutex_s(Structure):
3593     pass
3594 class N15pthread_mutex_t17__pthread_mutex_s3DOT_5E(Union):
3595     pass
3596 N15pthread_mutex_t17__pthread_mutex_s3DOT_5E._fields_ = [
3597     ('__spins', c_int),
3598     ('__list', __pthread_slist_t),
3599 ]
3600 assert sizeof(N15pthread_mutex_t17__pthread_mutex_s3DOT_5E) == 4, sizeof(N15pthread_mutex_t17__pthread_mutex_s3DOT_5E)
3601 assert alignment(N15pthread_mutex_t17__pthread_mutex_s3DOT_5E) == 4, alignment(N15pthread_mutex_t17__pthread_mutex_s3DOT_5E)
3602 __pthread_mutex_s._anonymous_ = ['_0']
3603 __pthread_mutex_s._fields_ = [
3604     ('__lock', c_int),
3605     ('__count', c_uint),
3606     ('__owner', c_int),
3607     ('__kind', c_int),
3608     ('__nusers', c_uint),
3609     ('_0', N15pthread_mutex_t17__pthread_mutex_s3DOT_5E),
3610 ]
3611 assert sizeof(__pthread_mutex_s) == 24, sizeof(__pthread_mutex_s)
3612 assert alignment(__pthread_mutex_s) == 4, alignment(__pthread_mutex_s)
3613 class pthread_mutex_t(Union):
3614     pass
3615 pthread_mutex_t._fields_ = [
3616     ('__data', __pthread_mutex_s),
3617     ('__size', c_char * 24),
3618     ('__align', c_long),
3619 ]
3620 assert sizeof(pthread_mutex_t) == 24, sizeof(pthread_mutex_t)
3621 assert alignment(pthread_mutex_t) == 4, alignment(pthread_mutex_t)
3622 class pthread_mutexattr_t(Union):
3623     pass
3624 pthread_mutexattr_t._fields_ = [
3625     ('__size', c_char * 4),
3626     ('__align', c_long),
3627 ]
3628 assert sizeof(pthread_mutexattr_t) == 4, sizeof(pthread_mutexattr_t)
3629 assert alignment(pthread_mutexattr_t) == 4, alignment(pthread_mutexattr_t)
3630 class N14pthread_cond_t3DOT_8E(Structure):
3631     pass
3632 N14pthread_cond_t3DOT_8E._pack_ = 4
3633 N14pthread_cond_t3DOT_8E._fields_ = [
3634     ('__lock', c_int),
3635     ('__futex', c_uint),
3636     ('__total_seq', c_ulonglong),
3637     ('__wakeup_seq', c_ulonglong),
3638     ('__woken_seq', c_ulonglong),
3639     ('__mutex', c_void_p),
3640     ('__nwaiters', c_uint),
3641     ('__broadcast_seq', c_uint),
3642 ]
3643 assert sizeof(N14pthread_cond_t3DOT_8E) == 44, sizeof(N14pthread_cond_t3DOT_8E)
3644 assert alignment(N14pthread_cond_t3DOT_8E) == 4, alignment(N14pthread_cond_t3DOT_8E)
3645 class pthread_cond_t(Union):
3646     pass
3647 pthread_cond_t._pack_ = 4
3648 pthread_cond_t._fields_ = [
3649     ('__data', N14pthread_cond_t3DOT_8E),
3650     ('__size', c_char * 48),
3651     ('__align', c_longlong),
3652 ]
3653 assert sizeof(pthread_cond_t) == 48, sizeof(pthread_cond_t)
3654 assert alignment(pthread_cond_t) == 4, alignment(pthread_cond_t)
3655 class pthread_condattr_t(Union):
3656     pass
3657 pthread_condattr_t._fields_ = [
3658     ('__size', c_char * 4),
3659     ('__align', c_long),
3660 ]
3661 assert sizeof(pthread_condattr_t) == 4, sizeof(pthread_condattr_t)
3662 assert alignment(pthread_condattr_t) == 4, alignment(pthread_condattr_t)
3663 pthread_key_t = c_uint
3664 pthread_once_t = c_int
3665 class N16pthread_rwlock_t4DOT_11E(Structure):
3666     pass
3667 N16pthread_rwlock_t4DOT_11E._fields_ = [
3668     ('__lock', c_int),
3669     ('__nr_readers', c_uint),
3670     ('__readers_wakeup', c_uint),
3671     ('__writer_wakeup', c_uint),
3672     ('__nr_readers_queued', c_uint),
3673     ('__nr_writers_queued', c_uint),
3674     ('__flags', c_uint),
3675     ('__writer', c_int),
3676 ]
3677 assert sizeof(N16pthread_rwlock_t4DOT_11E) == 32, sizeof(N16pthread_rwlock_t4DOT_11E)
3678 assert alignment(N16pthread_rwlock_t4DOT_11E) == 4, alignment(N16pthread_rwlock_t4DOT_11E)
3679 class pthread_rwlock_t(Union):
3680     pass
3681 pthread_rwlock_t._fields_ = [
3682     ('__data', N16pthread_rwlock_t4DOT_11E),
3683     ('__size', c_char * 32),
3684     ('__align', c_long),
3685 ]
3686 assert sizeof(pthread_rwlock_t) == 32, sizeof(pthread_rwlock_t)
3687 assert alignment(pthread_rwlock_t) == 4, alignment(pthread_rwlock_t)
3688 class pthread_rwlockattr_t(Union):
3689     pass
3690 pthread_rwlockattr_t._fields_ = [
3691     ('__size', c_char * 8),
3692     ('__align', c_long),
3693 ]
3694 assert sizeof(pthread_rwlockattr_t) == 8, sizeof(pthread_rwlockattr_t)
3695 assert alignment(pthread_rwlockattr_t) == 4, alignment(pthread_rwlockattr_t)
3696 pthread_spinlock_t = c_int
3697 class pthread_barrier_t(Union):
3698     pass
3699 pthread_barrier_t._fields_ = [
3700     ('__size', c_char * 20),
3701     ('__align', c_long),
3702 ]
3703 assert sizeof(pthread_barrier_t) == 20, sizeof(pthread_barrier_t)
3704 assert alignment(pthread_barrier_t) == 4, alignment(pthread_barrier_t)
3705 class pthread_barrierattr_t(Union):
3706     pass
3707 pthread_barrierattr_t._fields_ = [
3708     ('__size', c_char * 4),
3709     ('__align', c_int),
3710 ]
3711 assert sizeof(pthread_barrierattr_t) == 4, sizeof(pthread_barrierattr_t)
3712 assert alignment(pthread_barrierattr_t) == 4, alignment(pthread_barrierattr_t)
3713 __sig_atomic_t = c_int
3714 class __sigset_t(Structure):
3715     pass
3716 __sigset_t._fields_ = [
3717     ('__val', c_ulong * 32),
3718 ]
3719 assert sizeof(__sigset_t) == 128, sizeof(__sigset_t)
3720 assert alignment(__sigset_t) == 4, alignment(__sigset_t)
3721 class timeval(Structure):
3722     pass
3723 __time_t = c_long
3724 __suseconds_t = c_long
3725 timeval._fields_ = [
3726     ('tv_sec', __time_t),
3727     ('tv_usec', __suseconds_t),
3728 ]
3729 assert sizeof(timeval) == 8, sizeof(timeval)
3730 assert alignment(timeval) == 4, alignment(timeval)
3731 __int8_t = c_byte
3732 __uint8_t = c_ubyte
3733 __int16_t = c_short
3734 __uint16_t = c_ushort
3735 __int32_t = c_int
3736 __uint32_t = c_uint
3737 __int64_t = c_longlong
3738 __uint64_t = c_ulonglong
3739 __dev_t = __u_quad_t
3740 __uid_t = c_uint
3741 __gid_t = c_uint
3742 __ino_t = c_ulong
3743 __ino64_t = __u_quad_t
3744 __mode_t = c_uint
3745 __nlink_t = c_uint
3746 __off_t = c_long
3747 __off64_t = __quad_t
3748 __pid_t = c_int
3749 class __fsid_t(Structure):
3750     pass
3751 __fsid_t._fields_ = [
3752     ('__val', c_int * 2),
3753 ]
3754 assert sizeof(__fsid_t) == 8, sizeof(__fsid_t)
3755 assert alignment(__fsid_t) == 4, alignment(__fsid_t)
3756 __clock_t = c_long
3757 __rlim_t = c_ulong
3758 __rlim64_t = __u_quad_t
3759 __id_t = c_uint
3760 __useconds_t = c_uint
3761 __daddr_t = c_int
3762 __swblk_t = c_long
3763 __key_t = c_int
3764 __clockid_t = c_int
3765 __timer_t = c_void_p
3766 __blksize_t = c_long
3767 __blkcnt_t = c_long
3768 __blkcnt64_t = __quad_t
3769 __fsblkcnt_t = c_ulong
3770 __fsblkcnt64_t = __u_quad_t
3771 __fsfilcnt_t = c_ulong
3772 __fsfilcnt64_t = __u_quad_t
3773 __ssize_t = c_int
3774 __loff_t = __off64_t
3775 __qaddr_t = POINTER(__quad_t)
3776 __caddr_t = STRING
3777 __intptr_t = c_int
3778 __socklen_t = c_uint
3779 error_t = c_int
3780 class __user_cap_header_struct(Structure):
3781     pass
3782 __user_cap_header_struct._fields_ = [
3783     ('version', __u32),
3784     ('pid', c_int),
3785 ]
3786 assert sizeof(__user_cap_header_struct) == 8, sizeof(__user_cap_header_struct)
3787 assert alignment(__user_cap_header_struct) == 4, alignment(__user_cap_header_struct)
3788 cap_user_header_t = POINTER(__user_cap_header_struct)
3789 class __user_cap_data_struct(Structure):
3790     pass
3791 __user_cap_data_struct._fields_ = [
3792     ('effective', __u32),
3793     ('permitted', __u32),
3794     ('inheritable', __u32),
3795 ]
3796 assert sizeof(__user_cap_data_struct) == 12, sizeof(__user_cap_data_struct)
3797 assert alignment(__user_cap_data_struct) == 4, alignment(__user_cap_data_struct)
3798 cap_user_data_t = POINTER(__user_cap_data_struct)
3799 class __kernel_fd_set(Structure):
3800     pass
3801 __kernel_fd_set._fields_ = [
3802     ('fds_bits', c_ulong * 32),
3803 ]
3804 assert sizeof(__kernel_fd_set) == 128, sizeof(__kernel_fd_set)
3805 assert alignment(__kernel_fd_set) == 4, alignment(__kernel_fd_set)
3806 __kernel_sighandler_t = CFUNCTYPE(None, c_int)
3807 __kernel_key_t = c_int
3808 __kernel_mqd_t = c_int
3809 __le16 = __u16
3810 __be16 = __u16
3811 __le32 = __u32
3812 __be32 = __u32
3813 __le64 = __u64
3814 __be64 = __u64
3815 sigset_t = __sigset_t
3816 __fd_mask = c_long
3817 class fd_set(Structure):
3818     pass
3819 fd_set._fields_ = [
3820     ('fds_bits', __fd_mask * 32),
3821 ]
3822 assert sizeof(fd_set) == 128, sizeof(fd_set)
3823 assert alignment(fd_set) == 4, alignment(fd_set)
3824 fd_mask = __fd_mask
3825 quad_t = __quad_t
3826 u_quad_t = __u_quad_t
3827 fsid_t = __fsid_t
3828 loff_t = __loff_t
3829 ino_t = __ino_t
3830 ino64_t = __ino64_t
3831 dev_t = __dev_t
3832 gid_t = __gid_t
3833 mode_t = __mode_t
3834 nlink_t = __nlink_t
3835 uid_t = __uid_t
3836 off_t = __off_t
3837 off64_t = __off64_t
3838 pid_t = __pid_t
3839 id_t = __id_t
3840 ssize_t = __ssize_t
3841 daddr_t = __daddr_t
3842 caddr_t = __caddr_t
3843 key_t = __key_t
3844 useconds_t = __useconds_t
3845 suseconds_t = __suseconds_t
3846 ulong = c_ulong
3847 ushort = c_ushort
3848 uint = c_uint
3849 int8_t = c_byte
3850 int16_t = c_short
3851 int32_t = c_int
3852 int64_t = c_longlong
3853 u_int8_t = c_ubyte
3854 u_int16_t = c_ushort
3855 u_int32_t = c_uint
3856 u_int64_t = c_ulonglong
3857 register_t = c_int
3858 blksize_t = __blksize_t
3859 blkcnt_t = __blkcnt_t
3860 fsblkcnt_t = __fsblkcnt_t
3861 fsfilcnt_t = __fsfilcnt_t
3862 blkcnt64_t = __blkcnt64_t
3863 fsblkcnt64_t = __fsblkcnt64_t
3864 fsfilcnt64_t = __fsfilcnt64_t
3865 clock_t = __clock_t
3866 time_t = __time_t
3867 clockid_t = __clockid_t
3868 timer_t = __timer_t
3869 class timespec(Structure):
3870     pass
3871 timespec._fields_ = [
3872     ('tv_sec', __time_t),
3873     ('tv_nsec', c_long),
3874 ]
3875 assert sizeof(timespec) == 8, sizeof(timespec)
3876 assert alignment(timespec) == 4, alignment(timespec)
3877 class tm(Structure):
3878     pass
3879 tm._fields_ = [
3880     ('tm_sec', c_int),
3881     ('tm_min', c_int),
3882     ('tm_hour', c_int),
3883     ('tm_mday', c_int),
3884     ('tm_mon', c_int),
3885     ('tm_year', c_int),
3886     ('tm_wday', c_int),
3887     ('tm_yday', c_int),
3888     ('tm_isdst', c_int),
3889     ('tm_gmtoff', c_long),
3890     ('tm_zone', STRING),
3891 ]
3892 assert sizeof(tm) == 44, sizeof(tm)
3893 assert alignment(tm) == 4, alignment(tm)
3894 class itimerspec(Structure):
3895     pass
3896 itimerspec._fields_ = [
3897     ('it_interval', timespec),
3898     ('it_value', timespec),
3899 ]
3900 assert sizeof(itimerspec) == 16, sizeof(itimerspec)
3901 assert alignment(itimerspec) == 4, alignment(itimerspec)
3902 class sigevent(Structure):
3903     pass
3904 sigevent._fields_ = [
3905 ]
3906 class __locale_struct(Structure):
3907     pass
3908 class locale_data(Structure):
3909     pass
3910 __locale_struct._fields_ = [
3911     ('__locales', POINTER(locale_data) * 13),
3912     ('__ctype_b', POINTER(c_ushort)),
3913     ('__ctype_tolower', POINTER(c_int)),
3914     ('__ctype_toupper', POINTER(c_int)),
3915     ('__names', STRING * 13),
3916 ]
3917 assert sizeof(__locale_struct) == 116, sizeof(__locale_struct)
3918 assert alignment(__locale_struct) == 4, alignment(__locale_struct)
3919 locale_data._fields_ = [
3920 ]
3921 __locale_t = POINTER(__locale_struct)
3922 size_t = c_uint
3923 __all__ = ['rsbac_rc_special_rights_t', 'ACLC_remove_user',
3924            'rsbac_acl_remove_group_arg_t', 'RSBAC_EWEAKPASSWORD',
3925            '__OFF64_T_TYPE', '__off64_t', 'ETXTBSY',
3926            'RSBAC_RC_DEFAULT_RIGHTS_VECTOR', 'rsbac_request_vector_t',
3927            'EL3HLT', 'RSBAC_PAX_ALL_FLAGS', 'RSBAC_TPMAN_UID',
3928            'ACLC_remove_from_acl_entry', 'A_max_read_categories',
3929            'EFBIG', 'RSBAC_EACCESS', '__NR_epoll_wait', '__NR_sync',
3930            'ENOLINK', 'rsbac_mac_file_flags_t', 'RSYS_um_remove_user',
3931            '__NFDBITS', 'RI_type_nettemp_name', 'AMS_last_auth_only',
3932            'RSBAC_AUTH_MAX_RANGE_UID', 'umode_t', 'rsbac_log_array_t',
3933            'RSBAC_GROUP_REQUEST_VECTOR', 'A_log_user_based',
3934            '__NR_rt_sigtimedwait', 'pthread_once_t', 'NTS_get_netdev',
3935            '__NR_setfsuid', 'I_mqueue', '__NR_swapoff',
3936            'RSBAC_NET_MAX_ADDRESS_LEN', 'cap_user_header_t',
3937            '__NR_readahead', '__NR_stat64', '__NR_getcwd',
3938            'u_int32_t', 'RSBAC_ALL_USERS', 'RSBAC_EMALWAREDETECTED',
3939            '__NR_getgid', 'rsys_rc_change_role_t', '__NR_fsync',
3940            'rsys_init_t', 'RI_boot_role', 'RI_type_ipc_name',
3941            'RSYS_acl_list_all_group', 'A_local_log_array_low',
3942            'RI_def_ipc_create_type', 'rsbac_pm_task_id_t',
3943            'A_daz_role', '__NR_mq_timedsend', 'E2BIG', 'EHOSTDOWN',
3944            'SL_max', '__NR_setitimer',
3945            'rsbac_pm_tkt_function_param_t', '__NR_restart_syscall',
3946            'EBUSY', 'PTF_delete_authorized_tp',
3947            'rsbac_pm_delete_na_t', 'A_pm_role', 'RSBAC_NO_USER',
3948            '__NR_unlinkat', 'ENOSTR', 'SW_JAIL', 'RSYS_get_attr',
3949            'A_remote_mac_categories',
3950            'RSBAC_ACL_SYSADM_RIGHTS_VECTOR',
3951            'rsbac_pm_delete_responsible_user_t', 'PL_none',
3952            'CAP_IPC_OWNER', 'FF_read_only', 'RSYS_list_all_ipc',
3953            '__NR_get_kernel_syms', '__NR_linkat', 'EDQUOT',
3954            'SL_old_none', '__NR_sethostname', '__NR_sync_file_range',
3955            'ST_rlimit', '__kernel_loff_t', 'RSYS_um_get_gm_list',
3956            'rsbac_net_temp_inet_addr_t', 'UM_ttl', 'EXFULL', 'T_USER',
3957            'T_SCD', 'off_t', 'NTS_none', 'RI_none',
3958            'rsys_mac_set_curr_level_t', 'A_mac_prop_trusted',
3959            '__fsblkcnt_t', 'RSBAC_PM_A_APPEND', '__NR_flistxattr',
3960            '__NR_chroot', 'ACLGS_list_groups', 'R_READ', 'EIO',
3961            'RSBAC_MAC_MAX_CAT_VECTOR', 'rsbac_pm_set_object_class_t',
3962            'rsbac_pm_set_auth_may_set_cap_t', '_XOPEN_SOURCE',
3963            'rsys_get_switch_t', 'rsbac_rc_role_vector_t', '__s64',
3964            '__NR_inotify_add_watch', '__GLIBC__',
3965            'pthread_rwlockattr_t', '__NR_setfsgid32',
3966            'rsbac_acl_syscall_arg_t', 'DAZ_infected',
3967            'CAP_AUDIT_WRITE', 'D_block', 'PH_none', '_XLOCALE_H',
3968            'R_NONE', '__NR_sgetmask', '__kernel_pid_t',
3969            'RSYS_um_check_account', 'ST_kmem', 'A_res_min', 'ENOTTY',
3970            'pthread_mutexattr_t', 'ACT_fs', '__NR_signal', 'TRUE',
3971            '__NR_clock_nanosleep', 'RI_type_netobj_remove',
3972            'rsbac_rc_target_id_t', 'blkcnt_t', 'R_WRITE_OPEN',
3973            'RSBAC_MAC_MAX_CAT', 'rsbac_acl_syscall_type_t',
3974            'ECANCELED', 'RC_type_inherit_process', 'u_char',
3975            'ACLGS_add_member', 'PF_set_auth_may_set_cap', 'uid_t',
3976            'u_int64_t', 'u_int16_t', 'PF_PAX_EMUTRAMP', 'RSYS_stats',
3977            '__NR_lchown', 'rsbac_pm_switch_pm_t', 'NTS_copy_template',
3978            'ACLC_set_acl_entry', '__be64', 'A_fake_root_uid',
3979            '__NR_epoll_create', '__NR_utime',
3980            'RSBAC_RC_GEN_RIGHTS_VECTOR', 'sigevent',
3981            'ACLR_ACCESS_CONTROL', '__NR_mq_timedreceive', 'R_CONNECT',
3982            'AMS_none', 'rsbac_pm_process_type_t',
3983            'RSBAC_PM_IPC_OBJECT_CLASS_ID', '__INO64_T_TYPE',
3984            'RSBAC_AUTH_LOGIN_PATH_DIR', 'ACLC_none',
3985            'RSBAC_UM_USER_PWHISTORY_LIST_NAME', 'PTF_switch_auth',
3986            'R_TERMINATE', 'ELOOP', 'rsbac_dev_type_t', 'RSBAC_ENOMEM',
3987            'rsys_check_t', 'PTF_add_task', 'A_mac_user_flags',
3988            '__NR_clock_getres', 'ST_ksyms', '__NR_unshare',