]> Pileus Git - ~andy/linux/blobdiff - security/selinux/ss/policydb.h
SELinux: add default_type statements
[~andy/linux] / security / selinux / ss / policydb.h
index b846c0387180942e2f50d31edc2982594f3dde2e..da637471d4ce4d08fdb0706136184a3a1dcf7e57 100644 (file)
@@ -60,6 +60,20 @@ struct class_datum {
        struct symtab permissions;      /* class-specific permission symbol table */
        struct constraint_node *constraints;    /* constraints on class permissions */
        struct constraint_node *validatetrans;  /* special transition rules */
+/* Options how a new object user, role, and type should be decided */
+#define DEFAULT_SOURCE         1
+#define DEFAULT_TARGET         2
+       char default_user;
+       char default_role;
+       char default_type;
+/* Options how a new object range should be decided */
+#define DEFAULT_SOURCE_LOW     1
+#define DEFAULT_SOURCE_HIGH    2
+#define DEFAULT_SOURCE_LOW_HIGH        3
+#define DEFAULT_TARGET_LOW     4
+#define DEFAULT_TARGET_HIGH    5
+#define DEFAULT_TARGET_LOW_HIGH        6
+       char default_range;
 };
 
 /* Role attributes */