[PATCH] Check SELinux state from /selinux/enforce instead of /usr/sbin/getenforce.

Jesse Keating jkeating at redhat.com
Mon Apr 26 16:10:26 UTC 2010


On Mon, 2010-04-26 at 19:02 +0300, Ville Skyttä wrote:
> Ok, do you find the attached revised version clearer?

Does /syslinux/enforce exist in cases where we're not either permissive
or enforcing?  If it only exists in those cases, couldn't we just do a
"if os.path.exists()" call on it?

If not, then what you have looks fine.

-- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100426/f4329e81/attachment.bin 


More information about the buildsys mailing list