VirtualBox

Changeset 35206 in vbox


Ignore:
Timestamp:
Dec 16, 2010 9:54:47 PM (14 years ago)
Author:
vboxsync
Message:

Installer/linux: /dev/vboxdrv should belong to the group vboxusers in non-hardened builds

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r35000 r35206  
    327327                -e "s|%DEBIAN%||g" \
    328328                -e "s|%PACKAGE%|virtualbox|g" \
     329                -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
    329330                --output $@ \
    330331                $<
  • trunk/src/VBox/Installer/linux/debian/rules

    r34682 r35206  
    301301            -e 's|%DEBIAN%|yes|g' \
    302302            -e 's|%PACKAGE%|virtualbox|g' \
     303            -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
    303304            $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init
    304305        dh_installinit --name=vboxdrv --noscripts
  • trunk/src/VBox/Installer/linux/rpm/rules

    r34319 r35206  
    176176           -e 's|%DEBIAN%||g' \
    177177           -e 's|%PACKAGE%|virtualbox|g' \
     178           -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
    178179           vboxdrv.sh.in > $(archdir)/vboxdrv.init
    179180        sed \
  • trunk/src/VBox/Installer/linux/vboxdrv.sh.in

    r35168 r35206  
    191191    fi
    192192    # ensure permissions
    193     if ! chown :root $DEVICE 2>/dev/null; then
     193    if ! chown :%GROUP% $DEVICE 2>/dev/null; then
    194194        rmmod vboxnetadp 2>/dev/null
    195195        rmmod vboxnetflt 2>/dev/null
    196196        rmmod vboxdrv 2>/dev/null
    197         failure "Cannot change owner $GROUPNAME for device $DEVICE"
     197        failure "Cannot change group %GROUP% for device $DEVICE"
    198198    fi
    199199    if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then
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