Bug 164950

Summary: RFE: call account management and credential reinitialization functions
Product: [Fedora] Fedora Reporter: Nalin Dahyabhai <nalin>
Component: vlockAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-03 08:30:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Call pam_acct_mgmt() and pam_setcred() when checking passwords. none

Description Nalin Dahyabhai 2005-08-03 00:49:45 UTC
Description of problem:

vlock currently only uses pam_authenticate() to authenticate the user.  Strictly
speaking, the pam_acct_mgmt() function should also be called to verify that the
user is allowed to unlock the screen (for example, if time-of-day restrictions
are being imposed).

When unlocking the screen, it would be nice if vlock called pam_setcred() to
give modules a chance to reinitialize the user's credentials, as xscreensaver does.

Version-Release number of selected component (if applicable):
1.3-19

How reproducible:
Always.

Steps to Reproduce:
1. Add "required pam_listfile.so sense=allow item=user file=/dev/null" to
/etc/pam.d/vlock.
2. Lock, then try to unlock your VT.
  
Actual results:
vlock unlocks the VT

Expected results:
vlock stubbornly refuses to let you back in

Comment 1 Nalin Dahyabhai 2005-08-03 00:49:45 UTC
Created attachment 117380 [details]
Call pam_acct_mgmt() and pam_setcred() when checking passwords.

Comment 2 Karel Zak 2005-08-03 08:30:57 UTC
Commited to devel (FC5) branch.