Skip to contentSkip to conversation

dmesg: Grant read access to /usr/share/terminfo

PATCH New Luis Ressel 2 participants 2 messages Nov 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(+)
policy/modules/admin/dmesg.te +1 -0
index eb559001..09b46beb 100644
@@ -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)
Signature · 1 line
2.15.0
#1 lore raw

PATCH 1/1 dmesg: Grant read access to /usr/share/terminfo

Quoted 11 lines · Luis Ressel via refpolicy

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(+)
policy/modules/admin/dmesg.te +0 -0
index eb559001..09b46beb 100644

policy/modules/admin/dmesg.te term_dontaudit_use_console(dmesg_t) · line 44

Quoted 7 lines
policy/modules/admin/dmesg.te +1 -0
@@ -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.

Signature · 1 line
Chris PeBenito