diff options
author | John Johansen <john.johansen@canonical.com> | 2022-07-16 03:33:43 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2022-10-03 14:49:03 -0700 |
commit | 90917d5b6866df79d892087ba51b46c983d2fcfe (patch) | |
tree | fe97819dd9858b6fc79a8ee06665082b5df845c4 /security/apparmor/include/lib.h | |
parent | caa9f579ca7255e9d6c25f072447d895c5928c97 (diff) | |
download | linux-90917d5b6866df79d892087ba51b46c983d2fcfe.tar.gz linux-90917d5b6866df79d892087ba51b46c983d2fcfe.tar.bz2 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/include/lib.h')
-rw-r--r-- | security/apparmor/include/lib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/apparmor/include/lib.h b/security/apparmor/include/lib.h index f176f3ced2a3..f1a29ab7ea1b 100644 --- a/security/apparmor/include/lib.h +++ b/security/apparmor/include/lib.h @@ -99,6 +99,12 @@ static inline bool path_mediated_fs(struct dentry *dentry) return !(dentry->d_sb->s_flags & SB_NOUSER); } +struct aa_str_table { + int size; + char **table; +}; + +void aa_free_str_table(struct aa_str_table *table); struct counted_str { struct kref count; |