iotaledger / access-server

Apache License 2.0
14 stars 3 forks source link

remove need for sudo on raspberrypi #146

Open bernardoaraujor opened 4 years ago

bernardoaraujor commented 4 years ago

Currently the Relay-based PEP Plugin depends on pigpio, which needs root priviledges to access the gpio pins via DMA.

The current implication of that is the need for $ sudo ./acsri when starting the Embedded Server with an enabled Relay plugin.

This is a terrible practice in terms of security. We must find a way to r/w the gpio pins without root priviledges. Probably by getting rid of pigpio and writing into the GPIO registers without any third party libs.

bernardoaraujor commented 4 years ago

pigpio's author warns the following:

At the moment pigpio on the Pi4B is experimental. I am not sure if the DMA channels being used are safe.