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
|
|
|
|
|
|
|
diff --git a/selinux/cockpit.te b/selinux/cockpit.te
|
2022-01-28 15:57:18 +01:00
|
|
|
index 73242aaa1..72db3c1dc 100644
|
2021-08-10 11:08:23 +02:00
|
|
|
--- a/selinux/cockpit.te
|
|
|
|
+++ b/selinux/cockpit.te
|
2022-01-28 15:57:18 +01:00
|
|
|
@@ -181,3 +181,11 @@ optional_policy(`
|
2021-08-10 11:08:23 +02:00
|
|
|
optional_policy(`
|
|
|
|
unconfined_domtrans(cockpit_session_t)
|
|
|
|
')
|
|
|
|
+
|
|
|
|
+# login may read motd file through pam
|
|
|
|
+optional_policy(`
|
|
|
|
+ gen_require(`
|
|
|
|
+ type local_login_t;
|
|
|
|
+ ')
|
|
|
|
+ cockpit_read_pid_files(local_login_t)
|
|
|
|
+')
|