File tree 3 files changed +27
-0
lines changed
src/unix/bsd/freebsdlike/freebsd
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1802,6 +1802,7 @@ fn test_freebsd(target: &str) {
1802
1802
headers ! { cfg:
1803
1803
"aio.h" ,
1804
1804
"arpa/inet.h" ,
1805
+ "bsm/audit.h" ,
1805
1806
"ctype.h" ,
1806
1807
"dirent.h" ,
1807
1808
"dlfcn.h" ,
Original file line number Diff line number Diff line change @@ -1416,6 +1416,11 @@ arc4random_buf
1416
1416
arc4random_uniform
1417
1417
arphdr
1418
1418
atof
1419
+ au_asid_t
1420
+ au_id_t
1421
+ au_mask_t
1422
+ au_tid_t
1423
+ auditinfo_t
1419
1424
backtrace
1420
1425
backtrace_symbols
1421
1426
backtrace_symbols_fd
@@ -1754,6 +1759,7 @@ semop
1754
1759
sendfile
1755
1760
sendmmsg
1756
1761
sendmsg
1762
+ setaudit
1757
1763
setdomainname
1758
1764
setgrent
1759
1765
setgroups
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ pub type caddr_t = *mut ::c_char;
41
41
42
42
pub type fhandle_t = fhandle ;
43
43
44
+ pub type au_id_t = :: uid_t ;
45
+ pub type au_asid_t = :: pid_t ;
46
+
44
47
// It's an alias over "struct __kvm_t". However, its fields aren't supposed to be used directly,
45
48
// making the type definition system dependent. Better not bind it exactly.
46
49
pub type kvm_t = :: c_void ;
@@ -967,6 +970,22 @@ s! {
967
970
pub ifc_ifcu: __c_anonymous_ifc_ifcu,
968
971
}
969
972
973
+ pub struct au_mask_t {
974
+ pub am_success: :: c_uint,
975
+ pub am_failure: :: c_uint,
976
+ }
977
+
978
+ pub struct au_tid_t {
979
+ pub port: u32 ,
980
+ pub machine: u32 ,
981
+ }
982
+
983
+ pub struct auditinfo_t {
984
+ pub ai_auid: :: au_id_t,
985
+ pub ai_mask: :: au_mask_t,
986
+ pub ai_termid: au_tid_t,
987
+ pub ai_asid: :: au_asid_t,
988
+ }
970
989
}
971
990
972
991
s_no_extra_traits ! {
@@ -4182,6 +4201,7 @@ extern "C" {
4182
4201
flags : :: c_int ,
4183
4202
) -> :: c_int ;
4184
4203
pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
4204
+ pub fn setaudit ( auditinfo : * const auditinfo_t ) -> :: c_int ;
4185
4205
}
4186
4206
4187
4207
#[ link( name = "kvm" ) ]
You can’t perform that action at this time.
0 commit comments