Skip to content

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.

2 participants