Skip to content

Commit

Permalink
turn on unprivileged user namespaces in CI (#178)
Browse files Browse the repository at this point in the history
Ubuntu 24.04 LTS has this feature turned off, but we need it to configure the build or run tests
  • Loading branch information
mgree authored Oct 10, 2024
1 parent 939f3ee commit 18a365c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- name: Install dependencies
- name: Allow unprivileged user namespaces (for Ubuntu 24.04)
run: |
sudo apt-get install util-linux expect mergerfs attr pandoc
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
- name: Debug unshare install
- name: Install dependencies
run: |
echo unshare is at $(which unshare)
unshare --mount --map-root-user --user --pid --fork -- ls
sudo apt-get install util-linux expect mergerfs attr pandoc
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -55,6 +54,10 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- name: Allow unprivileged user namespaces (for Ubuntu 24.04)
run: |
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
- name: Install dependencies
run: |
sudo apt-get install expect mergerfs attr pandoc
Expand Down Expand Up @@ -97,6 +100,10 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- name: Allow unprivileged user namespaces (for Ubuntu 24.04)
run: |
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
- name: Install dependencies
run: |
sudo apt-get install expect mergerfs attr pandoc
Expand Down

0 comments on commit 18a365c

Please sign in to comment.