lvm-activation-generator also needs to execute lvm

lvm will also try to read localization.

Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
bauen1 2020-05-27 11:29:26 +02:00
parent ee323d3b9a
commit 7eae84a8b4
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
1 changed files with 4 additions and 0 deletions

View File

@ -361,9 +361,13 @@ systemd_log_parse_environment(systemd_gpt_generator_t)
# lvm2 activation generator local policy
#
allow systemd_lvm2_generator_t self:fifo_file rw_fifo_file_perms;
optional_policy(`
lvm_exec(systemd_lvm2_generator_t)
lvm_map_config(systemd_lvm2_generator_t)
lvm_read_config(systemd_lvm2_generator_t)
miscfiles_read_localization(systemd_lvm2_generator_t)
')
#######################################