From c6568945adb69a3b7779c0f9e0e1f427d31209ab Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Mon, 2 Oct 2017 16:49:16 -0700 Subject: security: Sync filesystem before dropping caches --- pam_fscrypt/pam_fscrypt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pam_fscrypt/pam_fscrypt.go') diff --git a/pam_fscrypt/pam_fscrypt.go b/pam_fscrypt/pam_fscrypt.go index 7eccc85..571a42b 100644 --- a/pam_fscrypt/pam_fscrypt.go +++ b/pam_fscrypt/pam_fscrypt.go @@ -167,8 +167,8 @@ func CloseSession(handle *pam.Handle, args map[string]bool) error { } if args[cacheFlag] { - log.Print("dropping inode caches at session close") - errCache = security.DropInodeCache() + log.Print("dropping appropriate filesystem caches at session close") + errCache = security.DropFilesystemCache() } if errLock != nil { -- cgit v1.2.3