From b3f6aba06a4f1da9737869884fb35d6d640c4d7e Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 6 Jul 2020 22:07:36 -0700 Subject: [PATCH] jailsetup.sh: create $chroot/run -> $chroot/var/run symlink Newer sshd running with privilege separation may be looking for a "/run" in the jail rather than a "/var/run" and if it does not find it, it will not start! Add a symbolic link from /run in the chroot jail to /var/run in the chroot jail so that all versions of sshd get happy. Signed-off-by: Kyle J. McKay --- jailsetup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jailsetup.sh b/jailsetup.sh index 54b5170..1a95629 100755 --- a/jailsetup.sh +++ b/jailsetup.sh @@ -402,9 +402,10 @@ fi # First, setup basic platform-independent directory structure mkdir -p bin dev etc lib sbin var/empty var/run "$jailreporoot" chmod 0555 var/empty -rm -rf usr local +rm -rf usr local run ln -s . usr ln -s . local +ln -s var/run run # Now source the platform-specific script that is responsible for dev device # setup, proc setup (if needed), lib64 setup (if needed) and basic library -- 2.11.4.GIT