systemd: Move interface implementation.
This commit is contained in:
parent
6cbaf3240e
commit
ecb4968238
@ -389,6 +389,25 @@ interface(`systemd_manage_all_units',`
|
||||
manage_lnk_files_pattern($1, systemdunit, systemdunit)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Allow domain to read systemd_journal_t files
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`systemd_read_journal_files',`
|
||||
gen_require(`
|
||||
type systemd_journal_t;
|
||||
')
|
||||
|
||||
list_dirs_pattern($1, systemd_journal_t, systemd_journal_t)
|
||||
mmap_read_files_pattern($1, systemd_journal_t, systemd_journal_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Allow domain to create/manage systemd_journal_t files
|
||||
@ -409,25 +428,6 @@ interface(`systemd_manage_journal_files',`
|
||||
allow $1 systemd_journal_t:file map;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Allow domain to read systemd_journal_t files
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`systemd_read_journal_files',`
|
||||
gen_require(`
|
||||
type systemd_journal_t;
|
||||
')
|
||||
|
||||
list_dirs_pattern($1, systemd_journal_t, systemd_journal_t)
|
||||
mmap_read_files_pattern($1, systemd_journal_t, systemd_journal_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Relabel to systemd-journald directory type.
|
||||
|
Loading…
Reference in New Issue
Block a user