aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/include/avc_ss.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/include/avc_ss.h')
-rw-r--r--security/selinux/include/avc_ss.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/security/selinux/include/avc_ss.h b/security/selinux/include/avc_ss.h
index ff869e8b6f4..d5c328452df 100644
--- a/security/selinux/include/avc_ss.h
+++ b/security/selinux/include/avc_ss.h
@@ -10,29 +10,19 @@
int avc_ss_reset(u32 seqno);
-struct av_perm_to_string
-{
- u16 tclass;
- u32 value;
+/* Class/perm mapping support */
+struct security_class_mapping {
const char *name;
+ const char *perms[sizeof(u32) * 8 + 1];
};
-struct av_inherit
-{
- u16 tclass;
- const char **common_pts;
- u32 common_base;
-};
+extern struct security_class_mapping secclass_map[];
-struct selinux_class_perm
-{
- const struct av_perm_to_string *av_perm_to_string;
- u32 av_pts_len;
- const char **class_to_string;
- u32 cts_len;
- const struct av_inherit *av_inherit;
- u32 av_inherit_len;
-};
+/*
+ * The security server must be initialized before
+ * any labeling or access decisions can be provided.
+ */
+extern int ss_initialized;
#endif /* _SELINUX_AVC_SS_H_ */