I make a sandboxed Mac App Store keyboard-lock app (it stops pets from typing). Optional features block key presses with a consuming CGEventTap (.defaultTap at .cghidEventTap). It doesn't read, record, or control other apps.
As Quinn explained in thread 857997, a consuming tap uses the PostEvent privilege, which on 27.3 beta 2 is filed under System & App Protection Override. What I'm seeing:
- Creating the tap no longer prompts, and the app isn't added to the list. AXIsProcessTrustedWithOptions doesn't prompt either (same as thread 860570).
- The user must add the app manually. A limited "Choose Apps" grant doesn't allow the tap; only "Bypass System Protections" works.
- That screen warns the app can read all data, view hidden photos, browse as the user, and change settings. As a sandboxed app, it can do none of that. The tap only sees key presses in order to block them, and nothing is stored or sent.
Questions:
- Is there a supported way to request PostEvent on 27.3, such as CGRequestPostEventAccess?
- Will consuming event taps always require the full override, or is a narrower option planned for input-only apps (keyboard lockers, hotkey apps, text expanders)?
- Will the upcoming entitlements cover anything beyond assistive technology and backup?
Filed as FB25721881