diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0040-policy-modules-system-systemd-allow-systemd-logind-t.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0040-policy-modules-system-systemd-allow-systemd-logind-t.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0040-policy-modules-system-systemd-allow-systemd-logind-t.patch b/recipes-security/refpolicy/refpolicy/0040-policy-modules-system-systemd-allow-systemd-logind-t.patch new file mode 100644 index 0000000..4322590 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0040-policy-modules-system-systemd-allow-systemd-logind-t.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 1b8a639bfdce84c9b39cd9e89b6da4c1d06cc7ab Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Sun, 4 Feb 2024 19:40:32 +0800 | ||
4 | Subject: [PATCH] policy/modules/system/systemd: allow systemd-logind to | ||
5 | inherit local login file descriptors | ||
6 | |||
7 | Fix reboot timeout error: | ||
8 | $ reboot | ||
9 | Failed to set wall message, ignoring: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms) | ||
10 | Call to Reboot failed: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms) | ||
11 | |||
12 | avc: denied { use } for pid=287 comm="systemd-logind" | ||
13 | path="anon_inode:[pidfd]" dev="anon_inodefs" ino=1044 | ||
14 | scontext=system_u:system_r:systemd_logind_t | ||
15 | tcontext=system_u:system_r:local_login_t tclass=fd permissive=0 | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | |||
19 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
20 | --- | ||
21 | policy/modules/system/systemd.te | 1 + | ||
22 | 1 file changed, 1 insertion(+) | ||
23 | |||
24 | diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te | ||
25 | index ffce3c0e8..03aeb8515 100644 | ||
26 | --- a/policy/modules/system/systemd.te | ||
27 | +++ b/policy/modules/system/systemd.te | ||
28 | @@ -973,6 +973,7 @@ init_stop_system(systemd_logind_t) | ||
29 | miscfiles_read_localization(systemd_logind_t) | ||
30 | |||
31 | locallogin_read_state(systemd_logind_t) | ||
32 | +locallogin_use_fds(systemd_logind_t) | ||
33 | |||
34 | seutil_libselinux_linked(systemd_logind_t) | ||
35 | seutil_read_default_contexts(systemd_logind_t) | ||
36 | -- | ||
37 | 2.25.1 | ||
38 | |||