security.h (1e42198609d73ed1a9adcba2af275c24c2678420) security.h (b0c636b99997c8594da6a46e166ce4fcf6956fda)
1/*
2 * Security server interface.
3 *
4 * Author : Stephen Smalley, <sds@epoch.ncsc.mil>
5 *
6 */
7
8#ifndef _SELINUX_SECURITY_H_

--- 34 unchanged lines hidden (view full) ---

43struct netlbl_lsm_secattr;
44
45extern int selinux_enabled;
46extern int selinux_mls_enabled;
47
48/* Policy capabilities */
49enum {
50 POLICYDB_CAPABILITY_NETPEER,
1/*
2 * Security server interface.
3 *
4 * Author : Stephen Smalley, <sds@epoch.ncsc.mil>
5 *
6 */
7
8#ifndef _SELINUX_SECURITY_H_

--- 34 unchanged lines hidden (view full) ---

43struct netlbl_lsm_secattr;
44
45extern int selinux_enabled;
46extern int selinux_mls_enabled;
47
48/* Policy capabilities */
49enum {
50 POLICYDB_CAPABILITY_NETPEER,
51 POLICYDB_CAPABILITY_OPENPERM,
51 __POLICYDB_CAPABILITY_MAX
52};
53#define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
54
55extern int selinux_policycap_netpeer;
52 __POLICYDB_CAPABILITY_MAX
53};
54#define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
55
56extern int selinux_policycap_netpeer;
57extern int selinux_policycap_openperm;
56
57int security_load_policy(void * data, size_t len);
58
59int security_policycap_supported(unsigned int req_cap);
60
61#define SEL_VEC_MAX 32
62struct av_decision {
63 u32 allowed;

--- 91 unchanged lines hidden ---
58
59int security_load_policy(void * data, size_t len);
60
61int security_policycap_supported(unsigned int req_cap);
62
63#define SEL_VEC_MAX 32
64struct av_decision {
65 u32 allowed;

--- 91 unchanged lines hidden ---