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 7E59F138D03 for ; Sat, 11 Jul 2015 19:55:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06BA4E08D5; Sat, 11 Jul 2015 19:55:29 +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 96735E08D5 for ; Sat, 11 Jul 2015 19:55:28 +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 63F88340873 for ; Sat, 11 Jul 2015 19:55:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24EDA66A for ; Sat, 11 Jul 2015 19:55:25 +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: <1436644460.719bb6fcfab49d6630c0b893ccfe0337b9866e74.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: 719bb6fcfab49d6630c0b893ccfe0337b9866e74 X-VCS-Branch: next Date: Sat, 11 Jul 2015 19:55:25 +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: 5a9cc870-eeb6-4f9a-b75c-5a2dbc2d9379 X-Archives-Hash: 5d799acb352d90b235d5b5ec9645f622 commit: 719bb6fcfab49d6630c0b893ccfe0337b9866e74 Author: Jason Zaman perfinion com> AuthorDate: Sat Jul 11 19:44:51 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Jul 11 19:54:20 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=719bb6fc 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) +')