Skip to content

SELinux Module that allows a specific type to access the docker.sock

License

Notifications You must be signed in to change notification settings

stone-payments/selinux-docker-sock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

selinux-docker-sock

Usage

Make sure you have the prerequisite SELinux utilities:

yum install selinux-policy-devel

Then as root, just do

make -f /usr/share/selinux/devel/Makefile dockersock.pp

to install SELinux policy module

semodule -i dockersock.pp

to reload SELinux policy module

semodule -R

Should you ever wish to remove the module, do

semodule -r dockersock

Example

docker run -d --security-opt label:type:container_sock_t --name centos centos sleep infinity

License

MIT

About

SELinux Module that allows a specific type to access the docker.sock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published