Skip to content

Commit 73be3a1

Browse files
authored
improve docker security (#180)
motivation: more secured ci setup changes: * enable :z selinux flag on bind mounts so we can enable selinux on ci * drop potentially exploitable capabilities from docker-compose
1 parent c1bfb7c commit 73be3a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/docker-compose.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ services:
1616
depends_on: [runtime-setup]
1717
volumes:
1818
- ~/.ssh:/root/.ssh
19-
- ..:/code
19+
- ..:/code:z
2020
working_dir: /code
21+
cap_drop:
22+
- CAP_NET_RAW
23+
- CAP_NET_BIND_SERVICE
2124

2225
sanity:
2326
<<: *common

0 commit comments

Comments
 (0)