Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/amanda/
Date: Mon, 13 Nov 2017 20:45:18
Message-Id: 1510605900.95ee4b091e3c6e5e1db342a57b6fdee53b095e8c.robbat2@gentoo
1 commit: 95ee4b091e3c6e5e1db342a57b6fdee53b095e8c
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 13 20:32:41 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 20:45:00 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95ee4b09
7
8 app-backup/amanda: fix ownership of /etc/amanda/amanda-security.conf
9
10 Fixes: https://bugs.gentoo.org/637332
11 Package-Manager: Portage-2.3.8, Repoman-2.3.3
12 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
13
14 app-backup/amanda/amanda-3.5-r1.ebuild | 9 +++++++++
15 1 file changed, 9 insertions(+)
16
17 diff --git a/app-backup/amanda/amanda-3.5-r1.ebuild b/app-backup/amanda/amanda-3.5-r1.ebuild
18 index 673a7b70dae..bbc32ece405 100644
19 --- a/app-backup/amanda/amanda-3.5-r1.ebuild
20 +++ b/app-backup/amanda/amanda-3.5-r1.ebuild
21 @@ -481,4 +481,13 @@ amanda_permissions_fix() {
22 chown root:${AMANDA_GROUP_NAME} "${root}"/${i} || die
23 chmod u=srwx,g=rx,o= "${root}"/${i} || die
24 done
25 +
26 + # amanda-security.conf is a config file with similar requirements:
27 + # writable only by root
28 + # world-readable
29 + # 3.3.9: introduced in /etc/amanda-security.conf
30 + # 3.4.2: moved to /etc/amanda/amanda-security.conf
31 + f=/etc/amanda/amanda-security.conf
32 + chown root:root "${root}""${f}" || die
33 + chmod u=rw,go=r "${root}""${f}" || die
34 }