From 4be99793a0848a4659186e452f737e733062b019 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Mon, 5 Dec 2011 15:41:03 -0500 Subject: [PATCH] Label /etc/locale.conf correctly --- policy/modules/system/miscfiles.fc | 1 + policy/modules/system/miscfiles.if | 1 + 2 files changed, 2 insertions(+) diff --git a/policy/modules/system/miscfiles.fc b/policy/modules/system/miscfiles.fc index ec1f0e8a..88fc786b 100644 --- a/policy/modules/system/miscfiles.fc +++ b/policy/modules/system/miscfiles.fc @@ -11,6 +11,7 @@ ifdef(`distro_gentoo',` /etc/avahi/etc/localtime -- gen_context(system_u:object_r:locale_t,s0) /etc/httpd/alias(/.*)? gen_context(system_u:object_r:cert_t,s0) /etc/localtime -- gen_context(system_u:object_r:locale_t,s0) +/etc/locale.conf -- gen_context(system_u:object_r:locale_t,s0) /etc/pki(/.*)? gen_context(system_u:object_r:cert_t,s0) /etc/timezone -- gen_context(system_u:object_r:locale_t,s0) diff --git a/policy/modules/system/miscfiles.if b/policy/modules/system/miscfiles.if index 38de7a80..b2d74f7d 100644 --- a/policy/modules/system/miscfiles.if +++ b/policy/modules/system/miscfiles.if @@ -811,6 +811,7 @@ interface(`miscfiles_filetrans_named_content',` ') files_etc_filetrans($1, locale_t, file, "localtime") + files_etc_filetrans($1, locale_t, file, "locale.conf") files_var_filetrans($1, man_t, dir, "man") files_etc_filetrans($1, locale_t, file, "timezone") files_etc_filetrans($1, locale_t, file, "clock") -- 2.47.3