VirtualBox

Changeset 104248 in vbox


Ignore:
Timestamp:
Apr 9, 2024 9:31:05 AM (8 months ago)
Author:
vboxsync
Message:

Installer/linux: Don't consider the VirtualBox binary for setuid treatment, the UI is always split now. bugref:9049

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/postinst

    r98103 r104248  
    6565  fi
    6666
    67   # The starters need to be Suid root. They drop the privileges before starting
    68   # the real frontend.
    69   if test -e /usr/lib/virtualbox/VirtualBoxVM; then
    70     if ! dpkg-statoverride --list /usr/lib/virtualbox/VirtualBoxVM > /dev/null 2>&1; then
    71       chmod 4511 /usr/lib/virtualbox/VirtualBoxVM
    72     fi
    73   else
    74     if ! dpkg-statoverride --list /usr/lib/virtualbox/VirtualBox > /dev/null 2>&1; then
    75       chmod 4511 /usr/lib/virtualbox/VirtualBox
    76     fi
     67  # The starters need to be set-uid-to-root. They drop the privileges before
     68  # starting the real frontend.
     69  if ! dpkg-statoverride --list /usr/lib/virtualbox/VirtualBoxVM > /dev/null 2>&1; then
     70    chmod 4511 /usr/lib/virtualbox/VirtualBoxVM
    7771  fi
    7872  if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxHeadless > /dev/null 2>&1; then
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r103028 r104248  
    223223rm -f $RPM_BUILD_ROOT/usr/lib/virtualbox/chrpath
    224224ln -s ../VBoxVMM.so $RPM_BUILD_ROOT/usr/lib/virtualbox/components/VBoxVMM.so
    225 for i in VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do
     225for i in VirtualBoxVM VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do
    226226  chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done
    227 if test -e $RPM_BUILD_ROOT/usr/lib/virtualbox/VirtualBoxVM; then
    228   chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VirtualBoxVM
    229 else
    230   chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VirtualBox
    231 fi
    232227if [ -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo ]; then
    233228  chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo
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