Re: checkpolicy dontaudit compiler bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looks like it is being triggered by the dontaudit domain self:capability sys_module; rule in the marlin sepolicy/domain.te file. dontaudit rule merging differs since they are converted to auditdeny vectors. Likely a bug in checkpolicy but will have to look at the logic.


On Nov 11, 2016 1:12 PM, "Nick Kralevich" <nnk@xxxxxxxxxx> wrote:
On Fri, Nov 11, 2016 at 9:59 AM, Dominick Grift <dac.override@xxxxxxxxx> wrote:
>> Specifically, the following dontaudit rule is in that file:
>>
>>   dontaudit su self:capability_class_set *;
>>
>> which expands out to:
>>
>>   dontaudit su self:{ capability capability2 } *;
>>
>
> That should not work. AFAIK you cannot use the "*" with two different
> classes
>
> you would need to
>
> dontaudit su self:capability *;
> dontaudit su self:capability2 *;
>
> Maybe the other policy "bullhead" does not have the invalid
> dontaudit su self:capability_class_set *; rule

They both have the same "dontaudit su self:capability_class_set *"
statements, yet one compiles differently than the other.

nnk@nick:~$ wget -q http://kralevich.com/bullhead.policy.conf
nnk@nick:~$ wget -q http://kralevich.com/marlin.policy.conf
nnk@nick:~$ grep "dontaudit su" bullhead.policy.conf
marlin.policy.conf | grep capability
bullhead.policy.conf:  dontaudit su self:{ capability capability2 } *;
marlin.policy.conf:  dontaudit su self:{ capability capability2 } *;

And changing from

  dontaudit su self:{ capability capability2 } *;

to

  dontaudit su self:capability *;
  dontaudit su self:capability2 *;

has no effect and the policy continues to not pick up the neverallow rules.

-- Nick
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux