From: Michael Tremer Date: Sun, 19 Mar 2023 19:37:59 +0000 (+0000) Subject: FHS: Fix setuid check X-Git-Tag: 0.9.29~236 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=844d95466037b74431be8d801b34d1f97f2475ac;p=pakfire.git FHS: Fix setuid check Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/fhs.c b/src/libpakfire/fhs.c index 95acb11c5..fc96ec102 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 },