On Thu, 2012-07-26 at 14:58 -0500, William Roberts wrote: > I've been thinking of checking the enforcing level. If it is enforcing then it should error, if it is permissive then it should warn and let the app start in the wrong context. > > When brining the system up on new platforms this is often a problem. I will make this change and resubmit. Do you mean in general (i.e. changing the err block to check security_getenforce), or just for the case where a boolean isn't defined? I have mixed feelings about checking and using security_getenforce() for anything other than permission denials, as it can hide problems during testing. Also, in Android, it is a bit harder to switch the system back to permissive mode than on a conventional Linux system. -- Stephen Smalley National Security Agency -- 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.