From: Michael Tremer Date: Fri, 17 Mar 2023 10:49:21 +0000 (+0000) Subject: FHS: Enfore that all files in /usr/*bin are executable X-Git-Tag: 0.9.29~289 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2250db76c57caa0ab2054605972463f16eff1390;p=pakfire.git FHS: Enfore that all files in /usr/*bin are executable Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/fhs.c b/src/libpakfire/fhs.c index b09da67fe..14dd70ff5 100644 --- a/src/libpakfire/fhs.c +++ b/src/libpakfire/fhs.c @@ -60,6 +60,10 @@ static const struct pakfire_fhs_check { { "/usr/bin/*", S_IFDIR, PAKFIRE_FHS_MUSTNOTEXIST, 0, NULL, NULL }, { "/usr/sbin/*", S_IFDIR, PAKFIRE_FHS_MUSTNOTEXIST, 0, NULL, NULL }, + // Any files in /usr/{,s}bin must be owned by root and have 0755 + { "/usr/bin/*", S_IFREG, 0, 0755, "root", "root" }, + { "/usr/sbin/*", S_IFREG, 0, 0755, "root", "root" }, + // /var { "/var", S_IFDIR, 0, 0755, "root", "root" }, { "/var/cache", S_IFDIR, 0, 0755, "root", "root" },