Bug 1026819

Summary: vlock seems not working on RHEL-7
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Kis <pkis>
Component: kbdAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Dolezal <todoleza>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: nalin, todoleza
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kbd-1.15.5-7.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:09:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Patrik Kis 2013-11-05 13:47:08 UTC
Description of problem:
When locking console in a virtual machine the vlock seems get to endless loop and print only the following message:
The pts/1 is now locked by pkis.
Authentication failure.
It is not possible to enter password at all and it continues until it is killed from another terminal.
It was tested on virtual machine only, but it is expected to work.

Version-Release number of selected component (if applicable):
kbd-1.15.5-6.el7

How reproducible:
always

Steps to Reproduce:
[pkis@rhel7 ~ ]$ vlock 

The pts/1 is now locked by pkis.
Authentication failure.


The pts/1 is now locked by pkis.
Authentication failure.

....%<...........................

From other terminal:
[root@rhel7 ~ ]# killall -9 vlock

Actual results:
It is not possible to unlock.

Expected results:
[pkis@rhel6 ~]$ vlock
 *** This tty is not a VC (virtual console). ***
 *** It may not be securely locked. ***

This TTY is now locked.
Please enter the password to unlock.
pkis's Password: 
[pkis@rhel6 ~]$

Comment 4 Nalin Dahyabhai 2013-11-12 19:00:06 UTC
This fix appears to be incomplete - while the missing configuration file has been re-added, vlock doesn't appear to be calling pam_setcred() after successfully verifying the user's identity as the old version did (see also bug #913311).

Comment 5 Tomas Dolezal 2013-11-18 13:12:31 UTC
VERIFIED on kbd-1.15.5-7.el7.x86_64
tested on tty and ssh with success on both

Comment 6 Nalin Dahyabhai 2013-11-18 14:23:12 UTC
The problem I mentioned in comment #4 appears to be causing bug #1029374.  Does that fix belong here, or in a new bug?

Comment 7 Tomas Dolezal 2013-11-19 11:35:55 UTC
Hi Nalin,
problem described in comment 1 is fixed, this blocker bug has to be verified by the end of this week.

I was unable to reproduce your bug 913311. Please try to reproduce on kbd-1.15.5-7.el7.x86_64 and then be sure to clone the bug to RHEL7 product. If I had succeeded, I would have done that.

Comment 8 Nalin Dahyabhai 2013-11-19 15:39:27 UTC
Alright, then, cloning the other bug.  Thanks!

Comment 9 Ludek Smid 2014-06-13 11:09:53 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.