All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] system_r transition in _admin interfaces
@ 2015-05-12 16:19 Jason Zaman
  2015-05-12 16:31 ` Dominick Grift
  2015-05-12 17:04 ` Christopher J. PeBenito
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Zaman @ 2015-05-12 16:19 UTC (permalink / raw)
  To: refpolicy

Hi all,

In basically all of the foo_admin() interfaces there are the following
exact same rules:

init_labeled_script_domtrans($1, ntpd_initrc_exec_t)
domain_system_change_exemption($1)
role_transition $2 ntpd_initrc_exec_t system_r;
allow $2 system_r;

Do these even work anymore? They dont work on OpenRC and as far as I
know SystemD doesnt work like that either. I dont really like having the
system_r transition around if it doesnt even work as it should.

>From what I understand they are used so that if another role wants to
admin the service you just add ntp_admin(ntpadm_t, ntpadm_r) and it will
then be allowed to start/stop ntp.

If I pull those lines out of all the _admin interfaces and make a
separate interface that calls those, would the patch be accepted? Then
inside that interface it would be easy to ifdef systemd, or ifdef
openrc or whatever kind of init is being used and needs special rules.

Thoughts?
-- Jason

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-12 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12 16:19 [refpolicy] system_r transition in _admin interfaces Jason Zaman
2015-05-12 16:31 ` Dominick Grift
2015-05-12 16:46   ` Jason Zaman
2015-05-12 17:04 ` Christopher J. PeBenito
2015-05-12 18:04   ` Jason Zaman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.