selinux-refpolicy/policy/modules/roles
Sven Vermeulen 681831da06 system admin needs to use mdadm, but type is not allowed
After a quick discussion with dominique, new attempt due to two issues:

1. No need (or even forbidden) to have "role $1 types foo_exec_t"
2. Suggestion to use the raid_run_mdadm name instead of raid_mdadm_role. The
   idea here is to use raid_mdadm_role for prefixed domains (cfr. screen)
   whereas raid_run_mdadm is to transition and run into a specific domain

Without wanting to (re?)start any discussion on prefixed versus non-prefixed
domains, such a naming convention could help us to keep the reference policy
cleaner (and naming conventions easy).

Also, refpolicy InterfaceNaming document only talks about run, not role.

So, without much further ado... ;-)

  The system administrator (sysadm_r role) needs to use mdadm, but is not
  allowed to use the mdadm_t type.

  Rather than extend raid_domtrans_mdadm to allow this as well, use a
  raid_mdadm_role (a bit more conform other role usages).

  The other users of raid_domtrans_mdadm are all domains that run in system_r
  role, which does have this type allowed (as per the system/raid.te
  definition), so it wouldn't hurt to use raid_domtrans_mdadm for this.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
2011-05-02 12:54:03 -04:00
..
auditadm.fc trunk: Move user roles into individual modules. 2008-04-29 13:58:34 +00:00
auditadm.if trunk: merge UBAC. 2008-11-05 16:10:46 +00:00
auditadm.te Bump module versions for release. 2010-12-13 09:12:22 -05:00
dbadm.fc Add dbadm, from KaiGai Kohei. 2010-02-08 10:34:08 -05:00
dbadm.if Dbadm updates from KaiGai Kohei. 2010-08-19 08:41:39 -04:00
dbadm.te Dbadm updates from KaiGai Kohei. 2010-08-19 08:41:39 -04:00
guest.fc trunk: 6 patches from dan. 2009-03-31 13:40:59 +00:00
guest.if trunk: whitespace fixes 2009-06-26 14:40:13 +00:00
guest.te Bump module versions for release. 2010-12-13 09:12:22 -05:00
logadm.fc trunk: 6 patches from dan. 2009-03-19 17:56:10 +00:00
logadm.if trunk: whitespace fixes 2009-06-26 14:40:13 +00:00
logadm.te Whitespace change: drop unnecessary blank line at the start of .te files. 2010-06-10 08:16:35 -04:00
metadata.xml trunk: Move user roles into individual modules. 2008-04-29 13:58:34 +00:00
secadm.fc trunk: Move user roles into individual modules. 2008-04-29 13:58:34 +00:00
secadm.if trunk: merge UBAC. 2008-11-05 16:10:46 +00:00
secadm.te Bump module versions for release. 2010-12-13 09:12:22 -05:00
staff.fc trunk: Move user roles into individual modules. 2008-04-29 13:58:34 +00:00
staff.if trunk: merge UBAC. 2008-11-05 16:10:46 +00:00
staff.te Bump module versions for release. 2010-12-13 09:12:22 -05:00
sysadm.fc trunk: Move user roles into individual modules. 2008-04-29 13:58:34 +00:00
sysadm.if trunk: add sysadm_entry_spec_domtrans_to() interface from clip. 2009-01-15 15:07:37 +00:00
sysadm.te system admin needs to use mdadm, but type is not allowed 2011-05-02 12:54:03 -04:00
unprivuser.fc trunk: Move user roles into individual modules. 2008-04-29 13:58:34 +00:00
unprivuser.if trunk: merge UBAC. 2008-11-05 16:10:46 +00:00
unprivuser.te hadoop: update to CDH3 2011-01-05 09:35:40 -05:00
webadm.fc trunk: 5 patches from dan. 2009-04-07 14:09:43 +00:00
webadm.if trunk: 5 patches from dan. 2009-04-07 14:09:43 +00:00
webadm.te Whitespace change: drop unnecessary blank line at the start of .te files. 2010-06-10 08:16:35 -04:00
xguest.fc trunk: 6 patches from dan. 2009-03-31 13:40:59 +00:00
xguest.if trunk: whitespace fixes 2009-06-26 14:40:13 +00:00
xguest.te Whitespace change: drop unnecessary blank line at the start of .te files. 2010-06-10 08:16:35 -04:00