Bug 1405188
| Summary: | /dev/shm is created with 755 permissions instead of 777 when the dracut fcoe module is included | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Kyle Walker <kwalker> | ||||
| Component: | dracut | Assignee: | Lukáš Nykrýn <lnykryn> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.4 | CC: | dracut-maint-list, ptalbert | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-01-02 14:33:10 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: | |||||||
| Attachments: |
|
||||||
|
Description
Kyle Walker
2016-12-15 20:18:27 UTC
Created attachment 1232319 [details]
Patch to correct the permissions
The underlying issue is due to:
/usr/lib/dracut/modules.d/95fcoe/cleanup-fcoe.sh
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
if [ -e /var/run/lldpad.pid ]; then
lldpad -k
mkdir -m 0755 -p /run/initramfs/state/dev/shm
cp /dev/shm/lldpad.state /run/initramfs/state/dev/shm/ > /dev/null 2>&1
echo "files /dev/shm/lldpad.state" >> /run/initramfs/rwtab
fi
The above /run/initramfs/state/dev/shm persists across the switchroot as the /dev/shm interface. By issuing the mkdir above as 777, the correct permissions are observed following boot.
*** This bug has been marked as a duplicate of bug 1406254 *** That patch is not correct, it will leave a writable directory in /run which could be a security risk. In fedora we now have a fix in initscripts that we don't modify the directory permissions if the directory exists. |