VirtualBox

Changeset 18005 in vbox


Ignore:
Timestamp:
Mar 17, 2009 10:03:01 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/Installer: setuid for non-hardened build for VBoxUSBHelper, VBoxNetDHCP, VBoxNetAdpCtl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    r17917 r18005  
    160160            ||  $3 == "opt/VirtualBox/amd64/VBoxSDL=amd64/VBoxSDL" \
    161161            ||  $3 == "opt/VirtualBox/amd64/VBoxBFE=amd64/VBoxBFE" \
    162             ||  $3 == "opt/VirtualBox/amd64/VBoxNetDHCP=amd64/VBoxNetDHCP" \
    163162            ||  $3 == "opt/VirtualBox/i386/VirtualBox=i386/VirtualBox" \
    164163            ||  $3 == "opt/VirtualBox/i386/VirtualBox3=i386/VirtualBox3" \
     
    166165            ||  $3 == "opt/VirtualBox/i386/VBoxSDL=i386/VBoxSDL" \
    167166            ||  $3 == "opt/VirtualBox/i386/VBoxBFE=i386/VBoxBFE" \
    168             ||  $3 == "opt/VirtualBox/i386/VBoxNetDHCP=i386/VBoxNetDHCP" \
    169167            ) \
    170168       { $4 = "4755" } { print }' prototype > prototype2
     
    172170fi
    173171
    174 # VBoxUSBHelper needs to be marked setuid root.
    175 if test -f $VBOX_INSTALLED_DIR/amd64/VBoxUSBHelper || test -f $VBOX_INSTALLED_DIR/i386/VBoxUSBHelper; then
    176     $VBOX_AWK 'NF == 6 \
    177         && (    $3 == "opt/VirtualBox/amd64/VBoxUSBHelper=amd64/VBoxUSBHelper" \
    178             ||  $3 == "opt/VirtualBox/i386/VBoxUSBHelper=i386/VBoxUSBHelper" \
    179             ) \
    180        { $4 = "4755" } { print }' prototype > prototype2
    181     mv -f prototype2 prototype
    182 fi
    183 
    184 # VBoxNetAdpCtl needs to be marked setuid root.
    185 if test -f $VBOX_INSTALLED_DIR/amd64/VBoxNetAdpCtl || test -f $VBOX_INSTALLED_DIR/i386/VBoxNetAdpCtl; then
    186     $VBOX_AWK 'NF == 6 \
    187         && (    $3 == "opt/VirtualBox/amd64/VBoxNetAdpCtl=amd64/VBoxNetAdpCtl" \
    188             ||  $3 == "opt/VirtualBox/i386/VBoxNetAdpCtl=i386/VBoxNetAdpCtl" \
    189             ) \
    190        { $4 = "4755" } { print }' prototype > prototype2
    191     mv -f prototype2 prototype
    192 fi
     172# Other executables that need setuid root (hardened or otherwise)
     173$VBOX_AWK 'NF == 6 \
     174    && (    $3 == "opt/VirtualBox/amd64/VBoxUSBHelper=amd64/VBoxUSBHelper" \
     175        ||  $3 == "opt/VirtualBox/i386/VBoxUSBHelper=i386/VBoxUSBHelper" \
     176        ||  $3 == "opt/VirtualBox/amd64/VBoxNetAdpCtl=amd64/VBoxNetAdpCtl" \
     177        ||  $3 == "opt/VirtualBox/i386/VBoxNetAdpCtl=i386/VBoxNetAdpCtl" \
     178        ||  $3 == "opt/VirtualBox/amd64/VBoxNetDHCP=amd64/VBoxNetDHCP" \
     179        ||  $3 == "opt/VirtualBox/i386/VBoxNetDHCP=i386/VBoxNetDHCP" \
     180        ) \
     181   { $4 = "4755" } { print }' prototype > prototype2
     182mv -f prototype2 prototype
    193183
    194184
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