Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927708

Summary: app-containers/podman-5.0.0: fails to build when SELinux enabled
Product: Gentoo Linux Reporter: Ed Santiago <gentoo>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED DUPLICATE    
Severity: normal CC: concord, me, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Santiago 2024-03-24 12:11:51 UTC
....
test -z "-Z" || chcon -t container_runtime_exec_t bin/podman
chcon: failed to change context of 'bin/podman' to ‘unconfined_u:object_r:container_runtime_exec_t’: Invalid argument
make: *** [Makefile:358: bin/podman] Error 1
 * ERROR: app-containers/podman-5.0.0::gentoo failed (compile phase):

Reproducible: Always




`container_runtime_exec_t` is defined in https://github.com/containers/container-selinux/  which AFAICT is not packaged for Gentoo
Comment 1 Rahil Bhimjiani 2024-03-24 15:18:01 UTC
> which AFAICT is not packaged for Gentoo

We do have sec-policy/selinux-podman, which might be outdated at this point. I would love to update it but don't have SELinux gentoo machine. 

On my main machine, I can't do it thanks to +homed. (I've to choose between SElinux and homed). I've yet to learn how to setup KVM/QEMU vm. Dont want to spend on cloud VM (VPS)
Comment 2 Kenton Groombridge gentoo-dev 2024-04-03 14:15:32 UTC

*** This bug has been marked as a duplicate of bug 927966 ***