Changeset 62749 in vbox for trunk/src/VBox/Additions/linux/installer
- Timestamp:
- Jul 30, 2016 4:15:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r62676 r62749 236 236 # wrong!" error when starting EL7 guests. 237 237 if test -e /etc/selinux/config; then 238 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1" 239 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1" 238 if command -v semanage > /dev/null; then 239 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1" 240 semanage fcontext -a -t lib_t "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1" 241 done 240 242 chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1" 241 243 chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1" … … 430 432 # This is correct. semanage maps this to the real path, and it aborts 431 433 # with an error, telling you what you should have typed, if you specify 432 # the real path. The "chcon" is there as a back-up in case this is433 # different on old guests.434 semanage fcontext -a -t mount_exec_t "/usr/lib/$PACKAGE/mount.vboxsf"434 # the real path. The "chcon" is there as a back-up for old guests. 435 command -v semanage > /dev/null && 436 semanage fcontext -a -t mount_exec_t "/usr/lib/$PACKAGE/mount.vboxsf" 435 437 chcon -t mount_exec_t "$lib_path/$PACKAGE/mount.vboxsf" 436 438 fi
Note:
See TracChangeset
for help on using the changeset viewer.