Skip to content

Commit 354e2b3

Browse files
committed
enable unshare
1 parent 4ab9a99 commit 354e2b3

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.unprivileged_userns_clone=1
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.unprivileged_userns_clone=1
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.unprivileged_userns_clone=1
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.unprivileged_userns_clone=1
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
@@ -452,6 +460,8 @@ jobs:
452460
gcc-multilib \
453461
g++-multilib \
454462
dejagnu;
463+
# enable unshare
464+
sudo sysctl -w kernel.unprivileged_userns_clone=1
455465
# install Rust directly using rustup
456466
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
457467

0 commit comments

Comments
 (0)