Skip to content

Commit 247648a

Browse files
committed
.github: disable apparmarmor to allow testing in unshare
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent fcc12df commit 247648a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
sudo ~/tmp/sbin/pimctl -u ~/tmp/foo.sock -h
6565
sudo ~/tmp/sbin/pimctl -u ~/tmp/foo.sock
6666
sudo ~/tmp/sbin/pimctl -u ~/tmp/foo.sock kill
67+
- name: Enable unprivileged userns (unshare)
68+
run: |
69+
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
6770
- name: Test
6871
run: |
6972
make check || (cat test/test-suite.log; false)

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
run: |
3838
./autogen.sh
3939
./configure --prefix= --enable-rsrr
40+
- name: Enable unprivileged userns (unshare)
41+
run: |
42+
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
4043
- name: Build release ...
4144
run: |
4245
make release || (cat test/test-suite.log; false)

0 commit comments

Comments
 (0)