diff options
Diffstat (limited to 'pam_fscrypt')
| -rw-r--r-- | pam_fscrypt/pam_fscrypt.go | 4 | ||||
| -rw-r--r-- | pam_fscrypt/run_fscrypt.go | 2 | ||||
| -rw-r--r-- | pam_fscrypt/run_test.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pam_fscrypt/pam_fscrypt.go b/pam_fscrypt/pam_fscrypt.go index 85bd934..c7f9931 100644 --- a/pam_fscrypt/pam_fscrypt.go +++ b/pam_fscrypt/pam_fscrypt.go @@ -83,7 +83,7 @@ func Authenticate(handle *pam.Handle, _ map[string]bool) error { // OpenSession provisions any policies protected with the login protector. func OpenSession(handle *pam.Handle, _ map[string]bool) error { - // We will always clear the the AUTHTOK data + // We will always clear the AUTHTOK data defer handle.ClearData(authtokLabel) // Increment the count as we add a session if _, err := AdjustCount(handle, +1); err != nil { @@ -264,7 +264,7 @@ func pam_sm_authenticate(pamh unsafe.Pointer, flags, argc C.int, argv **C.char) return authenticateFunc.Run(pamh, argc, argv) } -// pam_sm_stecred needed because we use pam_sm_authenticate. +// pam_sm_setcred needed because we use pam_sm_authenticate. //export pam_sm_setcred func pam_sm_setcred(pamh unsafe.Pointer, flags, argc C.int, argv **C.char) C.int { return C.PAM_SUCCESS diff --git a/pam_fscrypt/run_fscrypt.go b/pam_fscrypt/run_fscrypt.go index 8622a64..3d0acb1 100644 --- a/pam_fscrypt/run_fscrypt.go +++ b/pam_fscrypt/run_fscrypt.go @@ -192,7 +192,7 @@ func policiesUsingProtector(protector *actions.Protector) []*actions.Policy { // AdjustCount changes the session count for the pam user by the specified // amount. If the count file does not exist, create it as if it had a count of -// zero. If the adjustment would be the count below zero, the count is set to +// zero. If the adjustment would bring the count below zero, the count is set to // zero. The value of the new count is returned. Requires root privileges. func AdjustCount(handle *pam.Handle, delta int) (int, error) { // Make sure the directory exists diff --git a/pam_fscrypt/run_test.go b/pam_fscrypt/run_test.go index 1e74528..40ace4c 100644 --- a/pam_fscrypt/run_test.go +++ b/pam_fscrypt/run_test.go @@ -1,5 +1,5 @@ /* - * run_test.go - tests that the PAM helper functionsd work properly + * run_test.go - tests that the PAM helper functions work properly * * Copyright 2017 Google Inc. * Author: Joe Richey (joerichey@google.com) |