From 7b15321b3b0e40244af1488f4ee1cd4453a78bc8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 20 Aug 2025 10:58:39 -0700 Subject: [PATCH] meson: don't build xselinux if xace is disabled xselinux requires xace to build Signed-off-by: Alan Coopersmith Part-of: --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index abab17ed3..a8ca181b2 100644 --- a/meson.build +++ b/meson.build @@ -699,7 +699,7 @@ if get_option('xselinux') != 'false' if get_option('xselinux') == 'true' build_xselinux = true else - build_xselinux = dep_selinux.found() and dep_audit.found() + build_xselinux = dep_selinux.found() and dep_audit.found() and build_xace endif if build_xselinux @@ -707,6 +707,10 @@ if get_option('xselinux') != 'false' common_dep += dep_audit endif endif +if build_xselinux and not build_xace + error('cannot build SELinux extension without X-ACE') +endif + socket_dep = [] if host_machine.system() == 'windows'