diff options
author | John Johansen <john.johansen@canonical.com> | 2017-12-12 15:28:05 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2018-02-09 11:30:02 -0800 |
commit | 73f488cd903938e78979d50e081a0314ad142351 (patch) | |
tree | e50e4e5198006f8c6d43a369a45f08dfd3b7a4ba /security/apparmor/include | |
parent | 8e51f9087f4024d20f70f4d9831e1f45d8088331 (diff) | |
download | linux-stable-73f488cd903938e78979d50e081a0314ad142351.tar.gz linux-stable-73f488cd903938e78979d50e081a0314ad142351.tar.bz2 linux-stable-73f488cd903938e78979d50e081a0314ad142351.zip |
apparmor: convert attaching profiles via xattrs to use dfa matching
This converts profile attachment based on xattrs to a fixed extended
conditional using dfa matching.
This has a couple of advantages
- pattern matching can be used for the xattr match
- xattrs can be optional for an attachment or marked as required
- the xattr attachment conditional will be able to be combined with
other extended conditionals when the flexible extended conditional
work lands.
The xattr fixed extended conditional is appended to the xmatch
conditional. If an xattr attachment is specified the profile xmatch
will be generated regardless of whether there is a pattern match on
the executable name.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Diffstat (limited to 'security/apparmor/include')
-rw-r--r-- | security/apparmor/include/policy.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h index 02bde92ebb5c..c93b9ed55490 100644 --- a/security/apparmor/include/policy.h +++ b/security/apparmor/include/policy.h @@ -151,8 +151,6 @@ struct aa_profile { int xattr_count; char **xattrs; - size_t *xattr_lens; - char **xattr_values; struct aa_rlimit rlimits; |