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

/bin/ls only #11

Open
ghost opened this issue Feb 11, 2019 · 3 comments
Open

/bin/ls only #11

ghost opened this issue Feb 11, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 11, 2019

Hi @erikberglund

i moved to developed android and iOS app and then i'm back to Mac apps

now i test it again all is fine but issue is however i do anything
but only /bin/ls command executes even tried /bin/rm or /bin/cp , also i found in code changed everywhere but still ls executes

i really don't have experience priviledgehelpers

hope you help me

Thanks

@jeff-h
Copy link

jeff-h commented May 9, 2020

Since the /bin/ls command is defined in the helper in this example code, it sounds to me like you weren't successfully reinstalling your new helper whenever you changed its code. Don't forget that the helper tool is actually installed out of the App bundle into /Library/PrivilegedHelperTools/ and is actually run from the latter location.

For anyone with similar problems: it would be well worth checking /Library/PrivilegedHelperTools/ to confirm your helper binary there is the version and build timestamp you'd expect. If not, trace through your helper tool installation code.

@erikberglund we can probably close this issue.

@barron9
Copy link

barron9 commented Jun 14, 2021

is that another option to change that in runtime?

@chipjarred
Copy link

chipjarred commented Jun 14, 2021

@barron9 No, the helper tool is always installed in and run from /Library/PriviledgedHelperTools. That's just how SMJobBless works. Probably the most common reason for failure to install it there is forgetting to remove the App Sandbox capability for the main app's target in Xcode project settings. SMJobBless is the call that installs the helper tool, and so it has to have access to /Library/PriviledgedHelperTools which is not in the sandbox, so it will fail in a sandboxed app. A runtime option to change that behavior would be a security issue, so there isn't one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants