1 |
commit: aa7fdc2ac01b265a8e6233f8846f6ecbac3ddc8c |
2 |
Author: Kenton Groombridge <me <AT> concord <DOT> sh> |
3 |
AuthorDate: Sat Apr 2 19:30:02 2022 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 18:41:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=aa7fdc2a |
7 |
|
8 |
systemd: minor fixes to systemd user domains |
9 |
|
10 |
Signed-off-by: Kenton Groombridge <me <AT> concord.sh> |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
policy/modules/system/systemd.if | 4 ++++ |
14 |
1 file changed, 4 insertions(+) |
15 |
|
16 |
diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if |
17 |
index cc942879..c2b6824b 100644 |
18 |
--- a/policy/modules/system/systemd.if |
19 |
+++ b/policy/modules/system/systemd.if |
20 |
@@ -91,10 +91,14 @@ template(`systemd_role_template',` |
21 |
|
22 |
files_search_home($1_systemd_t) |
23 |
|
24 |
+ fs_getattr_xattr_fs($1_systemd_t) |
25 |
fs_manage_cgroup_files($1_systemd_t) |
26 |
fs_watch_cgroup_files($1_systemd_t) |
27 |
|
28 |
kernel_dontaudit_getattr_proc($1_systemd_t) |
29 |
+ # if systemd exists in the initrd, the journal socket stays labeled kernel_t |
30 |
+ # without this access, user services cannot log to the journal |
31 |
+ kernel_stream_connect($1_systemd_t) |
32 |
|
33 |
selinux_use_status_page($1_systemd_t) |