Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

privileges.h
1 /* privileges.h
2 * Declarations of routines for handling privileges.
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 2006 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11 #ifndef __PRIVILEGES_H__
12 #define __PRIVILEGES_H__
13
14 #include "ws_symbol_export.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 gboolean started_with_special_privs(void);
33
40 WS_DLL_PUBLIC gboolean running_with_special_privs(void);
41
46 WS_DLL_PUBLIC void relinquish_special_privs_perm(void);
47
53 WS_DLL_PUBLIC gchar *get_cur_username(void);
54
60 WS_DLL_PUBLIC gchar *get_cur_groupname(void);
61
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65
66 #endif /* __PRIVILEGES_H__ */