21 | | Can it be that it fails for set the bit due to some MacOS restrictions? |
| 21 | Why? |
| 22 | Let's investigate the install package: |
| 23 | {{{ |
| 24 | amaksoft@amaksoft-mbp ~ $ mkdir VboxPkg |
| 25 | amaksoft@amaksoft-mbp ~ $ cd VboxPkg |
| 26 | amaksoft@amaksoft-mbp ~/VboxPkg $ xar -xf /Volumes/VirtualBox/VirtualBox.pkg |
| 27 | amaksoft@amaksoft-mbp ~/VboxPkg $ cd VirtualBox.pkg |
| 28 | amaksoft@amaksoft-mbp ~/VboxPkg/VirtualBox.pkg $ cat Scripts | gunzip -dc | cpio -i |
| 29 | 12 blocks |
| 30 | amaksoft@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 | # |
| 34 | SET_UID_BINARIES="MacOS/VBoxNetAdpCtl" |
| 35 | for bin in ${SET_UID_BINARIES}; do |
| 36 | chmod u+s "/Applications/VirtualBox.app/Contents/${bin}" |
| 37 | done |
| 38 | |
| 39 | # Install provisioning profile if present, needed by VBoxHeadless. |
| 40 | if [ -f /Applications/VirtualBox.app/Contents/embedded.provisionprofile ]; then |
| 41 | profiles -i -F /Applications/VirtualBox.app/Contents/embedded.provisionprofile |
| 42 | fi |
| 43 | |
| 44 | exit 0; |
| 45 | |
| 46 | }}} |
| 47 | The install package only applies setuid to {{{VBoxNetAdpCtl}}}, which matches the binaries atributes I observe above. |
| 48 | |
| 49 | Why doesn't it match the trunk state? |