diff --git a/policy/modules/contrib/virt.te b/policy/modules/contrib/virt.te index 6a7ab05fcb..b634ab90ac 100644 --- a/policy/modules/contrib/virt.te +++ b/policy/modules/contrib/virt.te @@ -2334,11 +2334,16 @@ manage_files_pattern(virtstoraged_t, virt_var_lib_t, virt_var_lib_t) manage_lnk_files_pattern(virtstoraged_t, virt_etc_rw_t, virt_etc_rw_t) +kernel_get_sysvipc_info(virtstoraged_t) kernel_io_uring_use(virtstoraged_t) corecmd_exec_bin(virtstoraged_t) fs_getattr_all_fs(virtstoraged_t) +fs_getattr_configfs_dirs(virtstoraged_t) + +storage_raw_read_fixed_disk(virtstoraged_t) +storage_raw_write_fixed_disk(virtstoraged_t) userdom_read_user_home_content_files(virtstoraged_t) @@ -2346,10 +2351,18 @@ optional_policy(` dnsmasq_filetrans_named_content_fromdir(virtstoraged_t, virtstoraged_var_run_t) ') +optional_policy(` + fstools_domtrans(virtstoraged_t) +') + optional_policy(` lvm_domtrans(virtstoraged_t) ') +optional_policy(` + udev_domtrans(virtstoraged_t) +') + ####################################### # # virtvboxd local policy diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if index ddf32d8c85..5a874c341f 100644 --- a/policy/modules/kernel/filesystem.if +++ b/policy/modules/kernel/filesystem.if @@ -2062,6 +2062,24 @@ interface(`fs_dontaudit_write_configfs_dirs',` dontaudit $1 configfs_t:dir write; ') +####################################### +## +## Getattr dirs on a configfs filesystem. +## +## +## +## Domain allowed access. +## +## +# +interface(`fs_getattr_configfs_dirs',` + gen_require(` + type configfs_t; + ') + + allow $1 configfs_t:dir getattr; +') + ####################################### ## ## Read dirs