Bug 1009808

Summary: SELinux is preventing systemd-journal from read, write access on the file /dev/shm/journal.wsCiPG (deleted).
Product: [Fedora] Fedora Reporter: David Strauss <david>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:60e5d4a3df7d2eda93efddd22dc085f9a3f28a0c29828d63a72903f7e85f13c9
Fixed In Version: selinux-policy-3.12.1-74.8.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 00:34:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description David Strauss 2013-09-19 08:02:09 UTC
Description of problem:
SELinux is preventing systemd-journal from read, write access on the file /dev/shm/journal.wsCiPG (deleted).

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that systemd-journal should be allowed read write access on the journal.wsCiPG (deleted) file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep systemd-journal /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                unconfined_u:object_r:user_tmpfs_t:s0
Target Objects                /dev/shm/journal.wsCiPG (deleted) [ file ]
Source                        systemd-journal
Source Path                   systemd-journal
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.3.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.11-200.fc19.x86_64 #1 SMP Mon
                              Sep 9 13:03:01 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-09-19 02:06:55 CDT
Last Seen                     2013-09-19 02:06:55 CDT
Local ID                      005faacf-9336-4ba0-bf0f-ce8db85322a3

Raw Audit Messages
type=AVC msg=audit(1379574415.965:508): avc:  denied  { read write } for  pid=599 comm="systemd-journal" path=2F6465762F73686D2F6A6F75726E616C2E777343695047202864656C6574656429 dev="tmpfs" ino=419748 scontext=system_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file


Hash: systemd-journal,syslogd_t,user_tmpfs_t,file,read,write

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.10.11-200.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-09-19 19:06:56 UTC
c4c7e46b52cd95a4b1782719297647ec028f0f08  fixes this in git.

Not sure what is going on here, but it looks like a user space daemon is trying to communicate with journald using tmpfs.

Comment 2 Lukas Vrabec 2013-09-20 08:26:07 UTC
back ported.

Comment 3 Fedora Update System 2013-09-26 09:42:28 UTC
selinux-policy-3.12.1-74.8.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.8.fc19

Comment 4 Fedora Update System 2013-09-27 00:47:28 UTC
Package selinux-policy-3.12.1-74.8.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.8.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17739/selinux-policy-3.12.1-74.8.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-09-30 00:34:51 UTC
selinux-policy-3.12.1-74.8.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.