diff options
| author | Joseph Richey <joerichey94@gmail.com> | 2017-09-01 00:53:07 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2017-09-01 00:53:07 -0700 |
| commit | 1ce72a7367967152948dbe332ea8d9834f194c27 (patch) | |
| tree | c70ca05d44bddf899258f47f172d2ade68ca36ea /actions/policy.go | |
| parent | d5f64c1ecd8f13f01681d0a18b8f3174ff9bd225 (diff) | |
security: Change user keyring lookup algorithm
Now instead of spawning a seperate thread we alternate between changing
the euid and ruid to both find the keyring and link it to the process
keyring. Note that we also ensure that the user keyring is linked into
the root keyring whenever possible.
Diffstat (limited to 'actions/policy.go')
| -rw-r--r-- | actions/policy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/policy.go b/actions/policy.go index 510afa1..cbdcb3a 100644 --- a/actions/policy.go +++ b/actions/policy.go @@ -60,7 +60,7 @@ func PurgeAllPolicies(ctx *Context) error { err = security.RemoveKey(service+policyDescriptor, ctx.TargetUser) switch errors.Cause(err) { - case nil, security.ErrKeyringSearch: + case nil, security.ErrKeySearch: // We don't care if the key has already been removed default: return err |