diff options
| author | Joe Richey <joerichey@google.com> | 2017-08-31 11:29:30 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2017-08-31 11:29:30 -0700 |
| commit | 5586bc35fbb33f20c38f52285c19c015b804ea94 (patch) | |
| tree | 57201e6533ea278af9903f197146743955d9903f /security | |
| parent | 11b31826334bc3faa4d4c7ee05a3b2996a88c969 (diff) | |
Fixed linter issues
Diffstat (limited to 'security')
| -rw-r--r-- | security/keyring.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/security/keyring.go b/security/keyring.go index 8112c54..f507737 100644 --- a/security/keyring.go +++ b/security/keyring.go @@ -139,8 +139,8 @@ func userKeyringID(target *user.User) (int, error) { // We drop permissions in a separate thread (guaranteed as the main // thread is locked) because we need to drop the real AND effective IDs. log.Printf("Threaded keyring lookup for uid=%d", uid) - idChan := make(chan int, 0) - errChan := make(chan error, 0) + idChan := make(chan int) + errChan := make(chan error) // OSThread locks ensure the privilege change is only for the lookup. runtime.LockOSThread() defer runtime.UnlockOSThread() @@ -156,7 +156,6 @@ func userKeyringID(target *user.User) (int, error) { return } idChan <- keyringID - return }() // We select so the thread will have to complete |