From: Michael Tremer Date: Sun, 29 Dec 2024 18:27:31 +0000 (+0000) Subject: FHS: Permit debug sources X-Git-Tag: 0.9.30~662 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24530b5756c8baf83a6d3b73045d14726d636eaf;p=pakfire.git FHS: Permit debug sources Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/fhs.c b/src/libpakfire/fhs.c index 2dd74b47f..c2a4a9f10 100644 --- a/src/libpakfire/fhs.c +++ b/src/libpakfire/fhs.c @@ -59,8 +59,15 @@ static const struct pakfire_fhs_check { // Allow no further files in /usr { "/usr/*", 0, 0, NULL, NULL, PAKFIRE_FHS_CHECK_MUSTNOTEXIST }, - // Allow no files in /usr/src except some kernel source + // Debug Sources + { "/usr/src/debug", S_IFDIR, 0755, "root", "root", 0 }, + { "/usr/src/debug/*", S_IFDIR, 0755, "root", "root", 0 }, + { "/usr/src/debug/**/*", S_IFREG, 0444, "root", "root", 0 }, + + // Kernel Sources { "/usr/src/kernels/**", 0, 0, "root", "root", 0 }, + + // Allow no more files in /usr/src { "/usr/src/**", 0, 0, NULL, NULL, PAKFIRE_FHS_CHECK_MUSTNOTEXIST }, // There cannot be any subdirectories in /usr/bin & /usr/sbin