jail: don't always CLONE_NEWUTS
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Wed, 1 Jun 2016 20:54:06 +0000 (20:54 +0000)
committerJohn Crispin <john@phrozen.org>
Fri, 3 Jun 2016 09:10:35 +0000 (11:10 +0200)
commitb8eb07c22fc5f3dea04d9843e8fd6d2eac6e61fa
treeaf4ebda693bcc12420b0340a87c2e03cc46f133d
parent98b63ed7b5612bd422f6bb52a6a7043fc2c09a1c
jail: don't always CLONE_NEWUTS

no -h => no CLONE_NEWUTS
-h "" => CLONE_NEWUTS
-h "newjailhostname" => CLONE_NEWUTS + sethostname

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