init-storage: Set SELinux context for /var
This label needs to be applied before the subvolume is mounted initially to prevent AVC denials.master
parent
a84df60b4a
commit
cb7e0a5819
|
@ -27,6 +27,7 @@ format_dev() {
|
|||
|
||||
mount "${dev}" "${tmpdir}" || exit
|
||||
btrfs subvolume create "${tmpdir}"/var || exit
|
||||
chcon -t var_t "${tmpdir}"/var || exit
|
||||
umount "${dev}" || exit
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue