Home > other >  Create nodes through DEVICE_ATTR, no permission to access
Create nodes through DEVICE_ATTR, no permission to access

Time:09-15

Create nodes through DEVICE_ATTR, without access to, under the condition of without root device, how to obtain permission in the code, let the node can always be accessed?

CodePudding user response:

Only root can have permission, otherwise, the equipment security mechanism is not rotten

CodePudding user response:

refer to the original poster TsingSoftware2014 response:
create nodes, through DEVICE_ATTR without access to, under the condition of without root device, how to obtain permission in the code, let the node can always be accessed?

You have the source code, you inside the init rc given permission to this node, such as chmod 644 xx (node)
  • Related