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 6A986138D1A for ; Mon, 13 Jul 2015 21:45:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 833C3E08CE; Mon, 13 Jul 2015 21:45:41 +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 A02DDE07E8 for ; Mon, 13 Jul 2015 21:45:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81734340917 for ; Mon, 13 Jul 2015 21:45:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D048902 for ; Mon, 13 Jul 2015 21:45:38 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1436823814.0f47d840e764a60842d65f2e641283936946d2c7.perfinion@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/vnstatd.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0f47d840e764a60842d65f2e641283936946d2c7 X-VCS-Branch: master Date: Mon, 13 Jul 2015 21:45:38 +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: 9d9277e1-a5d0-4667-a910-828dd80c6de7 X-Archives-Hash: 5632fdba6f3ccb58ce66d576658ffb8f Message-ID: <20150713214538.BSb3h3PEOADtkeoSY7kB-ARXgssKVQmB6wM2k-oj4hg@z> commit: 0f47d840e764a60842d65f2e641283936946d2c7 Author: Jason Zaman perfinion com> AuthorDate: Sat Jul 11 19:44:51 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Jul 13 21:43:34 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0f47d840 vnstatd: allow user terminals and sysfs needs to read sysfs to enumerate the network interfaces to update and needs to use user terminals to output. type=AVC msg=audit(1436643487.611:833572): avc: denied { read } for pid=13632 comm="vnstat" name="bond0" dev="sysfs" ino=18625 scontext=staff_u:sysadm_r:vnstat_t tcontext=system_u:object_r:sysfs_t tclass=lnk_file type=AVC msg=audit(1436643691.358:833596): avc: denied { read write } for pid=13802 comm="vnstat" path="/dev/pts/5" dev="devpts" ino=8 scontext=staff_u:sysadm_r:vnstat_t tcontext=staff_u:object_r:user_devpts_t tclass=chr_file policy/modules/contrib/vnstatd.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/contrib/vnstatd.te b/policy/modules/contrib/vnstatd.te index 79351c4..9630fe9 100644 --- a/policy/modules/contrib/vnstatd.te +++ b/policy/modules/contrib/vnstatd.te @@ -84,3 +84,8 @@ miscfiles_read_localization(vnstat_t) optional_policy(` cron_system_entry(vnstat_t, vnstat_exec_t) ') + +ifdef(`distro_gentoo',` + dev_read_sysfs(vnstat_t) + userdom_use_user_terminals(vnstat_t) +')