On Tue, 23 Sep 2008 16:32:16 -0700 "Mike Sweetser - Adhost" <mikesw@xxxxxxxxxx> wrote: > James, > > The following command set should give you what you want: > > grep '^SELINUXTYPE' /etc/selinux/config | awk '{split($0,a,"="); print > a[2];}' > > When run against my targeted setup on RHEL 5.2, it gave me back > "targeted". There's also the "sestatus" command: # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 21 Policy from config file: targeted Paul. -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.