[Arm-dev] gpio device ownership

Tue Jun 30 11:35:29 UTC 2020
Pablo Sebastián Greco <pablo at fliagreco.com.ar>

On 29/6/20 16:49, R C wrote:
> Hello,
>
> ownership/permissions on gpio device are like tis:
>
> crw-------.  1 root root    254,   0 Jan  1  1970 gpiochip0
> crw-------.  1 root root    254,   1 Jan  1  1970 gpiochip1
> crw-------.  1 root root    254,   2 Jan  1  1970 gpiochip2
> crw-------.  1 root root    246,   0 Jan  1  1970 gpiomem
>
>
> while other device like ttys, are owned by root and "group owned" by 
> tty, similar for video, disk, dialout etc.
>
> wouldn't it be 'better' to  have these gpio devices  owned by root, 
> "group owned" by a group other then root (gpio)?
>
> (or did 'we' inherit that from further up/down the development chain?)
Yeap, that's inherited, I'm guessing you could write some udev rule to 
set the permissions you need (or even setfacl)
>
>
> Ron
>
> _______________________________________________
> Arm-dev mailing list
> Arm-dev at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev
Pablo.