2017-04-29 18:17:53

by guido

[permalink] [raw]
Subject: [refpolicy] [PATCH 5/7] loadkeys: use init fds (system bootup)

Update the loadkeys module so that it can use init file descriptors (to
print out messages during boot).

Signed-off-by: Guido Trentalancia <[email protected]>
---
policy/modules/contrib/loadkeys.te | 2 ++
1 file changed, 2 insertions(+)

--- a/policy/modules/contrib/loadkeys.te 2017-02-04 19:30:20.000000000 +0100
+++ b/policy/modules/contrib/loadkeys.te 2017-04-29 17:40:49.932144517 +0200
@@ -23,6 +23,8 @@ allow loadkeys_t self:unix_stream_socket

kernel_read_system_state(loadkeys_t)

+init_use_fds(loadkeys_t)
+
corecmd_exec_bin(loadkeys_t)
corecmd_exec_shell(loadkeys_t)