Bug 1431501

Summary: openvswitch: /var/log/openvswitch is world readable
Product: Red Hat OpenStack Reporter: Summer Long <slong>
Component: openvswitchAssignee: Timothy Redaelli <tredaelli>
Status: CLOSED EOL QA Contact: Ofer Blaut <oblaut>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 7)CC: aloughla, amuller, apevec, chrisw, dtantsur, eglynn, fleitner, jruzicka, jschluet, lhh, lmartins, mburns, oblaut, opavlenk, pkilambi, rbartal, rhel-osp-director-maint, rhos-maint, slinaber, srevivo, ssmolyak
Target Milestone: ---Keywords: Security, Triaged, ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1431499 Environment:
Last Closed: 2017-07-21 12:19:01 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 Summer Long 2017-03-13 02:21:38 UTC
Description of problem:
The directory /var/log/openvswitch is world readable and contains log files that are readable, which can result in the exposure of sensitive information. The 'other readable/execute' bits need to be removed from the /var/log/openvswitch directory.

Because no sensitive data was found in the files, this is being raised as a hardening bug, and not a flaw.

Version-Release number of selected component (if applicable):
openvswitch-2.4.0-2.el7_2

Steps to reproduce:
$ ls -la /var/log/openvswitch
total 44
drwxr-xr-x.  2 root root  4096 Mar  5 19:07 .
drwxr-xr-x. 21 root root  4096 Mar 12 22:16 ..
-rw-r--r--.  1 root root  2135 Mar 12 22:16 ovsdb-server.log
-rw-r--r--.  1 root root   386 Mar  5 18:50 ovsdb-server.log-20170305.gz
-rw-r--r--.  1 root root 23931 Mar 12 22:17 ovs-vswitchd.log
-rw-r--r--.  1 root root  1741 Mar  5 18:52 ovs-vswitchd.log-20170305.gz