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 24CC61381F3 for ; Thu, 18 Apr 2013 19:52:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73244E09F5; Thu, 18 Apr 2013 19:52:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 121D7E09F5 for ; Thu, 18 Apr 2013 19:52:40 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E80AF33DEAE for ; Thu, 18 Apr 2013 19:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7E46FE4306 for ; Thu, 18 Apr 2013 19:52:37 +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: <1366314621.b56b73b412a1a24e6436ed89e044dbe84e9a07f7.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/dmidecode.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: b56b73b412a1a24e6436ed89e044dbe84e9a07f7 X-VCS-Branch: master Date: Thu, 18 Apr 2013 19:52:37 +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: af0b10f5-60c7-4145-b76f-38bb574eeb5b X-Archives-Hash: e6c277024fcd65fd06e0ad725f9577e4 commit: b56b73b412a1a24e6436ed89e044dbe84e9a07f7 Author: Sven Vermeulen siphos be> AuthorDate: Thu Apr 18 19:50:21 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Apr 18 19:50:21 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=b56b73b4 Run dmidecode after newrole or on terminals The dmidecode application needs to use the file descriptors owned by newrole_t when invoked after a newrole (which is common for administrators who first logged on as staff before switching to sysadm_r). Grant this through domain_use_interactive_fds(), allowing output for dmidecode to be displayed on such terminals. --- policy/modules/contrib/dmidecode.te | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/dmidecode.te b/policy/modules/contrib/dmidecode.te index c947c2c..7f30dce 100644 --- a/policy/modules/contrib/dmidecode.te +++ b/policy/modules/contrib/dmidecode.te @@ -30,3 +30,12 @@ files_list_usr(dmidecode_t) locallogin_use_fds(dmidecode_t) userdom_use_user_terminals(dmidecode_t) + +ifdef(`distro_gentoo',` + ########################### + # + # Local policy + # + + domain_use_interactive_fds(dmidecode_t) +')