From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 95E2313888F for ; Sat, 3 Jan 2015 12:21:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29742E0856; Sat, 3 Jan 2015 12:21:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C18A7E0856 for ; Sat, 3 Jan 2015 12:21:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D954233BE44 for ; Sat, 3 Jan 2015 12:21:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E739EC5E for ; Sat, 3 Jan 2015 12:21:50 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1420287654.91bd6c86deef7614809b3d43d9df34f253b998fe.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/dnsmasq.fc X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 91bd6c86deef7614809b3d43d9df34f253b998fe X-VCS-Branch: master Date: Sat, 3 Jan 2015 12:21:50 +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: 7bc065dc-68fd-4f5e-bc51-1764b3d4b06a X-Archives-Hash: 17cff85707f49ad6d029a58077ed0948 commit: 91bd6c86deef7614809b3d43d9df34f253b998fe Author: Sven Vermeulen siphos be> AuthorDate: Sat Jan 3 12:18:20 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat Jan 3 12:20:54 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=91bd6c86 Enable support for DNSSEC The dnsmasq application reads in the trust anchors that are by default in /usr/share/dnsmasq. Considering that these are sort-of configuration files, I'd wager that a dnsmasq administrator might want to have manage rights on this. The dnsmasq application at least needs read access at this location. We could either grant read privileges on usr_t, but that would increase the read privs of dnsmasq unnecessarily, and does not allow the dnsmasq administrator to edit the file. We could create a separate type for this, but then both the dnsmasq_dnssec_t (or whatever it is called) and dnsmasq_etc_t would have the same access privileges associated with it. Hence, we reuse dnsmasq_etc_t. See also bug #531836 at https://bugs.gentoo.org/show_bug.cgi?id=531836 --- policy/modules/contrib/dnsmasq.fc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/contrib/dnsmasq.fc b/policy/modules/contrib/dnsmasq.fc index 6bc891a..8ca133c 100644 --- a/policy/modules/contrib/dnsmasq.fc +++ b/policy/modules/contrib/dnsmasq.fc @@ -12,3 +12,8 @@ /var/run/dnsmasq.* -- gen_context(system_u:object_r:dnsmasq_var_run_t,s0) /var/run/libvirt/network(/.*)? gen_context(system_u:object_r:dnsmasq_var_run_t,s0) + +ifdef(`distro_gentoo',` +# Fix bug 531836 - Needed to support dnssec in dnsmasq +/usr/share/dnsmasq(/.*)? gen_context(system_u:object_r:dnsmasq_etc_t,s0) +')