Advertisement
Guest User

Untitled

a guest
Jan 11th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # check whether we have SELinux enabled system
  2. args = "/usr/sbin/selinuxenabled"
  3. selinuxenabled = sub_process.call(args)
  4. if selinuxenabled == 0:
  5. # required context type
  6. context_type = "virt_image_t" <----- HARD CODED HERE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement