summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautomated/linux/ltp/ltp.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 9cc4818..cb4a1ac 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -108,6 +108,11 @@ prep_system() {
info_msg "Stopping systemd-timesyncd"
systemctl stop systemd-timesyncd
fi
+ # userns07 requires kernel.unprivileged_userns_clone
+ if [ "$(sysctl -n kernel.unprivileged_userns_clone)" -eq 0 ]; then
+ info_msg "Enabling kernel.unprivileged_userns_clone"
+ sysctl -w kernel.unprivileged_userns_clone=1
+ fi
}
# Test run.