2017-11-18 04:37:11

by Mira Ressel

[permalink] [raw]
Subject: [refpolicy] [PATCH] dmesg: Grant read access to /usr/share/terminfo

To determine whether the $TERM supports colored output, dmesg checks the
terminfo database, which can be either in /etc or /usr/share.
---
policy/modules/admin/dmesg.te | 1 +
1 file changed, 1 insertion(+)

diff --git a/policy/modules/admin/dmesg.te b/policy/modules/admin/dmesg.te
index eb559001..09b46beb 100644
--- a/policy/modules/admin/dmesg.te
+++ b/policy/modules/admin/dmesg.te
@@ -38,6 +38,7 @@ term_dontaudit_use_console(dmesg_t)
domain_use_interactive_fds(dmesg_t)

files_list_etc(dmesg_t)
+files_read_usr_files(dmesg_t)

init_use_fds(dmesg_t)
init_use_script_ptys(dmesg_t)
--
2.15.0


2017-11-18 10:55:28

by Chris PeBenito

[permalink] [raw]
Subject: [refpolicy] [PATCH] dmesg: Grant read access to /usr/share/terminfo

On 11/17/2017 11:37 PM, Luis Ressel via refpolicy wrote:
> To determine whether the $TERM supports colored output, dmesg checks the
> terminfo database, which can be either in /etc or /usr/share.
> ---
> policy/modules/admin/dmesg.te | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/policy/modules/admin/dmesg.te b/policy/modules/admin/dmesg.te
> index eb559001..09b46beb 100644
> --- a/policy/modules/admin/dmesg.te
> +++ b/policy/modules/admin/dmesg.te
> @@ -38,6 +38,7 @@ term_dontaudit_use_console(dmesg_t)
> domain_use_interactive_fds(dmesg_t)
>
> files_list_etc(dmesg_t)
> +files_read_usr_files(dmesg_t)
>
> init_use_fds(dmesg_t)
> init_use_script_ptys(dmesg_t)

Merged.

--
Chris PeBenito