Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13752 closed defect (fixed)

wrong umask for /dev/null and other nodes

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:



# ls -l /dev/null
crw-r--r--    1 root     root        1,   3 Jun 24 22:09 /dev/null
# chpst -u downloader -- sh -c 'echo > null'
sh: can't create null: Permission denied

/dev/null is expected to be crw-rw-rw- (chr 666) as said in /etc/hotplug.json
# grep -A7 null /etc/hotplug*.json
/etc/hotplug.json:                                                              [ "null", "full", "ptmx", "zero" ],
/etc/hotplug.json-                                                      ],
/etc/hotplug.json-                                                      [ "regex", "DEVNAME",
/etc/hotplug.json-                                                              [ "^gpio", "^hvc", "^tty" ],
/etc/hotplug.json-                                                      ],
/etc/hotplug.json-                                              ],
/etc/hotplug.json-                                              [
/etc/hotplug.json-                                                      [ "makedev", "/dev/%DEVNAME%", "0666" ],

the patch add umask(0) before and restore it after mknod (makedev). 

Attachments (1)

02-umask.patch (1.2 KB) - added by xuefer@… 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by xuefer@…

comment:1 Changed 5 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

Thank you !

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.