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

@@ -23,6 +23,9 @@ rpm:
# apps and binaries require it, so it's a good idea to always include it # apps and binaries require it, so it's a good idea to always include it
# if you ever download or compile any custom software on your machine. # if you ever download or compile any custom software on your machine.
- libadwaita - libadwaita
- policycoreutils
- policycoreutils-python
- checkpolicy
- code - code
- cronie - cronie
- neofetch - neofetch

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