Skip to content

Commit

Permalink
Merge pull request #822 from pebenito/init-systemd-fixes
Browse files Browse the repository at this point in the history
systemd: Fix systemd_write_notify_socket().
  • Loading branch information
pebenito authored Oct 22, 2024
2 parents 7c0f511 + 7f620a5 commit dcd44ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions policy/modules/system/init.if
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,12 @@ interface(`init_unix_stream_socket_connectto',`
## </summary>
## </param>
#
interface(`init_unix_stream_socket_sendto',`
interface(`init_unix_dgram_socket_sendto',`
gen_require(`
type init_t;
')

allow $1 init_t:unix_stream_socket sendto;
allow $1 init_t:unix_dgram_socket sendto;
')

########################################
Expand Down
2 changes: 1 addition & 1 deletion policy/modules/system/systemd.if
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ interface(`systemd_write_notify_socket',`
')

init_list_runtime($1)
init_unix_stream_socket_sendto($1)
init_unix_dgram_socket_sendto($1)
allow $1 systemd_runtime_notify_t:sock_file write_sock_file_perms;
')

Expand Down

0 comments on commit dcd44ff

Please sign in to comment.