All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] Allow init to execute shutdown
@ 2014-06-04 12:32 Luis Ressel
  2014-06-09 15:00 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Ressel @ 2014-06-04 12:32 UTC (permalink / raw)
  To: refpolicy

In many inittabs, there's a line like
"ca:12345:ctrlaltdel:/sbin/shutdown -h now" which triggers a shutdown or
a reboot on Ctrl+Alt+Del.
---
 policy/modules/system/init.te | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
index b45b540..dd3179e 100644
--- a/policy/modules/system/init.te
+++ b/policy/modules/system/init.te
@@ -213,6 +213,10 @@ optional_policy(`
 ')
 
 optional_policy(`
+	shutdown_domtrans(init_t)
+')
+
+optional_policy(`
 	sssd_stream_connect(init_t)
 ')
 
-- 
2.0.0

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

end of thread, other threads:[~2014-06-09 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 12:32 [refpolicy] [PATCH] Allow init to execute shutdown Luis Ressel
2014-06-09 15:00 ` Christopher J. PeBenito

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.