diff options
author | John Johansen <john.johansen@canonical.com> | 2022-07-16 12:33:43 +0200 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2022-10-03 23:49:03 +0200 |
commit | 90917d5b6866df79d892087ba51b46c983d2fcfe (patch) | |
tree | fe97819dd9858b6fc79a8ee06665082b5df845c4 /security/apparmor/domain.c | |
parent | apparmor: isolate policy backwards compatibility to its own file (diff) | |
download | linux-90917d5b6866df79d892087ba51b46c983d2fcfe.tar.xz linux-90917d5b6866df79d892087ba51b46c983d2fcfe.zip |
apparmor: extend permissions to support a label and tag string
add indexes for label and tag entries. Rename the domain table to the
str_table as its a shared string table with label and tags.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/domain.c')
-rw-r--r-- | security/apparmor/domain.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index 5883f0fc02d3..4cb046cf3a14 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -30,24 +30,6 @@ #include "include/policy_ns.h" /** - * aa_free_domain_entries - free entries in a domain table - * @domain: the domain table to free (MAYBE NULL) - */ -void aa_free_domain_entries(struct aa_domain *domain) -{ - int i; - if (domain) { - if (!domain->table) - return; - - for (i = 0; i < domain->size; i++) - kfree_sensitive(domain->table[i]); - kfree_sensitive(domain->table); - domain->table = NULL; - } -} - -/** * may_change_ptraced_domain - check if can change profile on ptraced task * @to_label: profile to change to (NOT NULL) * @info: message if there is an error |