]> git.ipfire.org Git - pakfire.git/commitdiff
FHS: All files in /boot must be owned by root
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Mar 2023 11:56:59 +0000 (11:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Mar 2023 11:56:59 +0000 (11:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/fhs.c

index 706e56c58ef455b7be61462851298903ae65c4e4..f646fafd00623c272e57799550db1ee207606ba0 100644 (file)
@@ -96,6 +96,10 @@ static const struct pakfire_fhs_check {
        { "/boot",                S_IFDIR, 0755, "root", "root", 0 },
        { "/boot/efi",            S_IFDIR, 0755, "root", "root", 0 },
 
+       // All files in /boot must be owned by root
+       { "/boot/**",             S_IFREG,    0, "root", "root", 0, },
+       { "/boot/**",             S_IFDIR,    0, "root", "root", 0, },
+
        // /dev (nothing may exist in it)
        { "/dev",                 S_IFDIR, 0755, "root", "root", 0 },
        { "/dev/**",                    0,    0,   NULL,   NULL, PAKFIRE_FHS_MUSTNOTEXIST },