Add SELinux policy for docker sock

This commit is contained in:
Gerald Pinder
2023-06-25 17:40:58 -04:00
parent 85dbcc6fe4
commit 792e339844
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# https://docs.gitlab.com/runner/install/docker.html#selinux
set -euo pipefail
git clone https://github.com/dpw/selinux-dockersock.git /tmp/selinux-dockersock
pushd /tmp/selinux-dockersock
make dockersock.pp
semodule -i dockersock.pp
popd