diff options
Diffstat (limited to 'security/selinux/ss/policydb.c')
-rw-r--r-- | security/selinux/ss/policydb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index 5ecbad7d8b9f..539828b229b2 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c | |||
@@ -674,6 +674,8 @@ void policydb_destroy(struct policydb *p) | |||
674 | } | 674 | } |
675 | kfree(p->type_attr_map); | 675 | kfree(p->type_attr_map); |
676 | 676 | ||
677 | kfree(p->undefined_perms); | ||
678 | |||
677 | return; | 679 | return; |
678 | } | 680 | } |
679 | 681 | ||
@@ -1527,6 +1529,8 @@ int policydb_read(struct policydb *p, void *fp) | |||
1527 | goto bad; | 1529 | goto bad; |
1528 | } | 1530 | } |
1529 | } | 1531 | } |
1532 | p->reject_unknown = !!(le32_to_cpu(buf[1]) & REJECT_UNKNOWN); | ||
1533 | p->allow_unknown = !!(le32_to_cpu(buf[1]) & ALLOW_UNKNOWN); | ||
1530 | 1534 | ||
1531 | info = policydb_lookup_compat(p->policyvers); | 1535 | info = policydb_lookup_compat(p->policyvers); |
1532 | if (!info) { | 1536 | if (!info) { |