FHS: Allow /usr/src/kernel

Message ID 20230321101645.1592206-1-stefan.schantl@ipfire.org
State New
Headers
Series FHS: Allow /usr/src/kernel |

Commit Message

Stefan Schantl March 21, 2023, 10:16 a.m. UTC
  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 <stefan.schantl@ipfire.org>
---
 src/libpakfire/fhs.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

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 },