From afb648e7cda9bf0bea1cd6f9dc84d0898f462df6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 19 Jan 2026 11:52:16 +0000 Subject: [PATCH] daemon/selinux.c: Fix compilation when no libselinux /usr/bin/ld: /tmp/ccvSGq6E.ltrans7.ltrans.o:(.data.rel.ro+0x1f8): undefined reference to `optgroup_selinuxrelabel_available' The reason is that we didn't include optgroup_selinuxrelabel_available on the fallback / no libselinux code path. Reported-by: David Runge Thanks: Toolybird Fixes: https://github.com/libguestfs/libguestfs/issues/290 Fixes: commit ed40333a23ae8f20ac0360df444d10db369fa6d9 (cherry picked from commit 548af2929ea221980d175b2af5d529dad3a06d6d) --- daemon/selinux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/selinux.c b/daemon/selinux.c index 4500d0096..3c2ea7bc6 100644 --- a/daemon/selinux.c +++ b/daemon/selinux.c @@ -94,5 +94,6 @@ do_getcon (void) #else /* !HAVE_LIBSELINUX */ OPTGROUP_SELINUX_NOT_AVAILABLE +OPTGROUP_SELINUXRELABEL_NOT_AVAILABLE #endif /* !HAVE_LIBSELINUX */