mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-22 05:11:23 -05:00
ci: allow unrestricted user namespaces in image builds (#3587)
Since Ubuntu 23.10, creating namespaces, e.g. via `unshare`, requires privileges. Since `unshare` is used by `mkosi` in our image build pipeline, we need to re-enable them explicitly here before building the image, aligning with the behavior before Ubuntu 23.10.
This commit is contained in:
parent
0272e7dd15
commit
6ba47d5634
6
.github/workflows/build-os-image.yml
vendored
6
.github/workflows/build-os-image.yml
vendored
@ -167,6 +167,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
clouds_yaml: ${{ secrets.STACKIT_IMAGE_UPLOAD_CLOUDS_YAML }}
|
clouds_yaml: ${{ secrets.STACKIT_IMAGE_UPLOAD_CLOUDS_YAML }}
|
||||||
|
|
||||||
|
- name: Allow unrestricted user namespaces
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_unconfined=0
|
||||||
|
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_userns=0
|
||||||
|
|
||||||
- name: Build and upload
|
- name: Build and upload
|
||||||
id: build
|
id: build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user