commit:     37d28f0c2223e9560fc7e868896f12daa96fac67
Author:     Rahul Sandhu <rahul <AT> sandhuservices <DOT> dev>
AuthorDate: Wed Dec  4 21:35:08 2024 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Dec 15 00:19:42 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=37d28f0c

systemd_stream_connect_homed: make use of stream_connect_pattern

Signed-off-by: Rahul Sandhu <rahul <AT> sandhuservices.dev>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 policy/modules/system/systemd.if | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
index 1ddc9fba5..ed3fda830 100644
--- a/policy/modules/system/systemd.if
+++ b/policy/modules/system/systemd.if
@@ -1152,7 +1152,7 @@ interface(`systemd_stream_connect_homed',`
                type systemd_homed_t;
        ')
 
-       allow $1 systemd_homed_t:unix_stream_socket connectto;
+       stream_connect_pattern($1, systemd_userdbd_runtime_t, 
systemd_userdbd_runtime_t, systemd_homed_t)
 ')
 
 ######################################

Reply via email to