chore: no more --privileged containers

This commit is contained in:
Marcus Holland-Moritz 2025-07-29 09:42:01 +02:00
parent 997118da6e
commit 4517e526ba
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NPROC:=$(shell nproc)
COMMON_RUN_OPTS=-it --rm \
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
--cap-add SYS_ADMIN --device /dev/fuse \
--mount type=bind,source="$(ROOT_DIR)"/..,target=/workspace,readonly \
--mount type=bind,source="$(ROOT_DIR)"/../@docker-ccache,target=/ccache \
--mount type=bind,source="$(ROOT_DIR)"/../@docker-home,target=/home/mhx \

View File

@ -64,8 +64,8 @@ jobs:
- name: Run Build
run: |
docker run --rm \
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
docker run --rm --init \
--cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined \
--mount type=bind,source=${GITHUB_WORKSPACE},target=/workspace,readonly \
--mount type=bind,source=${{ runner.temp }},target=/tmp-runner \
--mount type=bind,source=${HOME}/github-ccache,target=/ccache \