procd: fix running jailed non-root process
authorDaniel Golle <daniel@makrotopia.org>
Mon, 30 Dec 2019 18:26:24 +0000 (20:26 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 30 Dec 2019 18:32:10 +0000 (20:32 +0200)
commit37929ddb7087199d6bac2568268eca6b302b27a2
treeebac7f66cfe35af23a09b217a56bd7e21dd8d4bc
parentc48b571ad708b9f66efb0c2942291c2d8f1d7780
procd: fix running jailed non-root process

Setting user and group for a jailed process caused the jail not to
come up. Fix this by passing user and group to ujail and change
user only once the jail has been setup.
This allows jailing services which refuse to run as root user.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/system/procd/Makefile