VirtualBox

Changeset 37104 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 16, 2011 1:59:49 PM (14 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: first attempt to get SELinux right for GNOME Shell on Fedora 15

Location:
trunk/src/VBox/Additions/linux
Files:
1 added
3 edited

Legend:

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

    r36658 r37104  
    319319        $(VBOX_REL_LNX_ADD_INST)70-xorg-vboxmouse.rules \
    320320        $(VBOX_REL_LNX_ADD_INST)90-vboxguest.fdi \
    321         selinux-fedora/vbox_x11.pp
     321        selinux-fedora/vbox_x11.pp \
     322        selinux-fedora/vbox_accel.pp
    322323
    323324INSTALLS += lnx_add_inst-license
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r36752 r37104  
    515515
    516516    begin "Installing graphics libraries and desktop services components"
    517     # Install selinux policy for Fedora 7 and 8 to allow the X server to
    518     # open device files
    519517    case "$redhat_release" in
     518        # Install selinux policy for Fedora 7 and 8 to allow the X server to
     519        # open device files
    520520        Fedora\ release\ 7* | Fedora\ release\ 8* )
    521521            semodule -i "$share_dir/vbox_x11.pp" > /dev/null 2>&1
     522            ;;
     523        # Similar for the accelerated graphics check on Fedora 15
     524        Fedora\ release\ 15* )
     525            semodule -i "$share_dir/vbox_accel.pp" > /dev/null 2>&1
    522526            ;;
    523527    esac
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r36948 r37104  
    458458    # Put mount.vboxsf in the right place
    459459    ln -sf "$lib_path/$PACKAGE/mount.vboxsf" /sbin
    460     # At least Fedora 11 and Fedora 12 demand on the correct security context when
    461     # executing this command from service scripts. Shouldn't hurt for other distributions.
     460    # At least Fedora 11 and Fedora 12 require the correct security context when
     461    # executing this command from service scripts. Shouldn't hurt for other
     462    # distributions.
    462463    chcon -u system_u -t mount_exec_t "$lib_path/$PACKAGE/mount.vboxsf" > /dev/null 2>&1
     464    # And at least Fedora 15 needs this for the acceleration support check to
     465    # work
     466    redhat_release=`cat /etc/redhat-release 2> /dev/null`
     467    case "$redhat_release" in Fedora\ release\ 15* )
     468        for i in "$lib_path"/*.so
     469        do
     470            restorecon "$i" >/dev/null
     471        done
     472        ;;
     473    esac
    463474
    464475    succ_msg
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