From: pebenito@ieee.org (Chris PeBenito) Date: Mon, 22 May 2017 20:21:40 -0400 Subject: [refpolicy] [PATCH 1/2] base: role changes for the new libmtp module In-Reply-To: <1494710127.22209.2.camel@trentalancia.net> References: <1494710127.22209.2.camel@trentalancia.net> Message-ID: To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 05/13/2017 05:15 PM, Guido Trentalancia via refpolicy wrote: > 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(+) > > --- a/policy/modules/roles/staff.te 2017-02-04 19:30:19.000000000 +0100 > +++ b/policy/modules/roles/staff.te 2017-05-13 21:23:35.078046056 +0200 > @@ -125,6 +125,10 @@ ifndef(`distro_redhat',` > ') > > optional_policy(` > + libmtp_role(staff_r, staff_t) > + ') > + > + optional_policy(` > lockdev_role(staff_r, staff_t) > ') > > --- a/policy/modules/roles/sysadm.te 2017-02-04 19:30:20.000000000 +0100 > +++ b/policy/modules/roles/sysadm.te 2017-05-13 21:24:59.087045713 +0200 > @@ -553,6 +553,10 @@ optional_policy(` > ') > > optional_policy(` > + libmtp_role(sysadm_r, sysadm_t) > +') > + > +optional_policy(` > libs_run_ldconfig(sysadm_t, sysadm_r) > ') > > --- a/policy/modules/roles/unprivuser.te 2017-02-04 19:30:19.000000000 +0100 > +++ b/policy/modules/roles/unprivuser.te 2017-05-13 21:22:22.837046352 +0200 > @@ -98,6 +98,10 @@ ifndef(`distro_redhat',` > ') > > optional_policy(` > + libmtp_role(user_r, user_t) > + ') > + > + optional_policy(` > lockdev_role(user_r, user_t) > ') Merged. -- Chris PeBenito