From 955c5c525362769d4046e9a1ba90dc7e73ed9741 Mon Sep 17 00:00:00 2001 From: bauen1 Date: Mon, 27 Jan 2020 11:31:46 +0100 Subject: [PATCH] lvm: create /etc/lvm/archive if it doesn't exist Signed-off-by: bauen1 --- policy/modules/system/lvm.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index 967341f9e..662cbce50 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -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