Skip to content

Commit

Permalink
Fix SELinux context of /etc/sudoers.d/vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
lpancescu committed Oct 27, 2016
1 parent 7847757 commit 881fe6d
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 @@ -144,6 +144,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 881fe6d

Please sign in to comment.