Skip to content

Commit

Permalink
.github: disable apparmarmor to allow testing in unshare
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Jan 6, 2025
1 parent 52930f0 commit b45eb48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
pushd /tmp/example/
PKG_CONFIG_LIBDIR=/tmp/lib/pkgconfig make -f example.mk
popd
- name: Enable unprivileged userns (unshare)
run: |
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
- name: Run Tests
run: |
cd build/dir
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
run: |
./autogen.sh
./configure --prefix=/tmp --with-systemd=/tmp/lib/systemd/system
- name: Enable unprivileged userns (unshare)
run: |
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
- name: Build release ...
run: |
make release
Expand Down

0 comments on commit b45eb48

Please sign in to comment.