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 E6415138A2F for ; Mon, 25 Aug 2014 17:16:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D94DCE0838; Mon, 25 Aug 2014 17:16:26 +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 2DFA8E0833 for ; Mon, 25 Aug 2014 17:16:25 +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 81224340083 for ; Mon, 25 Aug 2014 17:16:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 261682DB9 for ; Mon, 25 Aug 2014 17:16:23 +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: <1408734319.1df21420237c54a402798d9cff437c32017c714e.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:perfinion commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 1df21420237c54a402798d9cff437c32017c714e X-VCS-Branch: perfinion Date: Mon, 25 Aug 2014 17:16:23 +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: 099e6b55-8a7c-4196-856a-cbb431f8756b X-Archives-Hash: a52b9f84db19652cf21b1ea47ed90391 commit: 1df21420237c54a402798d9cff437c32017c714e Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 22 19:05:19 2014 +0000 Commit: Jason Zaman perfinion com> CommitDate: Fri Aug 22 19:05:19 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=1df21420 Allow sysadmins to interact with kernel (for instance for lsusb command) --- policy/modules/system/userdomain.if | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index 5b26aef..78cb3ad 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -1245,6 +1245,8 @@ template(`userdom_admin_user_template',` ifdef(`distro_gentoo',` # Grant block_suspend capability2 to administrators, this annoys the heck out of me allow $1_t self:capability2 { block_suspend }; + # Allow admins to interact with kernel, for instance using lsusb command + allow $1 self:netlink_kobject_uevent_socket create_socket_perms; # Moved out of files_relabel_non_auth_files as it cannot be used in tunable_policy otherwise seutil_relabelto_bin_policy($1_t) ')