Skip to content

Commit

Permalink
Merge pull request CentOS#81 from lpancescu/selinux_contexts
Browse files Browse the repository at this point in the history
Fix SELinux context of /etc/sudoers.d/vagrant
  • Loading branch information
kbsingh authored Nov 4, 2016
2 parents c52e9b0 + 881fe6d commit 072a3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vagrant/centos6.ks
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ echo 'add_drivers+=" mptspi "' > vmware-fusion-drivers.conf
popd
# Fix the SELinux context of the new files
restorecon -f - <<EOF
/etc/sudoers.d/vagrant
/etc/dracut.conf.d/vmware-fusion-drivers.conf
EOF
# Rerun dracut for the installed kernel (not the running kernel):
Expand Down
1 change: 1 addition & 0 deletions vagrant/centos7.ks
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ echo 'omit_drivers+=" floppy "' > nofloppy.conf
popd
# Fix the SELinux context of the new files
restorecon -f - <<EOF
/etc/sudoers.d/vagrant
/etc/dracut.conf.d/vmware-fusion-drivers.conf
/etc/dracut.conf.d/nofloppy.conf
EOF
Expand Down

0 comments on commit 072a3b9

Please sign in to comment.