Skip to contentSkip to conversation

Allow loadkeys to read usr_t files

PATCH New Nicolas Iooss 1 participant 1 message Sep 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow loadkeys to read usr_t files

loadeys loads a keymap from files in /usr.
Debian console-data package installs keymaps in /usr/share/keymaps [1]. Arch Linux kbd package installs keymaps in /usr/share/kbd/keymaps [2].

[1] https://packages.debian.org/sid/all/console-data/filelist
[2] https://www.archlinux.org/packages/core/x86_64/kbd/files/

---
 loadkeys.te | 2 ++
 1 file changed, 2 insertions(+)
loadkeys.te +2 -0
index d2f464375784..72ba702f8c2c 100644
@@ -27,6 +27,8 @@ corecmd_exec_shell(loadkeys_t)
 
 files_read_etc_files(loadkeys_t)
 files_read_etc_runtime_files(loadkeys_t)
+# keymap files are in /usr/share/keymaps or /usr/share/kbd/keymaps
+files_read_usr_files(loadkeys_t)
 
 term_dontaudit_use_console(loadkeys_t)
 term_use_unallocated_ttys(loadkeys_t)
Signature · 1 line
2.1.0