selinux: do not allocate hashtabs dynamically
[sfrench/cifs-2.6.git] / security / selinux / ss / policydb.h
index 35dc6aa7904d56f66efc24ec836da9f59c562d17..9591c9587cb699b20326cbe274d7367ed9b80ac7 100644 (file)
@@ -263,13 +263,13 @@ struct policydb {
        struct avtab te_avtab;
 
        /* role transitions */
-       struct hashtab *role_tr;
+       struct hashtab role_tr;
 
        /* file transitions with the last path component */
        /* quickly exclude lookups when parent ttype has no rules */
        struct ebitmap filename_trans_ttypes;
        /* actual set of filename_trans rules */
-       struct hashtab *filename_trans;
+       struct hashtab filename_trans;
        /* only used if policyvers < POLICYDB_VERSION_COMP_FTRANS */
        u32 compat_filename_trans_count;
 
@@ -294,7 +294,7 @@ struct policydb {
        struct genfs *genfs;
 
        /* range transitions table (range_trans_key -> mls_range) */
-       struct hashtab *range_tr;
+       struct hashtab range_tr;
 
        /* type -> attribute reverse mapping */
        struct ebitmap *type_attr_map_array;