Bug 1283558 - tcsd fails to start if there is no tpm_* module in lsmod's output or insmod fails in loading tpm_* modules
tcsd fails to start if there is no tpm_* module in lsmod's output or insmod f...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: trousers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Jerry Snitselaar
Vilém Maršík
Depends On:
  Show dependency treegraph
Reported: 2015-11-19 04:53 EST by Jaroslav Aster
Modified: 2017-12-06 06:36 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-12-06 06:36:48 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jaroslav Aster 2015-11-19 04:53:37 EST
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):


How reproducible:


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 06:36:48 EST
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:


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:


Note You need to log in before you can comment on or make changes to this bug.