Skip to content

Commit f82db23

Browse files
ids1024Drakulix
authored andcommitted
Restrict atspi protocol to only clients without security context
This is only intended to be used by `orca`. I guess `|_| true` was a placeholder for a potentially more restrictive check, but use this for now, anyway.
1 parent f91115f commit f82db23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ impl State {
693693
let a11y_state = A11yState::new::<State, _>(dh, client_not_sandboxed);
694694

695695
// TODO: Restrict to only specific client?
696-
let atspi_state = AtspiState::new::<State, _>(dh, |_| true);
696+
let atspi_state = AtspiState::new::<State, _>(dh, client_has_no_security_context);
697697

698698
State {
699699
common: Common {

0 commit comments

Comments
 (0)