app-backup/amanda: fix ownership of /etc/amanda/amanda-security.conf
authorRobin H. Johnson <robbat2@gentoo.org>
Mon, 13 Nov 2017 20:32:41 +0000 (12:32 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Mon, 13 Nov 2017 20:45:00 +0000 (12:45 -0800)
Fixes: https://bugs.gentoo.org/637332
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
app-backup/amanda/amanda-3.5-r1.ebuild

index 673a7b70daee2fd452dd88c8165cc7bc868f2a69..bbc32ece405dd7aafe687bda162d2eb3a526b5d3 100644 (file)
@@ -481,4 +481,13 @@ amanda_permissions_fix() {
                chown root:${AMANDA_GROUP_NAME} "${root}"/${i} || die
                chmod u=srwx,g=rx,o= "${root}"/${i} || die
        done
+
+       # amanda-security.conf is a config file with similar requirements:
+       # writable only by root
+       # world-readable
+       # 3.3.9: introduced in /etc/amanda-security.conf
+       # 3.4.2: moved to /etc/amanda/amanda-security.conf
+       f=/etc/amanda/amanda-security.conf
+       chown root:root "${root}""${f}" || die
+       chmod u=rw,go=r "${root}""${f}" || die
 }