logging: add interface to start/stop syslog units

Required for example to start/stop systemd-journal-flush.service
which moves the journal storage back and forth between tmpfs and
permanent storage.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
This commit is contained in:
Luca Boccassi 2020-02-19 10:57:21 +00:00
parent 6afabe971f
commit 6e9c1cd187
1 changed files with 18 additions and 0 deletions

View File

@ -427,6 +427,24 @@ interface(`logging_domtrans_syslog',`
') ')
') ')
########################################
## <summary>
## Allow specified domain to start/stop syslog units
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`logging_startstop_syslog',`
gen_require(`
type syslogd_unit_t;
class service { start stop };
')
allow $1 syslogd_unit_t:service { start stop };
')
######################################## ########################################
## <summary> ## <summary>
## Allow specified domain to check status of syslog unit ## Allow specified domain to check status of syslog unit