Bug 1040748 - SELinux is preventing /usr/bin/journalctl from 'open' accesses on the file /run/log/journal/b531f59d0209d0264a4406bec155a198/system.journal.
Summary: SELinux is preventing /usr/bin/journalctl from 'open' accesses on the file /r...
Keywords:
Status: CLOSED DUPLICATE of bug 1035421
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a9560893ee7c879b2a93c8290be...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 03:52 UTC by Rex Dieter
Modified: 2013-12-12 14:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-12 14:20:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rex Dieter 2013-12-12 03:52:35 UTC
Description of problem:
Configured systemd journal via
/etc/systemd/journald.conf
Storage=volatile

and (recently?) started to get this selinux error
SELinux is preventing /usr/bin/journalctl from 'open' accesses on the file /run/log/journal/b531f59d0209d0264a4406bec155a198/system.journal.

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

If you believe that journalctl should be allowed open access on the system.journal 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 journalctl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:syslogd_var_run_t:s0
Target Objects                /run/log/journal/b531f59d0209d0264a4406bec155a198/
                              system.journal [ file ]
Source                        journalctl
Source Path                   /usr/bin/journalctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-208-9.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.11.10-301.fc20.x86_64 #1 SMP Thu
                              Dec 5 14:01:17 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-12-11 17:15:52 CST
Last Seen                     2013-12-11 17:27:23 CST
Local ID                      81b02fce-e88e-4a06-87c2-848497570d8c

Raw Audit Messages
type=AVC msg=audit(1386804443.185:957): avc:  denied  { open } for  pid=19873 comm="journalctl" path="/run/log/journal/b531f59d0209d0264a4406bec155a198/system.journal" dev="tmpfs" ino=7076 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:syslogd_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1386804443.185:957): arch=x86_64 syscall=open success=yes exit=EAGAIN a0=7f32d1130430 a1=80000 a2=0 a3=6c616e72756f6a2e items=0 ppid=19872 pid=19873 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=journalctl exe=/usr/bin/journalctl subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: journalctl,abrt_t,syslogd_var_run_t,file,open

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.10-301.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-12-12 14:20:47 UTC

*** This bug has been marked as a duplicate of bug 1035421 ***


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