Re: Allowing all access in SELinux without permissive mode.

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

 



On 01/06/2014 11:32 AM, William Roberts wrote:
> On Mon, Jan 6, 2014 at 4:08 AM, Kernel freak <kernelfreak@xxxxxxxxx> wrote:
>> Hello Friends,
>>                       I am currently working on SELinux and as a part of it,
>> I need to make some changes to it. Basically, I would like to allow all
>> access requests, but not by enabling permissive mode.
> 
> That's what permissive mode is. It logs all requests not granted and
> allows them to
> happen. Why would you need to modify the code?
> 
> If you need finer granularity, you can use the permissive attribute on domains
> so in global enforcing mode, domains declared with this will run in
> permissive mode.

Also, note that the default behavior of security_compute_av() is to
allow everything until you load a policy (until ss_initialized is set).

If you want to allow everything and collect avc messages, you want
permissive mode (either global permissive mode or per-domain permissive
mode).  That logic however is in the AVC (security/selinux/avc.c) not in
the security server (security/selinux/ss/*).

If you want to allow everything and not generate avc messages, you can
just not load a policy.  security_compute_av will already allow
everything by default until you load a policy, just by setting
avd->allowed to all-bits-set.


_______________________________________________
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