From a100f9111c8cc7f5b5f0e4a5e8af3de7161c7975 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Mon, 26 Feb 2024 23:02:06 +0800 Subject: Build: Fix Linux Landlock feature test in Autotools and CMake builds. The previous Linux Landlock feature test assumed that having the linux/landlock.h header file was enough. The new feature tests also requires that prctl() and the required Landlock system calls are supported. --- src/xz/sandbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xz/sandbox.h') diff --git a/src/xz/sandbox.h b/src/xz/sandbox.h index f41b4725..98b9862a 100644 --- a/src/xz/sandbox.h +++ b/src/xz/sandbox.h @@ -9,7 +9,7 @@ // /////////////////////////////////////////////////////////////////////////////// -#if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK_H) \ +#if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK) \ || defined(HAVE_CAP_RIGHTS_LIMIT) # define ENABLE_SANDBOX 1 #endif -- cgit v1.2.3