2022-01-28 15:57:18 +01:00
|
|
|
commit fc0e3304732a9aaff1487833342d5fc8ea26ce04
|
|
|
|
Author: Ludwig Nussel <ludwig.nussel@suse.de>
|
|
|
|
Date: Fri Aug 6 15:11:23 2021 +0200
|
2021-08-10 11:08:23 +02:00
|
|
|
|
2022-01-28 15:57:18 +01:00
|
|
|
selinux: allow login to read motd file
|
2021-08-10 11:08:23 +02:00
|
|
|
|
2022-06-10 13:54:30 +02:00
|
|
|
Index: cockpit/selinux/cockpit.te
|
|
|
|
===================================================================
|
|
|
|
--- cockpit.orig/selinux/cockpit.te
|
|
|
|
+++ cockpit/selinux/cockpit.te
|
2023-06-02 16:08:12 +02:00
|
|
|
@@ -202,3 +202,11 @@ optional_policy(`
|
|
|
|
optional_policy(`
|
|
|
|
gnome_exec_keyringd(cockpit_session_t)
|
2021-08-10 11:08:23 +02:00
|
|
|
')
|
|
|
|
+
|
|
|
|
+# login may read motd file through pam
|
|
|
|
+optional_policy(`
|
|
|
|
+ gen_require(`
|
|
|
|
+ type local_login_t;
|
|
|
|
+ ')
|
|
|
|
+ cockpit_read_pid_files(local_login_t)
|
|
|
|
+')
|