From 6fd345466e6afddbc2e4231dd7eb45b1685586a1 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Tue, 5 Sep 2023 10:52:06 -0300 Subject: [PATCH] acct-user/cron: set home owner and perms In keeping with history and what sys-process/cronbase tries to accomplish, acct-user/cron should be setting ACCT_USER_HOME_OWNER="root:cron" and ACCT_USER_HOME_PERMS="0750". Because acct-user/cron is often merged before sys-process/cronbase(as it is in RDEPEND) and its keepdir with owner/group, the end result is that incorrect permissions can be set on directory creation. Closes: https://bugs.gentoo.org/913346 Closes: https://github.com/gentoo/gentoo/pull/32630 Signed-off-by: Tomas Fabrizio Orsi Signed-off-by: Mike Gilbert --- acct-user/cron/{cron-0-r1.ebuild => cron-0-r2.ebuild} | 2 ++ 1 file changed, 2 insertions(+) rename acct-user/cron/{cron-0-r1.ebuild => cron-0-r2.ebuild} (82%) diff --git a/acct-user/cron/cron-0-r1.ebuild b/acct-user/cron/cron-0-r2.ebuild similarity index 82% rename from acct-user/cron/cron-0-r1.ebuild rename to acct-user/cron/cron-0-r2.ebuild index cae4953127b99..882965270c4e9 100644 --- a/acct-user/cron/cron-0-r1.ebuild +++ b/acct-user/cron/cron-0-r2.ebuild @@ -10,5 +10,7 @@ DESCRIPTION="A user for sys-process/cronbase" ACCT_USER_GROUPS=( "cron" ) ACCT_USER_HOME="/var/spool/cron" ACCT_USER_ID="16" +ACCT_USER_HOME_OWNER="root:cron" +ACCT_USER_HOME_PERMS="0750" acct-user_add_deps