Skip to content

Commit 4517e52

Browse files
committed
chore: no more --privileged containers
1 parent 997118d commit 4517e52

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.docker/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
1010
NPROC:=$(shell nproc)
1111

1212
COMMON_RUN_OPTS=-it --rm \
13-
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
13+
--cap-add SYS_ADMIN --device /dev/fuse \
1414
--mount type=bind,source="$(ROOT_DIR)"/..,target=/workspace,readonly \
1515
--mount type=bind,source="$(ROOT_DIR)"/../@docker-ccache,target=/ccache \
1616
--mount type=bind,source="$(ROOT_DIR)"/../@docker-home,target=/home/mhx \

.github/workflows/docker-run-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
6565
- name: Run Build
6666
run: |
67-
docker run --rm \
68-
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
67+
docker run --rm --init \
68+
--cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined \
6969
--mount type=bind,source=${GITHUB_WORKSPACE},target=/workspace,readonly \
7070
--mount type=bind,source=${{ runner.temp }},target=/tmp-runner \
7171
--mount type=bind,source=${HOME}/github-ccache,target=/ccache \

0 commit comments

Comments
 (0)