Replies: 1 comment 5 replies
-
Do you mean MLS? I have never heard of an mcs policy. I don't think you can install container-selinux onto an MLS system, because a lot of the interfaces that container-selinux uses will not be present. Also container-selinux does not follow the rules of an MLS system. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to install
podman
on a system whose SELinux policy is set to MCS. However, it appears that thecontainer-selinux
package will only install onto systems that are running atargeted
policy. Is there any way to install this package on an MCS system? If not, this seems like a major limitation of this package and podman by extension.Additional information:
This is a RHEL8 system running a custom SELinux policy. It does not have the
selinux-policy-targeted
package installed. Rather, it has a customselinux-policy-mcs
package. TheSELINUXTYPE
is set tomcs
in/etc/selinux/config
.dnf install container-selinux
does not work ascontainer-selinux
requiresselinux-policy-targeted
as a dependency. To get around this, I have downloaded thecontainer-selinux
RPM and usedrpmrebuild
to modify its.spec
file to remove the dependency onselinux-policy-targeted
. This modified RPM seems to install successfully, but the SELinux policy does not actually get installed. It appears there is logic in the RPM to not perform thesemodule
installation ifSELINUXTYPE
is not set totargeted
, so no SELinux modules get installed on the system.Ideally, I would like to be able to install this package via
dnf
so that I can stay up-to-date with updates.Any help is appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions