2008-08-19 19:30:36 +00:00
|
|
|
#ifndef _SEPOL_POLICYDB_POLCAPS_H_
|
|
|
|
#define _SEPOL_POLICYDB_POLCAPS_H_
|
|
|
|
|
2016-11-29 15:57:48 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2014-12-16 19:44:41 +00:00
|
|
|
|
2008-08-19 19:30:36 +00:00
|
|
|
/* Policy capabilities */
|
|
|
|
enum {
|
|
|
|
POLICYDB_CAPABILITY_NETPEER,
|
|
|
|
POLICYDB_CAPABILITY_OPENPERM,
|
2016-12-01 16:08:06 +00:00
|
|
|
POLICYDB_CAPABILITY_EXTSOCKCLASS,
|
2012-06-06 17:27:10 +00:00
|
|
|
POLICYDB_CAPABILITY_ALWAYSNETWORK,
|
2008-08-19 19:30:36 +00:00
|
|
|
__POLICYDB_CAPABILITY_MAX
|
|
|
|
};
|
|
|
|
#define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
|
|
|
|
|
|
|
|
/* Convert a capability name to number. */
|
|
|
|
extern int sepol_polcap_getnum(const char *name);
|
|
|
|
|
|
|
|
/* Convert a capability number to name. */
|
|
|
|
extern const char *sepol_polcap_getname(int capnum);
|
|
|
|
|
2016-11-29 15:57:48 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2008-08-19 19:30:36 +00:00
|
|
|
#endif /* _SEPOL_POLICYDB_POLCAPS_H_ */
|