Skip to content Skip to sidebar Skip to footer

Device Node Access Permissions In Linux

I'm writing a char device driver for embedded android. The device module, register itself as a char device, and a corresponding device node is created under /dev . The problem is t

Solution 1:

If your device registers itself using udev, which is the most likely case, then you can create a custom udev rule to manage the permissions on this device.

For example, this rule assigns rw-rw-rw- permissions to a device belonging to the USB vendor 0bb4: SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"

Post a Comment for "Device Node Access Permissions In Linux"