improve docker security (#77)

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
This commit is contained in:
tomer doron authored and GitHub committed 2020-02-04 10:25:56 +00:00
1 parent b4dbfacff4
commit 57c869c174
1 file changed
+4 -1
+4 -1
View File
@@ -16,8 +16,11 @@ services:
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code
- ..:/code:z
working_dir: /code
cap_drop:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
sanity:
<<: *common