From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?Tmljb2xhcyBQb21hcsOoZGU=?= Date: Sun, 06 Mar 2011 17:21:09 +0000 Subject: Re: [PATCH] add ACLs to /dev/sgX nodes for CD-ROM Message-Id: <4D73C285.5070909@corp.free.fr> List-Id: References: <1299402082-4796-1-git-send-email-arvidjaar@mail.ru> In-Reply-To: <1299402082-4796-1-git-send-email-arvidjaar@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Le 06/03/2011 16:33, Kay Sievers a =C3=A9crit : > On Sun, Mar 6, 2011 at 10:01, Andrey Borzenkov wrote: >> Current wine is using /dev/sgX to access CD-ROM devices. Since >> distributions switched to using ACL instead of group membership >> to control device access, wine is not able to access them. >> >> Add ACL to device nodes that already get GROUP=3D"cdrom". > > sg is kind of deprecated and should really not be used anymore by > anything. Ideally we would start no even loading the module. > > Who exactly depends on it and can not be fixed? Why does Fedora and > SUSE does not seem to have any problem the last couple of years? > > Kay Other distribs are also having problem with this : gentoo : http://bugs.gentoo.org/321007 fedora 13 : http://bugs.winehq.org/show_bug.cgi?id#313 Wine's code is using /dev/sgX, I don't know if there're some patches=20 around to change this. It seems an usual fix is to add oneself to the cdrom group, but this is=20 hardly an out of the box solution for a non technical user that would=20 just install his linux distro of choice. The fact that this problem is often related to users wanting to run=20 protected games under Wine is certainly another reason why it didn't get=20 much attention or fixes so far (in my case I want to access low level=20 scsi functions with EAC). Using acl in udev would provide a solution that automatically enables=20 access to /dev/sgX for any logged user, without having to change /etc/group. Nicolas