Bug 2144530

Summary: fence_virtd: warn when config or key file is not mode 600, and make config file mode 600 for new installs (RHEL8)
Product: Red Hat Enterprise Linux 8 Reporter: Oyvind Albrigtsen <oalbrigt>
Component: fence-virtAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: cluster-maint, mjuricek
Target Milestone: rcKeywords: Triaged
Target Release: 8.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fence-virt-1.0.0-5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2144531 (view as bug list) Environment:
Last Closed: 2023-05-16 08:24:04 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:    
Bug Blocks: 2144531    

Description Oyvind Albrigtsen 2022-11-21 15:19:26 UTC
Description of problem:
Modify linked PR to warn when config file or key file is not mode 600.

The fail logic will be introduced in RHEL10.

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


How reproducible:


Steps to Reproduce:
1. Install fence_virtd.
2. Start fence_virtd.
3.

Actual results:
Config file is not mode 600, and there's no warning about it's permissions.

Expected results:
Config file is mode 600 (for new installs), and there is a warning if config or key files are not mode 600.

Additional info:
https://github.com/ClusterLabs/fence-agents/pull/513

Comment 8 errata-xmlrpc 2023-05-16 08:24:04 UTC
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 (fence-virt 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:2760