forked from EduCraft/curriculum-project-hub
fix(ci): enable unprivileged userns for hub-check bwrap
This commit is contained in:
@@ -123,6 +123,9 @@ jobs:
|
|||||||
useradd --create-home --shell /bin/bash cphci
|
useradd --create-home --shell /bin/bash cphci
|
||||||
fi
|
fi
|
||||||
install -d -o cphci -g cphci -m 0700 /w/t
|
install -d -o cphci -g cphci -m 0700 /w/t
|
||||||
|
# bwrap needs unprivileged user namespaces once CapEff is emptied.
|
||||||
|
sysctl -w kernel.unprivileged_userns_clone=1 2>/dev/null || true
|
||||||
|
sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 2>/dev/null || true
|
||||||
REPO_ROOT="$(cd .. && pwd)"
|
REPO_ROOT="$(cd .. && pwd)"
|
||||||
NODE_BIN_DIR="$(dirname "$(command -v node)")"
|
NODE_BIN_DIR="$(dirname "$(command -v node)")"
|
||||||
NPX_BIN="$(command -v npx)"
|
NPX_BIN="$(command -v npx)"
|
||||||
|
|||||||
Reference in New Issue
Block a user