Bug 158338

Summary: /dev/rtc is not readable by user
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ladislav Michnovic <lmichnovic>
Component: OtherAssignee: Kay Sievers <kasievers>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: adrian.schroeter, aj, lnussel, security-team, suse-beta
Version: Beta 7   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ladislav Michnovic 2006-03-15 17:57:22 UTC
Some applications are complaining about this.
Is it intended?
 ll /dev/rtc 
crw-rw---- 1 root audio 10, 135 2006-03-04 21:11 /dev/rtc
Comment 2 Hannes Reinecke 2006-03-16 16:14:58 UTC
Kay Sievers. /dev is maintained by the udev package now.
Comment 3 Kay Sievers 2006-03-16 16:21:46 UTC
I have no idea. Ludwig, any idea?
Comment 4 Ludwig Nussel 2006-03-16 16:34:51 UTC
The permissions of /dev/rtc in fact used to be 600 root:root. So the first question must not be "why can't user's read it?" but "why did you change it to 660 root:audio?" :-) Note that the audio group is unused by default.

I cannot judge whether it's safe to open this device to users. It's probably possible to DoS the machine, I don't know. IIRC there is some proc file where you can tune what the user is able to set though.
Comment 5 Kay Sievers 2006-03-17 03:07:19 UTC
Hmm, so can we change it to 664, or not? Who can answer that?
Comment 6 Marcus Meissner 2006-03-17 08:40:46 UTC
and what actual programs want it?
Comment 7 Ladislav Michnovic 2006-03-27 11:06:51 UTC
For example mplayer is complaining. I did not changed the permissions of /dev/rtc manually.
(Mplayer is not distributed within Suse Linux.)
Comment 8 Kay Sievers 2006-04-13 09:28:25 UTC
Marcus, do we want/should we have other permissions as the current root:root:600?
Comment 9 Marcus Meissner 2006-04-13 10:35:29 UTC
No. root:root 0600 it stays for now
Comment 10 Kay Sievers 2006-04-13 10:38:00 UTC
Thanks!