Re: What is the best way to find out (in a script) whether SElinux is used?

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

 



On Fri, 19 Mar 2004 21:08, Aleksey Nogin <aleksey@xxxxxxxxx> wrote:
> I want to have a script that acts slightly differently depending on
> whether SELinux is being used or not. What is the best way to do it?
>
> My initial attempts to use "-e /etc/security/selinux" or "-e
> /selinux/enforce" all create log messages:

I've attached my archive of man pages for SE Linux APIs.  See 
is_selinux_enabled(3).

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

Attachment: man.tgz
Description: application/tgz


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

  Powered by Linux