mount rules grant excessive permissions
Bug #1597017 reported by
John Johansen
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
The rule
mount options=
ends up allowing
mount -t proc proc /mnt
which it shouldn't as it should be restricted to commands with a make-slave flag
CVE References
tags: | added: aa-parser |
To post a comment you must log in.
The parser is generating 2 match rules in the dfa off of the one text rule, they are the equivalent of (rw,make- slave) -> **,
mount options=
mount options=rw,
this is due to how the parser is trying to share rule generation for generic rules that don't specify a flag, and rules that specify them. When flags aren't specified multiple rule sets may need to be generated but only one matching the flags should when the flags are specified.