aboutsummaryrefslogtreecommitdiff
path: root/pam/pam.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey94@gmail.com>2017-09-29 02:52:56 -0700
committerJoseph Richey <joerichey94@gmail.com>2017-09-29 02:52:56 -0700
commit4d9372795e7b53d105f69790c1d9deadbff85458 (patch)
tree76a79e8930ba874d06ccb8d3ac152c70e5a5e60a /pam/pam.go
parenta949b13dac670014c37c7181e368b9c0c7a7f0f5 (diff)
security: Add check option to UserKeyringID
Diffstat (limited to 'pam/pam.go')
-rw-r--r--pam/pam.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam/pam.go b/pam/pam.go
index a3642cc..0f20f30 100644
--- a/pam/pam.go
+++ b/pam/pam.go
@@ -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)