Skip to content

Commit 0f55078

Browse files
committed
enable unshare
1 parent 009c286 commit 0f55078

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ccpp.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
gcc-multilib \
3939
g++-multilib \
4040
dejagnu;
41+
# enable unshare
42+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
4143
# install Rust directly using rustup
4244
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
4345
@@ -123,6 +125,8 @@ jobs:
123125
gcc-multilib \
124126
g++-multilib \
125127
dejagnu;
128+
# enable unshare
129+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
126130
# install Rust directly using rustup
127131
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
128132
@@ -208,6 +212,8 @@ jobs:
208212
gcc-multilib \
209213
g++-multilib \
210214
dejagnu;
215+
# enable unshare
216+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
211217
# install Rust directly using rustup
212218
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
213219
@@ -291,6 +297,8 @@ jobs:
291297
libmpc-dev \
292298
build-essential \
293299
dejagnu;
300+
# enable unshare
301+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
294302
# install Rust directly using rustup
295303
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
296304
@@ -454,6 +462,8 @@ jobs:
454462
gcc-multilib \
455463
g++-multilib \
456464
dejagnu;
465+
# enable unshare
466+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
457467
# install Rust directly using rustup
458468
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
459469

0 commit comments

Comments
 (0)