1
0
forked from pool/virtualbox

Accepting request 78368 from Virtualization

modified virtualbox-60-vboxdrv.rules udev rules for usb devices

OBS-URL: https://build.opensuse.org/request/show/78368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=34
This commit is contained in:
Sascha Peilicke 2011-08-11 08:09:55 +00:00 committed by Git OBS Bridge
commit ac8cf781f4
3 changed files with 15 additions and 12 deletions

View File

@ -1,5 +1,5 @@
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600" KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
#these two lines give access permission to vboxusers to properly work with usb nodes, this could be security risk (bnc#664520) !! #these two lines give access permission to vboxusers to properly work with usb nodes, this could be security risk (bnc#664520) !!
#SUBSYSTEM=="usb_device", ATTR{devnum}=="?*", ATTR{busnum}=="?*",NAME="vboxusb/$attr{busnum}/$attr{devnum}", GROUP="vboxusers" #SUBSYSTEM=="usb_device", ATTR{devnum}=="?*", ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}", GROUP="vboxusers"
#SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{devnum}=="?*", ATTR{busnum}=="?*",NAME="vboxusb/$attr{busnum}/$attr{devnum}", GROUP="vboxusers" #SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{devnum}=="?*", ATTR{busnum}=="?*",SYMLINK="vboxusb/$attr{busnum}/$attr{devnum}", GROUP="vboxusers"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 9 12:37:27 UTC 2011 - mseben@gmail.com
- modified usb udev rule in virtualbox-60-vboxdrv.rules (thanks to Dirk O. Kaar)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 21 06:12:54 UTC 2011 - mseben@gmail.com Thu Jul 21 06:12:54 UTC 2011 - mseben@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package virtualbox # spec file for package virtualbox (Version 3.9.80)
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -37,7 +37,7 @@ BuildRequires: bin86 dev86 libidl-devel libqt4-devel libxslt-devel yasm
BuildRequires: SDL-devel kernel-syms module-init-tools BuildRequires: SDL-devel kernel-syms module-init-tools
BuildRequires: e2fsprogs-devel libcap-devel libcurl-devel python-devel update-desktop-files BuildRequires: e2fsprogs-devel libcap-devel libcurl-devel python-devel update-desktop-files
BuildRequires: pulseaudio-devel xorg-x11 xorg-x11-devel xorg-x11-server xorg-x11-server-sdk BuildRequires: pulseaudio-devel xorg-x11 xorg-x11-devel xorg-x11-server xorg-x11-server-sdk
BuildRequires: LibVNCServer-devel gcc gcc-c++ kbuild pam-devel quilt udev BuildRequires: LibVNCServer-devel gcc gcc-c++ kbuild pam-devel udev quilt
BuildRequires: boost-devel BuildRequires: boost-devel
%if %suse_version > 1110 %if %suse_version > 1110
BuildRequires: zlib-devel-static BuildRequires: zlib-devel-static
@ -190,7 +190,6 @@ VirtualBox guest addition tools.
########################################### ###########################################
%package -n python-%{name} %package -n python-%{name}
Summary: Python bindings for %{name} Summary: Python bindings for %{name}
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -460,6 +459,7 @@ popd
#install wrapper script #install wrapper script
%__install -m 644 %{S:9} %{buildroot}%{_bindir}/VirtualBox %__install -m 644 %{S:9} %{buildroot}%{_bindir}/VirtualBox
# modify and install the vboxdrv init script # modify and install the vboxdrv init script
# TODO: some of this stuff breaks the fillup macros below? # TODO: some of this stuff breaks the fillup macros below?
%__sed -i "s|%NOLSB%|yes|g;s|%DEBIAN%||g;s|%PACKAGE%|virtualbox|g" src/VBox/Installer/linux/vboxdrv.sh.in %__sed -i "s|%NOLSB%|yes|g;s|%DEBIAN%||g;s|%PACKAGE%|virtualbox|g" src/VBox/Installer/linux/vboxdrv.sh.in
@ -474,6 +474,8 @@ popd
%__install -d -m 755 %{buildroot}%{_var}/adm/fillup-templates %__install -d -m 755 %{buildroot}%{_var}/adm/fillup-templates
install -m 700 %{S:13} %{buildroot}%{_var}/adm/fillup-templates/sysconfig.vbox install -m 700 %{S:13} %{buildroot}%{_var}/adm/fillup-templates/sysconfig.vbox
###################################################### ######################################################
echo "entrering python-virtualbox install section" echo "entrering python-virtualbox install section"
###################################################### ######################################################
@ -633,7 +635,6 @@ exit 0
%verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxHeadless %verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxHeadless
%verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSDL %verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSDL
# #
%files qt %files qt
%defattr(-, root, root) %defattr(-, root, root)
%{_vbox_instdir}/VBoxPermissionMessage %{_vbox_instdir}/VBoxPermissionMessage
@ -648,7 +649,6 @@ exit 0
%{_datadir}/pixmaps/virtualbox.png %{_datadir}/pixmaps/virtualbox.png
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
# #
%files guest-x11 %files guest-x11
%defattr(-, root, root) %defattr(-, root, root)
%dir %{_libdir}/xorg/modules/drivers %dir %{_libdir}/xorg/modules/drivers
@ -666,7 +666,6 @@ exit 0
%{_datadir}/hal/fdi/policy/20thirdparty/90-vboxguest.fdi %{_datadir}/hal/fdi/policy/20thirdparty/90-vboxguest.fdi
%endif %endif
# #
%files guest-tools %files guest-tools
%defattr(-, root, root) %defattr(-, root, root)
%{_bindir}/VBoxControl %{_bindir}/VBoxControl
@ -676,7 +675,6 @@ exit 0
%config %{_sysconfdir}/init.d/vboxadd %config %{_sysconfdir}/init.d/vboxadd
%{_sbindir}/rcvboxadd %{_sbindir}/rcvboxadd
# #
%files -n python-%{name} -f %{_tmppath}/SITE_FILES %files -n python-%{name} -f %{_tmppath}/SITE_FILES
%defattr(-, root, root) %defattr(-, root, root)
%dir %{_vbox_instdir}/sdk %dir %{_vbox_instdir}/sdk