Which capabilities(7) do I need to give my binary or user to work with GPIO? Is it CAP_SYS_RAWIO
?
I would like to avoid sudo
for giving admin rights to a whole process. Capabilities seem like the right way to get around it.
What's the mechanism behind the gpio
group on Raspbian? Is it perhaps sufficient to make the user running my binary member of some pre-existing group such as plugdev
or dialout
(which would be used for accessing serial I/O)?
I am not using Raspbian, because I am trying to get the fastest boot possible. So I decided to go for a customized Debian Stretch, built with this script.