From 2884cfe4bc2a17ccd71bf1fbed0cff39cca705fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 8 May 2020 19:54:54 +0200 Subject: [PATCH] files/miscfiles: move usr_t filecontext to defining module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Göttsche --- policy/modules/kernel/files.fc | 3 ++- policy/modules/system/miscfiles.fc | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/policy/modules/kernel/files.fc b/policy/modules/kernel/files.fc index 9293eba82..a3993f5cc 100644 --- a/policy/modules/kernel/files.fc +++ b/policy/modules/kernel/files.fc @@ -210,7 +210,8 @@ HOME_ROOT/lost\+found/.* <> /usr/lost\+found -d gen_context(system_u:object_r:lost_found_t,mls_systemhigh) /usr/lost\+found/.* <> -/usr/share/doc(/.*)?/README.* gen_context(system_u:object_r:usr_t,s0) +/usr/share/doc(/.*)?/README.* gen_context(system_u:object_r:usr_t,s0) +/usr/share/docbook2X/xslt/man(/.*)? gen_context(system_u:object_r:usr_t,s0) /usr/tmp -d gen_context(system_u:object_r:tmp_t,s0-mls_systemhigh) /usr/tmp/.* <> diff --git a/policy/modules/system/miscfiles.fc b/policy/modules/system/miscfiles.fc index 2b1369f25..10ece10dc 100644 --- a/policy/modules/system/miscfiles.fc +++ b/policy/modules/system/miscfiles.fc @@ -47,8 +47,6 @@ ifdef(`distro_redhat',` /usr/local/share/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) -/usr/share/docbook2X/xslt/man(/.*)? gen_context(system_u:object_r:usr_t,s0) - /usr/share/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) /usr/share/ghostscript/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) /usr/share/texmf[^/]*/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0)