Bug 2152618
| Summary: | Test for available issuercert before creating CA | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | John Ferlan <jferlan> | |
| Component: | swtpm | Assignee: | Marc-Andre Lureau <marcandre.lureau> | |
| Status: | CLOSED ERRATA | QA Contact: | Yanqiu Zhang <yanqzhan> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.2 | CC: | ddepaula, jdenemar, lmen, marcandre.lureau, nmagnezi, xuzhang, yalzhang, yanqzhan, ymankad | |
| Target Milestone: | rc | Keywords: | AutomationTriaged, Triaged, ZStream | |
| Target Release: | 9.2 | Flags: | pm-rhel:
                mirror+
                 | 
  |
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | swtpm-0.8.0-1.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 2100508 | |||
| : | 2152916 2152917 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-09 07:47:50 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: | ||||
| Bug Depends On: | 2092944, 2100508 | |||
| Bug Blocks: | 2108470, 2109987, 2152916, 2152917 | |||
| 
 
        
          Description
        
        
          John Ferlan
        
        
        
        
        
          2022-12-12 14:03:51 UTC
        
       
      
      
      
    Requesting 9.0.z-stream in order to ensure the 8.6.z-stream resolved bug 2109987 does not cause a regression for any 9.0.z migration/upgrade Tested with swtpm-0.8.0-1.el9.x86_64
# rm -rf /var/lib/swtpm-localca/* ; for ((i = 0; i<1000;i++)); do rm -rf /tmp/vtpm${i}; mkdir -p /tmp/vtpm${i}; swtpm_setup --tpm2 --tpmstate /tmp/vtpm${i} --create-ek-cert --create-platform-cert --pcr-banks sha256 2>&1 | grep -i read & done
(No such error: swtpm_localca exit with status 1: Need read rights on issuer certificate /var/lib/swtpm-localca/issuercert.pem for user root.)
    Mark as verified per comment9 with a downstream pkg. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (swtpm bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2348  |