diff --git a/kernel/selinux/sepolicy.c b/kernel/selinux/sepolicy.c index 46ed5df8..fe18d3ef 100644 --- a/kernel/selinux/sepolicy.c +++ b/kernel/selinux/sepolicy.c @@ -588,6 +588,7 @@ static bool add_type(struct policydb *db, const char *type_name, bool attr) type->primary = 1; type->value = value; + type->attribute = attr; char *key = kstrdup(type_name, GFP_ATOMIC); if (!key) {