Skip to content

Instantly share code, notes, and snippets.

@major
Created May 17, 2013 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/5598798 to your computer and use it in GitHub Desktop.
Save major/5598798 to your computer and use it in GitHub Desktop.
daemon writing files with incorrect SELinux contexts
# /sbin/restorecon -vR /etc/
/sbin/restorecon reset /etc/hosts.1368210781.bak~ context system_u:object_r:net_conf_t:s0->system_u:object_r:etc_t:s0
/sbin/restorecon reset /etc/shadow context system_u:object_r:etc_runtime_t:s0->system_u:object_r:shadow_t:s0
/sbin/restorecon reset /etc/sysconfig/network context system_u:object_r:etc_runtime_t:s0->system_u:object_r:etc_t:s0
/sbin/restorecon reset /etc/hosts context system_u:object_r:etc_runtime_t:s0->system_u:object_r:net_conf_t:s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment