Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to post events on macOS #7269

Closed
3 of 10 tasks
pentamassiv opened this issue Mar 13, 2023 · 2 comments
Closed
3 of 10 tasks

Unable to post events on macOS #7269

pentamassiv opened this issue Mar 13, 2023 · 2 comments
Assignees
Labels
Area: Scripting and command line awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug report OS: macOS

Comments

@pentamassiv
Copy link

Description

Currently it is not possible for an application to send keystrokes. SIP prevents any changes to the permissions (#650) so it would be great if you could grant bash the permissions to send keystrokes. It would allow us to run tests for the library enigo on macOS (enigo-rs/enigo#141). The library allows sending keystrokes on Linux, Windows and macOS and it is used by virtual keyboards and applications such as RustDesk.

Please consider adding
"'kTCCServicePostEvent','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
to the TCC.db. I guess it would be added to images/macos/provision/configuration/configure-tccdb-macos.sh.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

All versions

Is it regression?

No

Expected behavior

Be able to send events to test the library

Actual behavior

The tests fail, because they lack the permissions to send keystrokes.

Repro steps

@erik-bershel
Copy link
Contributor

Hey @pentamassiv!
I'll check how it would affect couple things connected with images security and will turn back with changes or negative answer. In general it sounds reasonable for me.

@erik-bershel erik-bershel added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Mar 17, 2023
@pentamassiv
Copy link
Author

It looks like it is possible now. Thank you very much for your consideration and the quick fix 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Scripting and command line awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug report OS: macOS
Projects
None yet
Development

No branches or pull requests

2 participants