summaryrefslogtreecommitdiff
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-11-17 17:42:42 -0800
committerJohn Johansen <john.johansen@canonical.com>2017-11-21 02:17:14 -0800
commit844b8292b6311ecd30ae63db1471edb26e01d895 (patch)
tree9c0993f64ff7eeaf3144a5063a4fb562c36c2f48 /crypto/cipher.c
parent4633307e5ed6128975595df43f796a10c41d11c1 (diff)
apparmor: ensure that undecidable profile attachments fail
Profiles that have an undecidable overlap in their attachments are being incorrectly handled. Instead of failing to attach the first one encountered is being used. eg. profile A /** { .. } profile B /*foo { .. } have an unresolvable longest left attachment, they both have an exact match on / and then have an overlapping expression that has no clear winner. Currently the winner will be the profile that is loaded first which can result in non-deterministic behavior. Instead in this situation the exec should fail. Fixes: 898127c34ec0 ("AppArmor: functions for domain transitions") Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions