Skip to content

Commit ed822a1

Browse files
committed
dbus: Add noatsecure otherwise the socket variable is lost
1 parent 5dafe75 commit ed822a1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

policy/modules/services/dbus.if

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ template(`dbus_role_template',`
102102
domtrans_pattern($3, dbusd_exec_t, $1_dbusd_t)
103103

104104
ps_process_pattern($3, $1_dbusd_t)
105-
allow $3 $1_dbusd_t:process { ptrace signal_perms };
105+
allow $3 $1_dbusd_t:process { ptrace signal_perms noatsecure };
106106

107-
allow $1_dbusd_t $3:process sigkill;
107+
allow $1_dbusd_t $3:process { sigkill noatsecure };
108108
allow $1_dbusd_t session_dbusd_tmp_t:sock_file manage_sock_file_perms;
109109

110110
kernel_getattr_proc($1_dbusd_t)
@@ -460,6 +460,7 @@ interface(`dbus_all_session_domain',`
460460
')
461461

462462
domtrans_pattern(session_bus_type, $2, $1)
463+
allow session_bus_type $1:process noatsecure;
463464

464465
dbus_all_session_bus_client($1)
465466
dbus_connect_all_session_bus($1)
@@ -494,6 +495,7 @@ template(`dbus_spec_session_domain',`
494495
')
495496

496497
domtrans_pattern($1_dbusd_t, $3, $2)
498+
allow $1_dbusd_t $2:process noatsecure;
497499

498500
dbus_spec_session_bus_client($1, $2)
499501
dbus_connect_spec_session_bus($1, $2)
@@ -591,6 +593,7 @@ interface(`dbus_system_domain',`
591593
dbus_connect_system_bus($1)
592594

593595
ps_process_pattern(system_dbusd_t, $1)
596+
allow system_dbusd_t $1:process noatsecure;
594597

595598
userdom_read_all_users_state($1)
596599

0 commit comments

Comments
 (0)