VirtualBox

Changes between Initial Version and Version 1 of Ticket #21218, comment 12


Ignore:
Timestamp:
Jun 7, 2023 10:50:36 AM (12 months ago)
Author:
amaksoft

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21218, comment 12

    initial v1  
    1919The only binary out of all listed in the postflight script that has setuid bit is {{{VBoxNetAdpCtl}}}. The rest don't have it.
    2020
    21 Can it be that it fails for set the bit due to some MacOS restrictions?
     21Why?
     22Let's investigate the install package:
     23{{{
     24amaksoft@amaksoft-mbp ~ $ mkdir VboxPkg
     25amaksoft@amaksoft-mbp ~ $ cd VboxPkg
     26amaksoft@amaksoft-mbp ~/VboxPkg $ xar -xf /Volumes/VirtualBox/VirtualBox.pkg
     27amaksoft@amaksoft-mbp ~/VboxPkg $ cd VirtualBox.pkg
     28amaksoft@amaksoft-mbp ~/VboxPkg/VirtualBox.pkg $ cat Scripts | gunzip -dc | cpio -i
     2912 blocks
     30amaksoft@amaksoft-mbp ~/VboxPkg/VirtualBox.pkg $ cat postflight | tail -n 15
     31#
     32# Workaround for 10.11 beta 6 in which the above chown strips the set-uid-to-root bit.
     33#
     34SET_UID_BINARIES="MacOS/VBoxNetAdpCtl"
     35for bin in ${SET_UID_BINARIES}; do
     36    chmod u+s "/Applications/VirtualBox.app/Contents/${bin}"
     37done
     38
     39# Install provisioning profile if present, needed by VBoxHeadless.
     40if [ -f /Applications/VirtualBox.app/Contents/embedded.provisionprofile ]; then
     41    profiles -i -F /Applications/VirtualBox.app/Contents/embedded.provisionprofile
     42fi
     43
     44exit 0;
     45
     46}}}
     47The install package only applies setuid to {{{VBoxNetAdpCtl}}}, which matches the binaries atributes I observe above.
     48
     49Why doesn't it match the trunk state?
    2250
    2351Anyway, here's the extended workaround shell command:

© 2023 Oracle
ContactPrivacy policyTerms of Use