Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1158759 - Wrong permission for configuration file /etc/sysconfig/virt-who on rhel7.1
Wrong permission for configuration file /etc/sysconfig/virt-who on rhel7.1
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-who (Show other bugs)
7.1
x86_64 Linux
unspecified Severity high
: rc
: ---
Assigned To: Radek Novacek
Li Bin Liu
:
Depends On:
Blocks: CVE-2014-0189
  Show dependency treegraph
 
Reported: 2014-10-30 03:28 EDT by Liushihui
Modified: 2016-11-30 19:33 EST (History)
4 users (show)

See Also:
Fixed In Version: virt-who-0.11-3.el7
Doc Type: Bug Fix
Doc Text:
Cause: Configuration file /etc/sysconfig/virt-who was world-readable. Consequence: Any user on the system might read passwords from the configuration file. Fix: Remove read permission for others from the file. Result: File is now only readable by root user. This affects only new deployments. For current deployments, it is advised to set the rights to 600 for /etc/sysconfig/virt-who file.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 05:23:26 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0430 normal SHIPPED_LIVE Moderate: virt-who security, bug fix, and enhancement update 2015-03-05 09:52:46 EST

  None (edit)
Description Liushihui 2014-10-30 03:28:53 EDT
Description of problem:
Configuration file /etc/sysconfig/virt-who may contain passwords but its permissions are 644 (rw-r--r--). It should be 600 (rw-------) to prevent non-root users to read the configuration file.

Version-Release number of selected component (if applicable):
virt-who-0.11-2.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.Check the permission of virt-who config file.
[root@hp-z220-03 20141030094255]# ll /etc/sysconfig/virt-who 
-rw-r--r--. 1 root root 1976 Oct 30 11:18 /etc/sysconfig/virt-who

Actual results:
its permissions are 644 (rw-r--r--)

Expected results:
It should be 600 (rw-------) to prevent non-root users to read the configuration file.

Additional info:
Comment 2 Radek Novacek 2014-11-05 06:55:58 EST
Fixed in virt-who-0.11-3.el7.
Comment 4 Liushihui 2014-11-12 03:42:27 EST
Verified it on virt-who-0.11-3.el7.noarch.

Steps to verify:
1.Check the permission of virt-who config file. it's 600 (rw-------)
 [root@hp-z220-06 sysconfig]# ls -alt virt-who
-rw-------. 1 root root 1977 Nov 12 14:57 virt-who
Comment 6 errata-xmlrpc 2015-03-05 05:23:26 EST
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, 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://rhn.redhat.com/errata/RHSA-2015-0430.html

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