jail: allow passing environment variable to procd jailed process
authorDaniel Golle <daniel@makrotopia.org>
Thu, 11 Nov 2021 11:53:58 +0000 (11:53 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 11 Nov 2021 14:02:25 +0000 (14:02 +0000)
commit9d1431e1309e1acee06c016acc08cb7650b1d0af
tree7b3ee01826a59a128c93e9bc7c295ce26a913bda
parent0ee8e734a7f67220cf4a3412b60ff674b5fb20dd
jail: allow passing environment variable to procd jailed process

Introduce new option '-e' to ujail which can be stated multiple times
to import environment variables to the jailed process environment.
Use that option to import selected environment variables defined for
a jailed service instance to its environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c
service/instance.c