Bug 130094 - pam_console_setowner does not work
Summary: pam_console_setowner does not work
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC3Target
TreeView+ depends on / blocked
 
Reported: 2004-08-16 23:08 UTC by David Zeuthen
Modified: 2013-03-06 03:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-24 15:16:27 UTC


Attachments (Terms of Use)

Description David Zeuthen 2004-08-16 23:08:20 UTC
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:

Comment 1 Harald Hoyer 2004-08-20 08:24:34 UTC
Do you have selinux enabled??

Comment 2 David Zeuthen 2004-08-20 08:49:44 UTC
Nope.

[root@laptop ~]# selinuxenabled
[root@laptop ~]# echo $?
1

Comment 3 David Zeuthen 2004-08-20 08:54:48 UTC
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

Comment 4 Harald Hoyer 2004-08-20 09:46:37 UTC
ok, found the bug... the console.lock file changed its location.

Comment 5 David Zeuthen 2004-08-20 09:48:50 UTC
Great, should I file a new bug regarding the symlinks?

Comment 6 Harald Hoyer 2004-08-24 15:16:27 UTC
yep


Note You need to log in before you can comment on or make changes to this bug.