Skip to content

zpytela/pulpcore-selinux

This branch is 77 commits behind pulp/pulpcore-selinux:main.

Folders and files

NameName
Last commit message
Last commit date
Sep 29, 2020
Dec 9, 2019
Dec 9, 2019
Sep 17, 2020
Oct 21, 2020
Oct 21, 2020
Oct 23, 2020
Oct 23, 2020
Oct 23, 2020
Sep 17, 2020

Repository files navigation

pulpcore-selinux

The SELinux policy for Pulp 3.Y releases.

Building

sudo yum install -y selinux-policy-devel  policycoreutils
git clone https://github.com/pulp/pulpcore-selinux
cd pulpcore-selinux

make -f /usr/share/selinux/devel/Makefile pulpcore_port.pp
make -f /usr/share/selinux/devel/Makefile pulpcore.pp
make -f /usr/share/selinux/devel/Makefile pulpcore_rhsmcertd.pp

Installing

semodule -i pulpcore_port.pp
semodule -i pulpcore.pp
semodule -i pulpcore_rhsmcertd.pp

Labeling pulpcore_port

Required: You must label ports used by Pulp with pulpcore_port_t so that the proper type is assigned to the ports and Pulp is allowed to communicate on with the network correctly.

Apply the pulpcore_port_t SELinux type to ports 24816 and 24817 with:

semanage port -a -t pulpcore_port_t -p tcp 24816-24817

Uninstalling

Uninstall in the following order:

semanage port -d -t pulpcore_port_t -p tcp 24816-24817
semodule -r pulpcore_rhsmcertd
semodule -r pulpcore
semodule -r pulpcore_port

About

A Pulp 3 SELinux policy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published