]> git.ipfire.org Git - pakfire.git/commitdiff
FHS: Permit debug sources
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Dec 2024 18:27:31 +0000 (18:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Dec 2024 18:27:31 +0000 (18:27 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/fhs.c

index 2dd74b47ff6d6f0af5e5e99826b8a25be12649c2..c2a4a9f1057dd8d8a50c51d26c003ee29b29a603 100644 (file)
@@ -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