Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927311 - app-containers/buildah-1.35.1 fails to build on SELinux
Summary: app-containers/buildah-1.35.1 fails to build on SELinux
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-19 21:58 UTC by Kenton Groombridge
Modified: 2024-04-03 14:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,366.51 KB, application/gzip)
2024-03-19 21:58 UTC, Kenton Groombridge
Details

Note You need to log in before you can comment on or make changes to this bug.
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