From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A33C1396D9 for ; Mon, 13 Nov 2017 20:45:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8033EE1059; Mon, 13 Nov 2017 20:45:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 605AAE1059 for ; Mon, 13 Nov 2017 20:45:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7A72233D3CE for ; Mon, 13 Nov 2017 20:45:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 107879AE5 for ; Mon, 13 Nov 2017 20:45:15 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1510605900.95ee4b091e3c6e5e1db342a57b6fdee53b095e8c.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/amanda/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-backup/amanda/amanda-3.5-r1.ebuild X-VCS-Directories: app-backup/amanda/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 95ee4b091e3c6e5e1db342a57b6fdee53b095e8c X-VCS-Branch: master Date: Mon, 13 Nov 2017 20:45:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: baf576f4-73d0-490a-9c8d-3c3022f9e4f6 X-Archives-Hash: 138d7ee177ea340ce2ce11e5570c04bb commit: 95ee4b091e3c6e5e1db342a57b6fdee53b095e8c Author: Robin H. Johnson gentoo org> AuthorDate: Mon Nov 13 20:32:41 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Nov 13 20:45:00 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95ee4b09 app-backup/amanda: fix ownership of /etc/amanda/amanda-security.conf Fixes: https://bugs.gentoo.org/637332 Package-Manager: Portage-2.3.8, Repoman-2.3.3 Signed-off-by: Robin H. Johnson gentoo.org> app-backup/amanda/amanda-3.5-r1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app-backup/amanda/amanda-3.5-r1.ebuild b/app-backup/amanda/amanda-3.5-r1.ebuild index 673a7b70dae..bbc32ece405 100644 --- a/app-backup/amanda/amanda-3.5-r1.ebuild +++ b/app-backup/amanda/amanda-3.5-r1.ebuild @@ -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 }