Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: acct-user/root/
Date: Wed, 01 Dec 2021 20:31:17
Message-Id: 1638390645.7bdbc2e00e7f475f36d69eb13a523398800b569c.floppym@gentoo
1 commit: 7bdbc2e00e7f475f36d69eb13a523398800b569c
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 1 20:30:45 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 1 20:30:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bdbc2e0
7
8 acct-user/root: set ACCT_USER_NO_MODIFY
9
10 Closes: https://bugs.gentoo.org/827813
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 acct-user/root/root-0-r1.ebuild | 6 +++++-
14 1 file changed, 5 insertions(+), 1 deletion(-)
15
16 diff --git a/acct-user/root/root-0-r1.ebuild b/acct-user/root/root-0-r1.ebuild
17 index f85c77b4cd56..ea2e82dfcf29 100644
18 --- a/acct-user/root/root-0-r1.ebuild
19 +++ b/acct-user/root/root-0-r1.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 2020 Gentoo Authors
22 +# Copyright 2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 @@ -12,6 +12,10 @@ ACCT_USER_HOME="/root"
27 ACCT_USER_HOME_PERMS=0700
28 ACCT_USER_GROUPS=( root )
29
30 +# Avoid reverting changes by the sysadmin.
31 +# https://bugs.gentoo.org/827813
32 +ACCT_USER_NO_MODIFY=1
33 +
34 acct-user_add_deps
35
36 pkg_prerm() {