From b4a9fe913a982cf111fd6d1a67ed72239912c921 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Fri, 16 Jul 2021 09:41:24 -0400 Subject: [PATCH] virt: Move lines. Signed-off-by: Chris PeBenito --- policy/modules/services/virt.te | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/policy/modules/services/virt.te b/policy/modules/services/virt.te index 5e444ecf7..0639e8a62 100644 --- a/policy/modules/services/virt.te +++ b/policy/modules/services/virt.te @@ -499,6 +499,11 @@ manage_dirs_pattern(virtd_t, virt_cache_t, virt_cache_t) manage_files_pattern(virtd_t, virt_cache_t, virt_cache_t) files_var_filetrans(virtd_t, virt_cache_t, { file dir }) +allow virtd_t virt_common_runtime_t:file append_file_perms; +manage_dirs_pattern(virtd_t, virt_common_runtime_t, virt_common_runtime_t) +manage_files_pattern(virtd_t, virt_common_runtime_t, virt_common_runtime_t) +filetrans_pattern(virtd_t, virt_runtime_t, virt_common_runtime_t, dir, "common") + manage_dirs_pattern(virtd_t, virt_content_t, virt_content_t) manage_files_pattern(virtd_t, virt_content_t, virt_content_t) filetrans_pattern(virtd_t, virt_home_t, virt_content_t, dir, "isos") @@ -580,11 +585,6 @@ manage_files_pattern(virtd_t, virt_runtime_t, virt_runtime_t) manage_sock_files_pattern(virtd_t, virt_runtime_t, virt_runtime_t) files_runtime_filetrans(virtd_t, virt_runtime_t, { file dir }) -allow virtd_t virt_common_runtime_t:file append_file_perms; -manage_dirs_pattern(virtd_t, virt_common_runtime_t, virt_common_runtime_t) -manage_files_pattern(virtd_t, virt_common_runtime_t, virt_common_runtime_t) -filetrans_pattern(virtd_t, virt_runtime_t, virt_common_runtime_t, dir, "common") - manage_dirs_pattern(virtd_t, virtd_lxc_runtime_t, virtd_lxc_runtime_t) manage_files_pattern(virtd_t, virtd_lxc_runtime_t, virtd_lxc_runtime_t) filetrans_pattern(virtd_t, virt_runtime_t, virtd_lxc_runtime_t, dir, "lxc")