jail: don't fail unless requirejail is set
authorDaniel Golle <daniel@makrotopia.org>
Sat, 25 Apr 2020 08:48:46 +0000 (09:48 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 25 Apr 2020 09:15:18 +0000 (10:15 +0100)
commite2ed964f963b782de74110efe13529d855e71ea4
tree0cd656051d54dd65dea9d40ee01f9d8edd8c5189
parentd200b70e5d5b0b3b61e2573f1c2fa22b3fa9d63a
jail: don't fail unless requirejail is set

Pass requirejail attribute to ujail and only fail to start a service
which has seccomp policy defined on a system which doesn't have
procd-seccomp installed in case requirejail is set.

Fixes: bcb8655 ("instance: add 'requirejail' attribute")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c
service/instance.c