From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Wed, 10 Nov 2004 22:10:49 +0000 Subject: Re: udev and cdrom permissions Message-Id: <20041110221049.GA15786@wonderland.linux.it> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Nov 10, Stefan Schweizer wrote: > with udev we have the general problem that it sets the group disk for > every hd* device. With this normal users cant write or read cdroms > without being in the disk group which is a security problem. > We really need to assign the cdrom group to cdrom-devices. md@wonderland:~$cat /etc/udev/simple-cd-aliases.rules # grouping of optical drives from multiple kernel subsystems KERNEL="sr*", NAME="%k", SYMLINK="cdrom%e" KERNEL="scd*", NAME="%k", SYMLINK="cdrom%e" KERNEL="pcd*", NAME="%k", SYMLINK="cdrom%e" KERNEL="hd[a-z]", NAME="%k", SYMLINK="cdrom%e", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom" md@wonderland:~$ Just add GROUP statements. -- ciao, | Marco | [9127 scp/Mb5GlCdUc] ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel