init: fix systemd boot

Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
bauen1 2020-05-16 22:25:40 +02:00
parent 93beef3ce5
commit 0f4eb2a324
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
2 changed files with 20 additions and 0 deletions

View File

@ -447,6 +447,7 @@ ifdef(`init_systemd',`
logging_relabelto_devlog_sock_files(init_t)
logging_relabel_generic_log_dirs(init_t)
logging_audit_socket_activation(init_t)
logging_use_syslogd_fd(init_t)
# lvm2-activation-generator checks file labels
seutil_read_file_contexts(init_t)

View File

@ -687,6 +687,25 @@ interface(`logging_send_syslog_msg',`
')
')
########################################
## <summary>
## Allow domain to use a file descriptor
## from syslogd.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`logging_use_syslogd_fd', `
gen_require(`
type syslogd_t;
')
allow $1 syslogd_t:fd use;
')
########################################
## <summary>
## Allow domain to relabelto devlog sock_files