linux kernel - How to set the permissions of my driver file using udev rules -
i trying set permissions on device driver file read/write users using udev rules work. here udev rules :
subsystem=="lpc*", kernel=="lpc?*", driver=="lpc", group="users", mode="0666" when test using :
sudo udevadm test $(udevadm info -q path -n /dev/lpc_peach)2>&1 this @ bottom lines :
preserve permissions /dev/lpc_peach, 020600, uid=0, gid=0 preserve existing symlink '/dev/char/248:0' '../lpc_peach' i can't identify wrong! useful.
edit 1 : when run udevadm info -q -n /dev/lpc_peach here get:
p: /devices/virtual/lpc_spartan/lpc_peach n: lpc_peach e: devname=/dev/lpc_peach e: devpath=/devices/virtual/lpc_spartan/lpc_peach e: major=247 e: minor=0 e: subsystem=lpc_spartan
Comments
Post a Comment