Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Created June 11, 2013 14:47
Show Gist options
  • Save fiddyspence/5757477 to your computer and use it in GitHub Desktop.
Save fiddyspence/5757477 to your computer and use it in GitHub Desktop.
selinux
if FileTest.exists?("#{selinux_mount_point}/enforce")
if FileTest.exists?("/proc/self/attr/current")
if (File.read("/proc/self/attr/current") != "kernel\0")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment