From 9cf6f5e54f55dbbae96475dce0f3eaa8bcd14015 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 21 Mar 2023 11:16:45 +0100 Subject: [PATCH] FHS: Allow /usr/src/kernel This directory and it's subdirectories will contain the source code and helper scripts/binaries of the current compiled kernel. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- src/libpakfire/fhs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libpakfire/fhs.c b/src/libpakfire/fhs.c index 4582feaa..f419a4e0 100644 --- a/src/libpakfire/fhs.c +++ b/src/libpakfire/fhs.c @@ -52,6 +52,7 @@ static const struct pakfire_fhs_check { { "/usr/sbin", S_IFDIR, 0755, "root", "root", 0 }, { "/usr/share", S_IFDIR, 0755, "root", "root", 0 }, { "/usr/src", S_IFDIR, 0755, "root", "root", 0 }, + { "/usr/src/kernels", S_IFDIR, 0755, "root", "root", 0 }, // Allow no further files in /usr { "/usr/*", 0, 0, NULL, NULL, PAKFIRE_FHS_MUSTNOTEXIST }, -- 2.47.2