]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/ss/policydb.h
SELinux: policy selectable handling of unknown classes and perms
[linux-2.6-omap-h63xx.git] / security / selinux / ss / policydb.h
index 8319d5ff5944bc0b0b99188af06dc0ad10ef784d..844d310f4f1b54a49fce96f2cf2aa9bf60281737 100644 (file)
@@ -242,6 +242,10 @@ struct policydb {
        struct ebitmap *type_attr_map;
 
        unsigned int policyvers;
+
+       unsigned int reject_unknown : 1;
+       unsigned int allow_unknown : 1;
+       u32 *undefined_perms;
 };
 
 extern void policydb_destroy(struct policydb *p);
@@ -253,6 +257,10 @@ extern int policydb_read(struct policydb *p, void *fp);
 
 #define POLICYDB_CONFIG_MLS    1
 
+/* the config flags related to unknown classes/perms are bits 2 and 3 */
+#define REJECT_UNKNOWN 0x00000002
+#define ALLOW_UNKNOWN  0x00000004
+
 #define OBJECT_R "object_r"
 #define OBJECT_R_VAL 1