| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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
26WS_DLL_PUBLIC void init_process_policies(void);
27
36WS_DLL_PUBLIC bool started_with_special_privs(void);
37
46WS_DLL_PUBLIC bool running_with_special_privs(void);
47
54WS_DLL_PUBLIC void relinquish_special_privs_perm(void);
55
64WS_DLL_PUBLIC char *get_cur_username(void);
65
74WS_DLL_PUBLIC char *get_cur_groupname(void);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80#endif /* __PRIVILEGES_H__ */
get_cur_username
WS_DLL_PUBLIC char * get_cur_username(void)
Retrieves the current username.
Definition privileges.c:245
relinquish_special_privs_perm
WS_DLL_PUBLIC void relinquish_special_privs_perm(void)
Permanently drops any special privileges.
Definition privileges.c:212
started_with_special_privs
WS_DLL_PUBLIC bool started_with_special_privs(void)
Checks whether the program was started with special privileges.
Definition privileges.c:150
get_cur_groupname
WS_DLL_PUBLIC char * get_cur_groupname(void)
Retrieves the current group name.
Definition privileges.c:262
running_with_special_privs
WS_DLL_PUBLIC bool running_with_special_privs(void)
Checks whether the program is currently running with special privileges.
Definition privileges.c:165
init_process_policies
WS_DLL_PUBLIC void init_process_policies(void)
Initializes process-level security policies.
Definition privileges.c:135