VirtualBox

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.

File:
1 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) \
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