From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B279139694 for ; Thu, 25 May 2017 16:44:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A126221C22E; Thu, 25 May 2017 16:43:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7EEEC21C22E for ; Thu, 25 May 2017 16:43:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC9843416AB for ; Thu, 25 May 2017 16:43:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA092746D for ; Thu, 25 May 2017 16:43:31 +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: <1495729949.a6327618acb0e35b2290809b402afc12685a35ea.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/roles/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/roles/staff.te policy/modules/roles/sysadm.te policy/modules/roles/unprivuser.te X-VCS-Directories: policy/modules/roles/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: a6327618acb0e35b2290809b402afc12685a35ea X-VCS-Branch: master Date: Thu, 25 May 2017 16:43:31 +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: 895b14ed-4c21-459d-bfe7-4a266467166a X-Archives-Hash: bd575186deec1f09a97a0dac86ee52cd commit: a6327618acb0e35b2290809b402afc12685a35ea Author: Guido Trentalancia trentalancia net> AuthorDate: Sat May 13 21:15:27 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu May 25 16:32:29 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a6327618 base: role changes for the new libmtp module This is the base part of the policy needed to support libmtp (an Initiator implementation of the Media Transfer Protocol). Signed-off-by: Guido Trentalancia policy/modules/roles/staff.te | 4 ++++ policy/modules/roles/sysadm.te | 4 ++++ policy/modules/roles/unprivuser.te | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/policy/modules/roles/staff.te b/policy/modules/roles/staff.te index 8971a209..4614f3e6 100644 --- a/policy/modules/roles/staff.te +++ b/policy/modules/roles/staff.te @@ -125,6 +125,10 @@ ifndef(`distro_redhat',` ') optional_policy(` + libmtp_role(staff_r, staff_t) + ') + + optional_policy(` lockdev_role(staff_r, staff_t) ') diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te index 13149a4c..bff6e59c 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te @@ -551,6 +551,10 @@ optional_policy(` ') optional_policy(` + libmtp_role(sysadm_r, sysadm_t) +') + +optional_policy(` libs_run_ldconfig(sysadm_t, sysadm_r) ') diff --git a/policy/modules/roles/unprivuser.te b/policy/modules/roles/unprivuser.te index b040b4ab..f6be7db2 100644 --- a/policy/modules/roles/unprivuser.te +++ b/policy/modules/roles/unprivuser.te @@ -98,6 +98,10 @@ ifndef(`distro_redhat',` ') optional_policy(` + libmtp_role(user_r, user_t) + ') + + optional_policy(` lockdev_role(user_r, user_t) ')