From 7bdbc2e00e7f475f36d69eb13a523398800b569c Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 1 Dec 2021 15:30:45 -0500 Subject: [PATCH] acct-user/root: set ACCT_USER_NO_MODIFY Closes: https://bugs.gentoo.org/827813 Signed-off-by: Mike Gilbert --- acct-user/root/root-0-r1.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/acct-user/root/root-0-r1.ebuild b/acct-user/root/root-0-r1.ebuild index f85c77b4cd566..ea2e82dfcf29f 100644 --- a/acct-user/root/root-0-r1.ebuild +++ b/acct-user/root/root-0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,6 +12,10 @@ ACCT_USER_HOME="/root" ACCT_USER_HOME_PERMS=0700 ACCT_USER_GROUPS=( root ) +# Avoid reverting changes by the sysadmin. +# https://bugs.gentoo.org/827813 +ACCT_USER_NO_MODIFY=1 + acct-user_add_deps pkg_prerm() {