From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040706 Firefox/0.9.1 Description of problem: Here is what happens when I hotplug my external DVD writer. Note that PAM needs to be updated; I've manually had to add the /dev/sr* entry. [root@laptop ~]# cat /etc/security/console.perms|grep /dev/sr <cdrom>=/dev/cdrom* /dev/cdroms/* /dev/cdwriter* /mnt/cdrom* /dev/sr* [root@laptop ~]# ls -l /dev/sr0 ls: /dev/sr0: No such file or directory [root@laptop ~]# #insert device [root@laptop ~]# ls -l /dev/sr0 brw------- 1 root root 11, 0 Aug 17 01:02 /dev/sr0 [root@laptop ~]# /sbin/pam_console_setowner /dev/sr0 [root@laptop ~]# ls -l /dev/sr0 brw------- 1 root root 11, 0 Aug 17 01:02 /dev/sr0 [root@laptop ~]# /sbin/pam_console_apply [root@laptop ~]# ls -l /dev/sr0 brw------- 1 david root 11, 0 Aug 17 01:02 /dev/sr0 Version-Release number of selected component (if applicable): udev-030-3 How reproducible: Always Steps to Reproduce: Remove device and plug it in again Actual Results: The permissions for a console user isn't honoured Expected Results: The permissions should have changed Additional info:
Do you have selinux enabled??
Nope. [root@laptop ~]# selinuxenabled [root@laptop ~]# echo $? 1
Btw, there is a related bug, bug #130095, that suggest that udev should create symlinks such that console.perms will work without changes when the console changes owner. Beware, you can't open(2) the device file (that's bug #130232 which is closed as WONTFIX) so you need to look at /proc/ide/hd?/media or something. Thanks, David
ok, found the bug... the console.lock file changed its location.
Great, should I file a new bug regarding the symlinks?
yep