RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1473785 - /var/lib/docker folder permissions change on startup, causing OpenSCAP warning
Summary: /var/lib/docker folder permissions change on startup, causing OpenSCAP warning
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: 7.4
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2017-07-21 16:13 UTC by Ryan Howe
Modified: 2021-03-11 15:28 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-27 22:16:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ryan Howe 2017-07-21 16:13:43 UTC
Description of problem:
When starting docker permissions change on /var/lib/docker and /etc/sysconfig/docker-storage, in turn causing OpenSCAP to warn about the permission change. 


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

How reproducible:
100%

Steps to Reproduce:
1. Install docker
2. Start docker

Actual results:
```
FINDING 1:

(HIGH) Verify and Correct File Permissions with R= PM (xccdf_org.ssgproject.conte= nt_rule_rpm_verify_permissions)

Items found violating = mode of all files matches local rpm database: 
```

Expected results:
No findings, rpm to ship with right permissions or permissions remain unchanged. 

Additional info:

Verify and Correct File Permissions with RPM
   # rpm -V docker 
   I would expect the results to look similar to this: 

S.5....T.  c /etc/sysconfig/docker-storage
S.5....T.  c /etc/sysconfig/docker-storage-setup

  - Here Size,digest,and mtime differ which is to be expected. 

.M.......    /var/lib/docker

  - Here the mode differs, this happens when you start docker for the first time docker changing the permissions on /var/lib/docker 

Fresh Install:
drwx------. 2 root root 6 May 17 01:17 /var/lib/docker/
-rw-------. 1 root root 218 Jul 21 11:55 /etc/sysconfig/docker-storage


After starting docker service: 
drwx--x--x. 10 root root 124 Jun 20 14:15 /var/lib/docker/
-rw-r--r--. 1 root root 218 Jul 21 11:55 /etc/sysconfig/docker-storage

Comment 2 Daniel Walsh 2017-07-22 09:42:46 UTC
Lokesh can you just change the rpm permissions to match the final.

Comment 4 Daniel Walsh 2017-08-25 11:16:29 UTC
Franticek lets get this done.


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