From a573ef35afc5dd7f5ed94dc47fe770ebd0598a6d Mon Sep 17 00:00:00 2001 From: bauen1 Date: Sat, 1 Feb 2020 21:53:36 +0100 Subject: [PATCH] udev: run consolesetup --- policy/modules/apps/loadkeys.te | 6 ++++++ policy/modules/system/udev.te | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/policy/modules/apps/loadkeys.te b/policy/modules/apps/loadkeys.te index 1976e2cbf..5c3b18d58 100644 --- a/policy/modules/apps/loadkeys.te +++ b/policy/modules/apps/loadkeys.te @@ -48,6 +48,12 @@ miscfiles_read_localization(loadkeys_t) userdom_use_user_ttys(loadkeys_t) userdom_list_user_home_content(loadkeys_t) +ifdef(`distro_debian',` + optional_policy(` + consolesetup_read_conf(loadkeys_t) + ') +') + optional_policy(` keyboardd_read_pipes(loadkeys_t) ') diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te index 3fce6c743..fb18e16d9 100644 --- a/policy/modules/system/udev.te +++ b/policy/modules/system/udev.te @@ -215,6 +215,12 @@ ifdef(`distro_debian',` avahi_setattr_pid_dirs(udev_t) avahi_filetrans_pid(udev_t, dir, "avahi-daemon") ') + + optional_policy(` + consolesetup_exec_conf(udev_t) + consolesetup_manage_runtime(udev_t) + consolesetup_pid_filetrans_runtime(udev_t) + ') ') ifdef(`distro_gentoo',`