Open jveitchmichaelis opened 5 years ago
@Mani-Sadhasivam Any clue whats going on there :/ https://github.com/intel-iot-devkit/mraa/blob/master/src/led/led.c#L163
If I have some time I can compile in debug and see which condition it's failing. Within the container I can still write manually to the led device (via /sys) so I'm not sure why stat
would fail.
I always get this on the UP2 too when running as non-root even if the user has write permission to the LED classes.
I'm running a Raspberry Pi 3B+ with Raspbian Stretch. This works fine (outside Docker):
I've got a Docker container in which I've also installed mraa as per https://github.com/intel-iot-devkit/mraa/pull/928. I'm running the container with:
docker run -it -P --privileged -v /sys:/sys bash
When I try to run mraa (as root), I get the following:
This stumped me for a bit, until I noticed that the LEDs were indeed controllable. So is mraa incorrectly determining permissions?