Bug 110197 - Make hard disk devices mode 0640?
Summary: Make hard disk devices mode 0640?
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: 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)

Fixed In Version: 3.9.2-1
Clone Of:
Environment:
Last Closed: 2004-12-21 06:17:48 UTC
Type: ---
Embargoed:


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):
3.3.8-2

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
Reopening.

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 :
/etc/udev/permissions.d/50-udev.permissions
- 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
9c9
< =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.