init: add interface to setsched on init

Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
Kenton Groombridge 2021-11-13 15:07:15 -05:00
parent 00d16e45f8
commit 43c778e646

View File

@ -922,6 +922,24 @@ interface(`init_sigchld',`
allow $1 init_t:process sigchld;
')
########################################
## <summary>
## Set the nice level of init.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`init_setsched',`
gen_require(`
type init_t;
')
allow $1 init_t:process setsched;
')
########################################
## <summary>
## Connect to init with a unix socket.