From 1ce72a7367967152948dbe332ea8d9834f194c27 Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Fri, 1 Sep 2017 00:53:07 -0700 Subject: 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. --- actions/policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/policy.go') 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 -- cgit v1.2.3