Bug 110197 - Make hard disk devices mode 0640?
Summary: Make hard disk devices mode 0640?
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
Keywords: FutureFeature
Depends On:
Blocks: FC4Target
TreeView+ depends on / blocked
Reported: 2003-11-16 21:25 UTC by Need Real Name
Modified: 2007-11-30 22:10 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2004-12-21 06:17:48 UTC

Attachments (Terms of Use)

Description Need Real Name 2003-11-16 21:25:08 UTC
Description of problem:
By default, hard disk device special files in /dev/ are created as
root:disk mode 0660 (writable by group "disk").

There doesn't appear to be anything actually using sgid disk AFAICT,
so group write access is not required.  Can we change it to read-only
by group "disk?"

This would be useful for e.g., putting userid "operator" into group
"disk" for performing dumps.  That id could then read from the disks,
but not write to them (providing a greater safety margin).

Note that /etc/dumpdates is already writable by group "disk" so the
operator userid would still be able to modify this file as intended.

Version-Release number of selected component (if applicable):

Comment 3 Nalin Dahyabhai 2004-08-31 15:44:57 UTC
Making this change for 3.9.2-1.

Comment 4 Nalin Dahyabhai 2004-09-14 15:28:01 UTC

Comment 5 Féliciano Matias 2004-10-03 17:03:39 UTC
This bug is not in FC3Blocker and it should be. It's a security issue
easy to fix :
- hd*:root:disk:660
+ hd*:root:disk:640

Comment 6 Alan Cox 2004-10-04 11:32:29 UTC
I don't see that its a security issue per se  - we don't ship suid
disk apps. I agree with the change however.

Comment 7 Féliciano Matias 2004-10-04 11:47:54 UTC
> I don't see that its a security issue

Check FC2, and /dev/hd* have rw access to group disk.
In fact, many other files have write access to group disk.
$ find /dev/ -group disk -perm -020 -print | wc
  16256   16256  237802

But MAKEDEV have change between fc2 and fc3 :
diff 00macros.fc2 00macros.fc3
< =STORAGE  660 root disk
> =STORAGE  640 root disk

So, it's a udev or MAKEDEV bug.

Comment 8 Féliciano Matias 2004-10-04 11:57:08 UTC
I am wrong in comment #c5 .
According to MAKEDEV (from fc3) all devices with disk group should
have root:disk 640 permission. Not only /dev/hd*.

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