[apparmor] Mount flag handling
John Johansen
john.johansen at canonical.com
Tue Feb 9 23:14:52 UTC 2016
On 02/09/2016 01:52 PM, Levi Blackstone wrote:
> In-Reply-To: <56005F92.8020601 at canonical.com>
>
>>> The problem occurs in the mnt_rule::gen_policy_re method in parser/mount.cc. When handling rules that specify options=(remount, bind), *two* rules are added to the policy: one to permit calls with MS_REMOUNT | MS_BIND and another that permits all calls to MS_BIND, with all other options masked out! The second rule is almost certainly unintentional. The quickest fixes would be to add a clause to make the if-statements mutually exclusive again, or to convert all of the ifs to a chain of if-elses, if the intention is, in fact, for only one of them to ever apply.
>>>
>> I need to look into this one more, I'll get back to you
>
>
> Was this issue ever resolved?
>
No, the issue is more involved than just adding an else statement as suggested and resources have been focused else where.
More information about the AppArmor
mailing list