diff options
| author | Joseph Richey <joerichey@google.com> | 2017-09-29 03:13:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-29 03:13:57 -0700 |
| commit | 3ca15548454f773ea3290f810ed1b1d55fec1783 (patch) | |
| tree | a04076b22ee22298667e0386716d76a87239e364 /pam | |
| parent | a949b13dac670014c37c7181e368b9c0c7a7f0f5 (diff) | |
| parent | 6f6c91993294d9bc753d22f58884dcc8e0a2f108 (diff) | |
Merge pull request #65 from google/session_keyring
security: Add check option to UserKeyringID
Diffstat (limited to 'pam')
| -rw-r--r-- | pam/pam.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ func (h *Handle) GetItem(i Item) (unsafe.Pointer, error) { // StartAsPamUser sets the effective privileges to that of the PAM user, and // configures the PAM user's keyrings to be properly linked. func (h *Handle) StartAsPamUser() error { - if _, err := security.UserKeyringID(h.PamUser); err != nil { + if _, err := security.UserKeyringID(h.PamUser, true); err != nil { log.Printf("Setting up keyrings in PAM: %v", err) } return security.SetThreadPrivileges(h.PamUser) |