Re: How to test if SELinux is 'running'

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

 



Tom London wrote:
What is the 'approved' method for determining if SELinux is 'running',
that is, active, and in either enforcing or permissive mode?

If my feeble memory serves me, there used to be a 'isSELinux' or some
such, but I can't seem to find this anymore.

I'd like to modify some scripts to work both with and without SELinux
active, e.g., vmware.  It is currently testing against the contents of
/selinux/enforce, but that does not seem right....

Thanks,
   tom
selinuxenabled and getenforce should do the trick


--
John Dennis <jdennis@xxxxxxxxxx>

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux