Wireshark  4.3.0
The Wireshark network protocol analyzer
privileges.h
Go to the documentation of this file.
1 
11 #ifndef __PRIVILEGES_H__
12 #define __PRIVILEGES_H__
13 
14 #include <wireshark.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
24 WS_DLL_PUBLIC void init_process_policies(void);
25 
32 WS_DLL_PUBLIC bool started_with_special_privs(void);
33 
40 WS_DLL_PUBLIC bool running_with_special_privs(void);
41 
46 WS_DLL_PUBLIC void relinquish_special_privs_perm(void);
47 
53 WS_DLL_PUBLIC char *get_cur_username(void);
54 
60 WS_DLL_PUBLIC char *get_cur_groupname(void);
61 
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65 
66 #endif /* __PRIVILEGES_H__ */
WS_DLL_PUBLIC void relinquish_special_privs_perm(void)
Definition: privileges.c:212
WS_DLL_PUBLIC char * get_cur_groupname(void)
Definition: privileges.c:262
WS_DLL_PUBLIC bool started_with_special_privs(void)
Definition: privileges.c:150
WS_DLL_PUBLIC char * get_cur_username(void)
Definition: privileges.c:245
WS_DLL_PUBLIC bool running_with_special_privs(void)
Definition: privileges.c:165
WS_DLL_PUBLIC void init_process_policies(void)
Definition: privileges.c:135