From 844d95466037b74431be8d801b34d1f97f2475ac Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 19 Mar 2023 19:37:59 +0000 Subject: [PATCH] FHS: Fix setuid check Signed-off-by: Michael Tremer --- src/libpakfire/fhs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpakfire/fhs.c b/src/libpakfire/fhs.c index 95acb11c..fc96ec10 100644 --- a/src/libpakfire/fhs.c +++ b/src/libpakfire/fhs.c @@ -65,9 +65,9 @@ static const struct pakfire_fhs_check { { "/usr/sbin/*", S_IFDIR, 0, NULL, NULL, PAKFIRE_FHS_MUSTNOTEXIST }, // Permitted setuid binaries - { "/usr/bin/passwd", S_IFREG, 4755, "root", "root", 0 }, - { "/usr/bin/su", S_IFREG, 4755, "root", "root", 0 }, - { "/usr/bin/sudo", S_IFREG, 4755, "root", "root", 0 }, + { "/usr/bin/passwd", S_IFREG, S_ISUID|0755, "root", "root", 0 }, + { "/usr/bin/su", S_IFREG, S_ISUID|0755, "root", "root", 0 }, + { "/usr/bin/sudo", S_IFREG, S_ISUID|0755, "root", "root", 0 }, // Any files in /usr/{,s}bin must be owned by root and have 0755 { "/usr/bin/*", S_IFREG, 0755, "root", "root", 0 }, -- 2.47.3