jail: cgroups: replace wrongly used assert()
authorDaniel Golle <daniel@makrotopia.org>
Wed, 4 Aug 2021 15:33:11 +0000 (16:33 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 4 Aug 2021 15:33:11 +0000 (16:33 +0100)
commitbfc86a2ccc8c92b4c7a0216d28b1287c9011f945
tree6fd38b131404432b2848d6e44f0c173842fab80f
parent2b20456498c605b999124f3e34814103dcd1e44b
jail: cgroups: replace wrongly used assert()

In most cases, what we should do is exit(ENOMEM). In some cases like
when checking for filehandlers, handle errors appropriately.

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