Expand description
Application policy: built-in deny list plus user and admin policy.toml.
Resolution order is built-in deny, then admin policy, then user policy.
Deny wins. A user allow cannot override an admin deny or a built-in deny.
Admin allow entries do not grant access. A missing user file is
default = "allow" plus this built-in list. pause_on_user_input defaults
to false when the key is absent, so a missing file does not install an event tap.
Structs§
- Confirm
Document - JSON object written to the confirm hook’s stdin.
- Denial
- Why a built-in rule refused an app.
- Loaded
Policy - Merged admin and user policy.
- Pause
Override - Clears a test pause override when dropped.
- Subject
- Resolved target passed to
decide.
Enums§
- Decision
- Allow, refuse, or ask the confirm hook.
- Policy
Action - How
decideclassifies an action.
Constants§
- SYNTHETIC_
EVENT_ USER_ DATA - Marker stored in
kCGEventSourceUserData(CGEventField::EventSourceUserData, value 42).
Functions§
- app_
verdict - Allow or deny for
policy check. Never returnsDecision::Confirm. - confirm_
program - Program from the flag, then
COMPUTER_USE_CONFIRM_CMD, then user policy, then admin. - decide
- Built-in deny, then admin, then user. Deny wins over allow.
- deny_
or_ allow - Map a denial to
ComputerError::PolicyDenied. - event_
is_ synthetic - True when a tap event was posted by this process and must not pause.
- identity_
denial - Refuse a resolved app. System Settings is refused only when the targeted window title or accessibility identifier mentions Privacy or Security.
- is_
browser - Safari, Chrome, Chromium, Edge, Brave, Arc, and Firefox.
- is_
paused - Whether mutating actions must return
paused. - key_
needs_ confirm cmd+qandalt+f4.- load_
paths - Load two already chosen files.
Nonemeans that file is absent. - load_
policy - Load the user file at
explicit(or the default path) and merge the admin file. - override_
paused - Force
is_pausedon this thread until the guard drops. - quit_
is_ protected loginwindow,WindowServer, and this process cannot be quit.- run_
confirm - Spawn the hook. Exit 0 proceeds. Any other result is
confirm_denied. - selector_
denial - Refuse
selectorbefore it is resolved, when the selector itself is enough. - sensitive_
title - Click or
AXPresstitles that need confirmation. - set_
paused - Set or clear the pause flag and the
pausedfile next to the audit log. - split_
command - Split a command into a program and arguments. Quotes may use
"or'. - url_
blocked - Pattern that matches
url, if any.*matches any span, including empty. - url_
in_ text - First
http://,https://, orfile://token intext.