Ignore:
Timestamp:
2011-05-03T21:37:59+02:00 (6 years ago)
Author:
jow
Message:

[package] base-files: cleanup permissions of device files in common hotplug rules (#9211)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/hotplug2-common.rules

    r25415 r26808  
    77$include /etc/hotplug2-platform.rules 
    88 
    9 DEVICENAME ~~ (^null$|^full$|^ptmx$|^tty|^zero$|^gpio|^hvc) { 
     9DEVICENAME ~~ (^null$|^full$|^ptmx$|^zero$|^gpio|^hvc) { 
    1010        makedev /dev/%DEVICENAME% 0666 
    1111        next-event 
     
    1414DEVICENAME ~~ (^tun|^tap[0-9]$) { 
    1515        makedev /dev/net/%DEVICENAME% 0644 
    16 } 
    17  
    18 DEVICENAME ~~ ^ppp { 
    19         makedev /dev/%DEVICENAME% 0600 
    2016} 
    2117 
     
    3632DEVICENAME == device-mapper { 
    3733        makedev /dev/mapper/control 0600 
     34        next-event 
    3835} 
    3936 
    40 DEVPATH is set { 
     37ACTION == add, DEVPATH is set { 
    4138        makedev /dev/%DEVICENAME% 0644 
     39} 
     40 
     41ACTION == add, DEVPATH is set, DEVICENAME ~~ ^tty { 
     42        chmod 0666 /dev/%DEVICENAME% 
     43} 
     44 
     45ACTION == add, DEVPATH is set, DEVICENAME ~~ ^ppp { 
     46        chmod 0600 /dev/%DEVICENAME% 
     47} 
     48 
     49ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set { 
     50        remove /dev/%DEVICENAME% 
    4251} 
    4352 
Note: See TracChangeset for help on using the changeset viewer.