From f82db23f4a43640910d06c2c88c80a1bd596d548 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 27 Oct 2025 18:45:55 -0700 Subject: [PATCH] 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. --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 37c017ca..513ec523 100644 --- a/src/state.rs +++ b/src/state.rs @@ -693,7 +693,7 @@ impl State { let a11y_state = A11yState::new::(dh, client_not_sandboxed); // TODO: Restrict to only specific client? - let atspi_state = AtspiState::new::(dh, |_| true); + let atspi_state = AtspiState::new::(dh, client_has_no_security_context); State { common: Common {