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 84083138D03 for ; Sat, 11 Jul 2015 19:57:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6498FE0901; Sat, 11 Jul 2015 19:57:22 +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 0862CE0901 for ; Sat, 11 Jul 2015 19:57:21 +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 0F89F340884 for ; Sat, 11 Jul 2015 19:57:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A670761 for ; Sat, 11 Jul 2015 19:57:18 +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: <1436644594.e5345f67796ea3454d2804890dea251852173910.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next 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: e5345f67796ea3454d2804890dea251852173910 X-VCS-Branch: next Date: Sat, 11 Jul 2015 19:57:18 +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: b945e7cb-abce-4b38-8a6e-c107d525e6c0 X-Archives-Hash: 93a58b4c1f615080588716a065ee3216 commit: e5345f67796ea3454d2804890dea251852173910 Author: Jason Zaman perfinion com> AuthorDate: Sat Jul 11 19:44:51 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Jul 11 19:56:34 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e5345f67 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) +')