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

Bug 927311

Summary: app-containers/buildah-1.35.1 fails to build on SELinux
Product: Gentoo Linux Reporter: Kenton Groombridge <concord>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: CONFIRMED ---    
Severity: normal CC: concord, me, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=927966
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Kenton Groombridge gentoo-dev 2024-03-19 21:58:12 UTC
buildah's Makefile makes an unfortunate assumption about the loaded SELinux policy and tries to relabel the buildah binary with a type that doesn't exist in Gentoo's policy (container_runtime_exec_t vs. podman_exec_t).

It seems setting SELINUXOPT to an empty value successfully tricks the build system to skip its SELinux relabeling step, then Portage will take care of it like normal.
Comment 1 Kenton Groombridge gentoo-dev 2024-03-19 21:58:53 UTC
Created attachment 887957 [details]
build.log