nerves-web-kiosk / kiosk_system_rpi3

Nerves QtWebEngine Kiosk system for Raspberry Pi 3
Apache License 2.0
67 stars 25 forks source link

Add separate kiosk user #8

Closed electricshaman closed 6 years ago

electricshaman commented 6 years ago

Related to #7, this adds a separate kiosk user that can be used to run daemons and other commands, such as qt-webkit-kiosk. The user is added to a video group so that permissions may be assigned onto devices such as the framebuffer. Currently the only way to assign those permissions to devices is through chmod and chgrp due to the way devtmpfs works. I will be submitting a separate PR to add those to busybox.

Note that this doesn't restrict the ability to run anything as root. It just gives us another option which is consistent with good security practices.