jail: ensure mounts are not MS_SHARED to avoid pivot_root() failure
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Sun, 29 May 2016 23:39:17 +0000 (23:39 +0000)
committerJohn Crispin <john@phrozen.org>
Wed, 1 Jun 2016 08:27:35 +0000 (10:27 +0200)
commit98b63ed7b5612bd422f6bb52a6a7043fc2c09a1c
treea70ccc14fbf33c86e5b515bb56623a6018be2ba0
parenta79578a3dc7a57800168035b2edd3d1a1bcf0dda
jail: ensure mounts are not MS_SHARED to avoid pivot_root() failure

By default mounts are MS_PRIVATE (kernel default) but systemd
decided to make it MS_SHARED by default since v188
https://github.com/systemd/systemd/commit/b3ac5f8cb98757416d8660023d6564a7c411f0a0

This patch fixes ujail on systemd distro (useful for development at least).

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/jail.c