Skip to content

Commit

Permalink
Merge pull request #717 from dsugar100/use_chat_machined_interface
Browse files Browse the repository at this point in the history
Use interface that already exists.
  • Loading branch information
pebenito authored Oct 9, 2023
2 parents f5eba71 + 12ad93d commit f3865ab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions policy/modules/system/systemd.if
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ template(`systemd_role_template',`
type systemd_user_runtime_t, systemd_user_runtime_notify_t;
type systemd_user_unit_t;
type systemd_user_runtime_unit_t, systemd_user_transient_unit_t;
type systemd_machined_t;
')

#################################
Expand Down Expand Up @@ -151,10 +150,9 @@ template(`systemd_role_template',`
allow $3 systemd_user_runtime_t:sock_file { manage_sock_file_perms relabel_sock_file_perms };

# for "machinectl shell"
allow $1_systemd_t systemd_machined_t:fd use;
allow $3 systemd_machined_t:fd use;
allow $3 systemd_machined_t:dbus send_msg;
allow systemd_machined_t $3:dbus send_msg;
systemd_use_inherited_machined_ptys($1_systemd_t)
systemd_use_inherited_machined_ptys($3)
systemd_dbus_chat_machined($3)

allow $3 systemd_user_runtime_notify_t:sock_file { manage_sock_file_perms relabel_sock_file_perms };

Expand Down

0 comments on commit f3865ab

Please sign in to comment.