Skip to content

Commit 560aad3

Browse files
committed
.github: disable kernel.apparmor_restrict_unprivileged_userns
Required to be allowed to use unshare in test(s), even if --map-auto. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent e473084 commit 560aad3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ jobs:
2424
MAKEFLAGS: -j3
2525
CC: ${{ matrix.compiler }}
2626
steps:
27-
- name: Install dependencies
28-
run: |
29-
sudo apt-get -y update
30-
sudo apt-get -y install tree
3127
- uses: actions/checkout@v2
28+
- name: Enable unprivileged userns (unshare)
29+
run: |
30+
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
3231
- name: Build
3332
run: |
3433
make
3534
- name: Install to ~/tmp and Inspect
3635
run: |
3736
DESTDIR=~/tmp make install-strip
38-
tree ~/tmp
37+
ls -lR ~/tmp
3938
ldd ~/tmp/usr/local/bin/mping
4039
size ~/tmp/usr/local/bin/mping
4140
~/tmp/usr/local/bin/mping -h

0 commit comments

Comments
 (0)