1 |
commit: f7e5d1a892569f1f9adb0df63eb3965340763a5e |
2 |
Author: Kenton Groombridge <me <AT> concord <DOT> sh> |
3 |
AuthorDate: Tue Jan 11 19:59:59 2022 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 01:15:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f7e5d1a8 |
7 |
|
8 |
systemd: allow systemd user managers to execute user bin files |
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 | 2 ++ |
14 |
1 file changed, 2 insertions(+) |
15 |
|
16 |
diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if |
17 |
index 975623f5..4906767a 100644 |
18 |
--- a/policy/modules/system/systemd.if |
19 |
+++ b/policy/modules/system/systemd.if |
20 |
@@ -126,6 +126,8 @@ template(`systemd_role_template',` |
21 |
dbus_spec_session_bus_client($1, $1_systemd_t) |
22 |
dbus_connect_spec_session_bus($1, $1_systemd_t) |
23 |
|
24 |
+ userdom_exec_user_bin_files($1_systemd_t) |
25 |
+ |
26 |
# userdomain rules |
27 |
allow $3 $1_systemd_t:process signal; |
28 |
allow $3 $1_systemd_t:unix_stream_socket rw_stream_socket_perms; |