Skip to contentSkip to conversation

xserver: Allow xdm_t to map usr_t files

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xserver: Allow xdm_t to map usr_t files

This is required for gtk-based login managers to access gtk's icon cache. IIRC, past discussion on the ML came to the conclusion that adding a new domain for this would be overkill.

---
 policy/modules/services/xserver.te | 1 +
 1 file changed, 1 insertion(+)
policy/modules/services/xserver.te +1 -0
index 36478b640..52eb67e8f 100644
@@ -450,6 +450,7 @@ files_read_etc_runtime_files(xdm_t)
 files_exec_etc_files(xdm_t)
 files_list_mnt(xdm_t)
 # Read /usr/share/terminfo/l/linux and /usr/share/icons/default/index.theme...
+files_map_usr_files(xdm_t)
 files_read_usr_files(xdm_t)
 # Poweroff wants to create the /poweroff file when run from xdm
 files_create_boot_flag(xdm_t)
Signature · 1 line
2.15.0
#1 lore raw

PATCH 1/1 xserver: Allow xdm_t to map usr_t files

Quoted 12 lines · Luis Ressel via refpolicy

This is required for gtk-based login managers to access gtk's icon cache. IIRC, past discussion on the ML came to the conclusion that adding a new domain for this would be overkill.

---
  policy/modules/services/xserver.te | 1 +
  1 file changed, 1 insertion(+)
policy/modules/services/xserver.te +0 -0
index 36478b640..52eb67e8f 100644

policy/modules/services/xserver.te files_read_etc_runtime_files(xdm_t) · line 456

Quoted 7 lines
policy/modules/services/xserver.te +1 -0
@@ -450,6 +450,7 @@ files_read_etc_runtime_files(xdm_t)
  files_exec_etc_files(xdm_t)
  files_list_mnt(xdm_t)
  # Read /usr/share/terminfo/l/linux and /usr/share/icons/default/index.theme...
+files_map_usr_files(xdm_t)
  files_read_usr_files(xdm_t)
  # Poweroff wants to create the /poweroff file when run from xdm
  files_create_boot_flag(xdm_t)

Merged.

Signature · 1 line
Chris PeBenito