1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
pub type key_serial_t = i32;
pub type key_perm_t = u32;
pub const KEY_POS_VIEW: i32 = 0x01000000;
pub const KEY_POS_READ: i32 = 0x02000000;
pub const KEY_POS_WRITE: i32 = 0x04000000;
pub const KEY_POS_SEARCH: i32 = 0x08000000;
pub const KEY_POS_LINK: i32 = 0x10000000;
pub const KEY_POS_SETATTR: i32 = 0x20000000;
pub const KEY_POS_ALL: i32 = 0x3f000000;
pub const KEY_USR_VIEW: i32 = 0x00010000;
pub const KEY_USR_READ: i32 = 0x00020000;
pub const KEY_USR_WRITE: i32 = 0x00040000;
pub const KEY_USR_SEARCH: i32 = 0x00080000;
pub const KEY_USR_LINK: i32 = 0x00100000;
pub const KEY_USR_SETATTR: i32 = 0x00200000;
pub const KEY_USR_ALL: i32 = 0x003f0000;
pub const KEY_GRP_VIEW: i32 = 0x00000100;
pub const KEY_GRP_READ: i32 = 0x00000200;
pub const KEY_GRP_WRITE: i32 = 0x00000400;
pub const KEY_GRP_SEARCH: i32 = 0x00000800;
pub const KEY_GRP_LINK: i32 = 0x00001000;
pub const KEY_GRP_SETATTR: i32 = 0x00002000;
pub const KEY_GRP_ALL: i32 = 0x00003f00;
pub const KEY_OTH_VIEW: i32 = 0x00000001;
pub const KEY_OTH_READ: i32 = 0x00000002;
pub const KEY_OTH_WRITE: i32 = 0x00000004;
pub const KEY_OTH_SEARCH: i32 = 0x00000008;
pub const KEY_OTH_LINK: i32 = 0x00000010;
pub const KEY_OTH_SETATTR: i32 = 0x00000020;
pub const KEY_OTH_ALL: i32 = 0x0000003f;
#[allow(overflowing_literals)]
pub const KEY_PERM_UNDEF: i32 = 0xffffffff;
pub const KEY_IS_UNINSTANTIATED: i32 = 0;
pub const KEY_IS_POSITIVE: i32 = 1;
pub const KEY_DEBUG_MAGIC: u32 = 0x18273645;
pub const KEY_FLAG_DEAD: i32 = 0;
pub const KEY_FLAG_REVOKED: i32 = 1;
pub const KEY_FLAG_IN_QUOTA: i32 = 2;
pub const KEY_FLAG_USER_CONSTRUCT: i32 = 3;
pub const KEY_FLAG_ROOT_CAN_CLEAR: i32 = 4;
pub const KEY_FLAG_INVALIDATED: i32 = 5;
pub const KEY_FLAG_BUILTIN: i32 = 6;
pub const KEY_FLAG_ROOT_CAN_INVAL: i32 = 7;
pub const KEY_FLAG_KEEP: i32 = 8;
pub const KEY_FLAG_UID_KEYRING: i32 = 9;
pub const KEY_ALLOC_IN_QUOTA: i32 = 0x0000;
pub const KEY_ALLOC_QUOTA_OVERRUN: i32 = 0x0001;
pub const KEY_ALLOC_NOT_IN_QUOTA: i32 = 0x0002;
pub const KEY_ALLOC_BUILT_IN: i32 = 0x0004;
pub const KEY_ALLOC_BYPASS_RESTRICTION: i32 = 0x0008;
pub const KEY_ALLOC_UID_KEYRING: i32 = 0x0010;
pub const KEY_NEED_VIEW: i32 = 0x01;
pub const KEY_NEED_READ: i32 = 0x02;
pub const KEY_NEED_WRITE: i32 = 0x04;
pub const KEY_NEED_SEARCH: i32 = 0x08;
pub const KEY_NEED_LINK: i32 = 0x10;
pub const KEY_NEED_SETATTR: i32 = 0x20;
pub const KEY_NEED_ALL: i32 = 0x3f;