aboutsummaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@ieee.org>2024-10-22 10:39:21 -0400
committerJason Zaman <perfinion@gentoo.org>2024-12-14 16:16:11 -0800
commit10d9f1873803b2ca7433322690e417c8ac035a5f (patch)
tree57c131420222a778d1f8991d2d42c846d4b3e387 /policy
parentfiles context : few fixes for merged-usr distro_gentoo (diff)
downloadhardened-refpolicy-10d9f1873803b2ca7433322690e417c8ac035a5f.tar.gz
hardened-refpolicy-10d9f1873803b2ca7433322690e417c8ac035a5f.tar.bz2
hardened-refpolicy-10d9f1873803b2ca7433322690e417c8ac035a5f.zip
Revert "systemd: Fix systemd_write_notify_socket()."
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'policy')
-rw-r--r--policy/modules/system/init.if4
-rw-r--r--policy/modules/system/systemd.if2
2 files changed, 3 insertions, 3 deletions
diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if
index 94d286c2..0141698a 100644
--- a/policy/modules/system/init.if
+++ b/policy/modules/system/init.if
@@ -1020,12 +1020,12 @@ interface(`init_unix_stream_socket_connectto',`
## </summary>
## </param>
#
-interface(`init_unix_dgram_socket_sendto',`
+interface(`init_unix_stream_socket_sendto',`
gen_require(`
type init_t;
')
- allow $1 init_t:unix_dgram_socket sendto;
+ allow $1 init_t:unix_stream_socket sendto;
')
########################################
diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
index 38984fb6..e62e8344 100644
--- a/policy/modules/system/systemd.if
+++ b/policy/modules/system/systemd.if
@@ -323,7 +323,7 @@ interface(`systemd_write_notify_socket',`
')
init_list_runtime($1)
- init_unix_dgram_socket_sendto($1)
+ init_unix_stream_socket_sendto($1)
allow $1 systemd_runtime_notify_t:sock_file write_sock_file_perms;
')