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

Add to keychain without auto-whitelisting retrieval. #13

Merged
merged 1 commit into from
Aug 20, 2015
Merged

Conversation

pda
Copy link
Owner

@pda pda commented Aug 20, 2015

$ security add-generic-password   
Usage: add-generic-password [-a account] [-s service] [-w password] [options...] [-A|-T appPath] [keychain]
    …
    -T  Specify an application which may access this item (multiple -T options are allowed)
    …

By default, the application which creates an item is trusted to access its data without warning.
You can remove this default access by explicitly specifying an empty app pathname: -T ""
If no keychain is specified, the password is added to the default keychain.

This leads to authorization prompts when access the item:

pda added a commit that referenced this pull request Aug 20, 2015
Add to keychain without auto-whitelisting retrieval.
@pda pda merged commit 5241923 into master Aug 20, 2015
@pda pda deleted the security-dash-t branch August 20, 2015 00:25
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

Successfully merging this pull request may close these issues.

1 participant