commit: f550cb2d62b4ca0a5b6a74c6ecf53024049a800e
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 24 15:13:47 2025 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Mon Nov 24 15:15:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f550cb2d
app-containers/incus: add selinux suppor tin live ebuild
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
app-containers/incus/incus-9999.ebuild | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/app-containers/incus/incus-9999.ebuild
b/app-containers/incus/incus-9999.ebuild
index c1fee5168d79..e7aa0d1d14f7 100644
--- a/app-containers/incus/incus-9999.ebuild
+++ b/app-containers/incus/incus-9999.ebuild
@@ -19,7 +19,7 @@ fi
LICENSE="Apache-2.0 BSD LGPL-3 MIT"
SLOT="0/stable"
-IUSE="apparmor fuidshift nls qemu"
+IUSE="apparmor fuidshift nls qemu selinux"
DEPEND="acct-group/incus
acct-group/incus-admin
@@ -247,8 +247,12 @@ src_install() {
use nls && domo po/*.mo
# Incus needs INCUS_EDK2_PATH in env to find OVMF files for virtual
machines, #946184,
- # and INCUS_AGENT_PATH to find multi-setup agents for VMs, #959878.
+ # and INCUS_AGENT_PATH to find multi-setup agents for VMs, #959878,
+ # and INCUS_SECURITY_SELINUX=true to enable selinux support (until its
enabled by default)
newenvd "${FILESDIR}"/90incus.envd 90incus
+ if use selinux; then
+ echo "INCUS_SECURITY_SELINUX=true" >> "${D}"/etc/env.d/90incus
+ fi
}
pkg_postinst() {