diff options
Diffstat (limited to 'pam_script_ses_close')
-rwxr-xr-x | pam_script_ses_close | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pam_script_ses_close b/pam_script_ses_close index a59664c..a806d2c 100755 --- a/pam_script_ses_close +++ b/pam_script_ses_close @@ -55,8 +55,12 @@ file=$dbdir/$sess [ "$auid" != "$fauid" -o "$sess" != "$fsess" ] && logger -t $0 "Session $sess mismatch auid $auid,$fauid session $sess,$fsess" - rm -f $file + #OLSON rm -f $file } +# OLSON, probably need to gc all files on exit from any, because +# original PID is always gone, but we don't want to remove on exit +# from su, sudo, etc. + # always succeed, this should not cause sessions shutdown errors exit 0 |