Skip to content

Commit 0ee6872

Browse files
committed
ci: sysctl kernel.apparmor_restrict_unprivileged_userns=0
1 parent a1d7525 commit 0ee6872

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/ci.dhall

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ in haskellCi.generalCi
1010
with extraSteps.pre
1111
=
1212
defSteps.extraSteps.pre
13-
# [ haskellCi.installCachixStep "hnix-store" ]
13+
# [ haskellCi.installCachixStep "hnix-store"
14+
, haskellCi.BuildStep.NameIf
15+
{ name = "Allow unprivileged userns"
16+
, run =
17+
"sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0"
18+
, `if` = "matrix.os == 'ubuntu-latest'"
19+
}
20+
]
1421
)
1522
)
1623
haskellCi.DhallMatrix::{

.github/workflows/ci.dhall.frozen

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ in haskellCi.generalCi
1111
with extraSteps.pre
1212
=
1313
defSteps.extraSteps.pre
14-
# [ haskellCi.installCachixStep "hnix-store" ]
14+
# [ haskellCi.installCachixStep "hnix-store"
15+
, haskellCi.BuildStep.NameIf
16+
{ name = "Allow unprivileged userns"
17+
, run =
18+
"sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0"
19+
, `if` = "matrix.os == 'ubuntu-latest'"
20+
}
21+
]
1522
)
1623
)
1724
haskellCi.DhallMatrix::{

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
with:
1212
name: "hnix-store"
1313
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
14+
- if: "matrix.os == 'ubuntu-latest'"
15+
name: Allow unprivileged userns
16+
run: sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
1417
- uses: "actions/checkout@v4"
1518
with:
1619
submodules: recursive

0 commit comments

Comments
 (0)