Bug 1283558

Summary: tcsd fails to start if there is no tpm_* module in lsmod's output or insmod fails in loading tpm_* modules
Product: Red Hat Enterprise Linux 6 Reporter: Jaroslav Aster <jaster>
Component: trousersAssignee: Jerry Snitselaar <jsnitsel>
Status: CLOSED WONTFIX QA Contact: Vilém Maršík <vmarsik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 11:36:48 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:
Embargoed:

Description Jaroslav Aster 2015-11-19 09:53:37 UTC
Description of problem:

tcsd fails to start if there is no tpm_* module in lsmod's output or insmod fails in loading tpm_* modules. The issue is in the initscript in function start(). There is this code

check_drivers || load_drivers || exit 1

Function check_drivers() does lsmod and checks if there is tpm_* module in the output. This is wrong because tpm module can be built-in and in this case it will not be in lsmod's output. In my case, I use tpm-emulator. tpm-emulator does not have tpm_* module (It has tpmd_dev module), but it creates /dev/tpm device so trousers works as it's expected. This is not problem on x86_64/i386. There is tpm_infineon module which is always loaded not matter there is or is not tpm device on the system. The problem is only on ppc64 and s390x. 

The better way is to check existence of /dev/tpm instead of exitence of tpm_* kernel module, but it does tcsd itself.

There are no such limitations on rhel-7, so I suggest to remove check from the initscript.

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

trousers-0.3.13-2.el6

How reproducible:

100%


Actual results:

tcsd does not start if there is no tpm_* module in the system.


Expected results:

tcsd start if there is /dev/tpm device.

Additional info:

Comment 2 Jan Kurik 2017-12-06 11:36:48 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/