diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index 2f66eb0bb..6be74d61f 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -179,6 +179,8 @@ allow lvm_t self:fifo_file manage_fifo_file_perms; allow lvm_t self:unix_dgram_socket create_socket_perms; allow lvm_t self:netlink_kobject_uevent_socket create_socket_perms; allow lvm_t self:sem create_sem_perms; +# gt: the following is for sockets in the AF_ALG namespace (userspace interface to the kernel Crypto API) +allow lvm_t self:socket create_stream_socket_perms; allow lvm_t self:unix_stream_socket { connectto create_stream_socket_perms }; allow lvm_t clvmd_t:unix_stream_socket { connectto rw_socket_perms }; @@ -253,6 +255,8 @@ dev_dontaudit_getattr_generic_chr_files(lvm_t) dev_dontaudit_getattr_generic_blk_files(lvm_t) dev_dontaudit_getattr_generic_pipes(lvm_t) dev_create_generic_dirs(lvm_t) +# the following one is needed by cryptsetup +dev_getattr_fs(lvm_t) domain_use_interactive_fds(lvm_t) domain_read_all_domains_state(lvm_t)