xref: /haiku/src/libs/compat/freebsd_network/compat/sys/priv.h (revision dba28784c21beab5d397068303881fe024a76859)
1 /*
2  * Copyright 2009, Colin Günther, coling@gmx.de.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef _FBSD_COMPAT_SYS_PRIV_H_
6 #define _FBSD_COMPAT_SYS_PRIV_H_
7 
8 
9 #include <sys/cdefs.h>
10 
11 
12 /*
13  * 802.11-related privileges.
14  */
15 #define	PRIV_NET80211_GETKEY	440	/* Query 802.11 keys. */
16 #define	PRIV_NET80211_MANAGE	441	/* Administer 802.11. */
17 
18 #define	PRIV_DRIVER		14	/* Low-level driver privilege. */
19 
20 
21 /*
22  * Privilege check interfaces, modeled after historic suser() interfacs, but
23  * with the addition of a specific privilege name.  No flags are currently
24  * defined for the API.  Historically, flags specified using the real uid
25  * instead of the effective uid, and whether or not the check should be
26  * allowed in jail.
27  */
28 struct thread;
29 
30 
31 __BEGIN_DECLS
32 
33 int	priv_check(struct thread*, int);
34 
35 __END_DECLS
36 
37 
38 #endif /* _FBSD_COMPAT_SYS_PRIV_H_ */
39