VirtualBox

Ignore:
Timestamp:
Jul 30, 2016 4:15:08 PM (8 years ago)
Author:
vboxsync
Message:

bugref:8511: RHEL7 -- Oh no! Something has gone wrong -- GA problem: only call semange if it is actually found on the system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r62676 r62749  
    236236        # wrong!" error when starting EL7 guests.
    237237        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
    240242            chcon -h  -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1"
    241243            chcon -h  -t lib_t  "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1"
     
    430432        # This is correct.  semanage maps this to the real path, and it aborts
    431433        # 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 is
    433         # 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"
    435437        chcon -t mount_exec_t "$lib_path/$PACKAGE/mount.vboxsf"
    436438    fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette