VirtualBox

Changeset 57231 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Aug 7, 2015 1:36:22 AM (9 years ago)
Author:
vboxsync
Message:

Installer/darwin: Fix set-uid bits on 10.11 beta 6. Also make sure VBoxNetAdpCtl is alwyas given a set-uid bit, even if hardening is disabled.

Location:
trunk/src/VBox/Installer/darwin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r56621 r57231  
    746746        @# Set the correct owner and set the set-user-ID-on-execution bit on the relevant executables.
    747747        sudo chown -R root:admin $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root
     748        sudo chmod u+s $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/VBoxNetAdpCtl
    748749ifdef VBOX_WITH_HARDENING
    749750        sudo chmod u+s \
    750                 $(foreach bin,VBoxHeadless VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT,\
     751                $(foreach bin,VBoxHeadless VirtualBox VirtualBoxVM VBoxNetDHCP VBoxNetNAT,\
    751752                        $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/$(bin))
    752753endif
     
    764765        @# Copy the resources.
    765766        $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/preflight                         $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/
     767ifdef VBOX_WITH_HARDENING
    766768        $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/
     769else
     770        $(SED) -s '/WITH_HARDENING/d' -o $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight $(VBOX_PATH_DI_SRC)/VirtualBox/postflight
     771        $(CHMOD) 0755 $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight
     772endif
    767773        @# Build the package.
    768774        $(VBOX_PKGBUILD) \
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r54685 r57231  
    2424# Install the Python bindings
    2525#
    26 
    2726VBOX_INSTALL_PATH=/Applications/VirtualBox.app/Contents/MacOS
    2827PYTHON="python python2.3 python2.5 python2.6 python2.7"
     
    8382
    8483#
     84# Workaround for 10.11 beta 6 in which the set-uid bit isn't set by the installer.
     85#
     86SET_UID_BINARIES="VBoxNetAdpCtl"
     87SET_UID_BINARIES="${SET_UID_BINARIES} VBoxHeadless VirtualBox VirtualBoxVM VBoxNetDHCP VBoxNetNAT" # WITH_HARDENING
     88for bin in ${SET_UID_BINARIES}; do
     89    chmod u+s "/Applications/VirtualBox.app/Contents/MacOS/${bin}"
     90done
     91
     92#
    8593# Correct the ownership of the directories in case there
    8694# was an existing installation.
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