lvm: create /etc/lvm/archive if it doesn't exist

Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
bauen1 2020-01-27 11:31:46 +01:00
parent 67dfa3651f
commit 955c5c5253
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C

View File

@ -212,6 +212,8 @@ read_files_pattern(lvm_t, lvm_etc_t, lvm_etc_t)
allow lvm_t lvm_etc_t:file map;
read_lnk_files_pattern(lvm_t, lvm_etc_t, lvm_etc_t)
# create /etc/lvm/archive
allow lvm_t lvm_etc_t:dir create_dir_perms;
# Map for vgchange on /etc/lvm/backup/ files
allow lvm_t lvm_metadata_t:file map;
# Write to /etc/lvm, /etc/lvmtab, /etc/lvmtab.d