@@ -99,6 +99,21 @@ s_no_extra_traits! {
99
99
pub ut_syslen: c_short,
100
100
pub ut_host: [ c_char; 257 ] ,
101
101
}
102
+
103
+ pub struct utmpx {
104
+ pub ut_user: [ :: c_char; _UTMP_USER_LEN] ,
105
+ pub ut_id: [ :: c_char; _UTMP_ID_LEN] ,
106
+ pub ut_line: [ :: c_char; _UTMP_LINE_LEN] ,
107
+ pub ut_pid: :: pid_t,
108
+ pub ut_type: :: c_short,
109
+ pub ut_exit: exit_status,
110
+ pub ut_tv: :: timeval,
111
+ pub ut_session: :: c_int,
112
+ pub pad: [ :: c_int; 5 ] ,
113
+ pub ut_syslen: :: c_short,
114
+ pub ut_host: [ :: c_char; 257 ] ,
115
+ }
116
+
102
117
}
103
118
104
119
cfg_if ! {
@@ -202,6 +217,28 @@ pub const PRIV_USER: c_uint = PRIV_DEBUG
202
217
| PRIV_TPD_KILLABLE
203
218
| PRIV_PROC_TPD_RESET ;
204
219
220
+ pub const _PC_LAST: :: c_int = 102 ;
221
+
222
+ pub const PRIV_PROC_SENSITIVE : :: c_uint = 0x0008 ;
223
+ pub const PRIV_PFEXEC_AUTH : :: c_uint = 0x0200 ;
224
+ pub const PRIV_PROC_TPD : :: c_uint = 0x0400 ;
225
+ pub const PRIV_TPD_UNSAFE : :: c_uint = 0x0800 ;
226
+ pub const PRIV_PROC_TPD_RESET : :: c_uint = 0x1000 ;
227
+ pub const PRIV_TPD_KILLABLE : :: c_uint = 0x2000 ;
228
+
229
+ pub const PRIV_USER : :: c_uint = PRIV_DEBUG
230
+ | PRIV_PROC_SENSITIVE
231
+ | NET_MAC_AWARE
232
+ | NET_MAC_AWARE_INHERIT
233
+ | PRIV_XPOLICY
234
+ | PRIV_AWARE_RESET
235
+ | PRIV_PFEXEC
236
+ | PRIV_PFEXEC_AUTH
237
+ | PRIV_PROC_TPD
238
+ | PRIV_TPD_UNSAFE
239
+ | PRIV_TPD_KILLABLE
240
+ | PRIV_PROC_TPD_RESET ;
241
+
205
242
extern "C" {
206
243
pub fn fexecve ( fd : c_int , argv : * const * mut c_char , envp : * const * mut c_char ) -> c_int ;
207
244
0 commit comments