p910nd: Run as non-root by default
authorDaniel F. Dickinson <cshored@thecshore.com>
Sat, 27 Jul 2019 03:47:01 +0000 (23:47 -0400)
committerDaniel F. Dickinson <cshored@thecshore.com>
Sat, 14 Sep 2019 20:44:08 +0000 (16:44 -0400)
commit875eb10d118f76dea9596d6a3368e7e1f7881009
tree7c03dfa137fa65d2dbb2180d6b9d5b8ead534be4
parent1d0c66755e61f96281260a5e0faa37bc6195c420
p910nd: Run as non-root by default

We add the necessary Makefile, hotplug, config, and init bits
so that p910nd daemon runs as user:group p910nd:lp by default.
This eliminates an unnecessary root daemon.

The hotplug script sets the permissions of the USB lp
device(s) to read-write owner and group and no access to
anyone else, and sets owner root, group lp.

This is allows sufficient privileges to p910nd
to do it's job.

(cherry-pick 932c76fa740acb0d68a46b78e2bc0eafd5fe13d6)

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
net/p910nd/Makefile
net/p910nd/files/p910nd.config
net/p910nd/files/p910nd.hotplug [new file with mode: 0644]
net/p910nd/files/p910nd.init