Merge pull request #240 from bauen1/allow-users-to-use-systemd-run
This commit is contained in:
commit
4a3cf58a8c
|
@ -24,6 +24,7 @@ template(`systemd_role_template',`
|
||||||
gen_require(`
|
gen_require(`
|
||||||
attribute systemd_user_session_type, systemd_log_parse_env_type;
|
attribute systemd_user_session_type, systemd_log_parse_env_type;
|
||||||
type systemd_user_runtime_t, systemd_user_runtime_notify_t;
|
type systemd_user_runtime_t, systemd_user_runtime_notify_t;
|
||||||
|
type systemd_run_exec_t;
|
||||||
')
|
')
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
@ -58,6 +59,8 @@ template(`systemd_role_template',`
|
||||||
|
|
||||||
# Allow using file descriptors for user environment generators
|
# Allow using file descriptors for user environment generators
|
||||||
allow $3 $1_systemd_t:fd use;
|
allow $3 $1_systemd_t:fd use;
|
||||||
|
|
||||||
|
can_exec($3, systemd_run_exec_t)
|
||||||
')
|
')
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
|
Loading…
Reference in New Issue