Bug 1034028 - SELinux is preventing /usr/bin/journalctl from 'read' accesses on the file system.journal.
Summary: SELinux is preventing /usr/bin/journalctl from 'read' accesses on the file sy...
Keywords:
Status: CLOSED ERRATA
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:b9bf6f198435d8f46a64f498ba6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 06:10 UTC by Frank Murphy
Modified: 2014-01-07 17:37 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-105.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-14 02:54:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Murphy 2013-11-25 06:10:39 UTC
Description of problem:
Not too sure,  started yesterday. Possible after systemd update?.
Local fix per alert has not solved problem.
SELinux is preventing /usr/bin/journalctl from 'read' accesses on the file system.journal.

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

If you believe that journalctl should be allowed read 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                system.journal [ file ]
Source                        journalctl
Source Path                   /usr/bin/journalctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-208-6.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.9-300.fc20.x86_64 #1 SMP Wed
                              Nov 20 22:23:25 UTC 2013 x86_64 x86_64
Alert Count                   16
First Seen                    2013-11-24 19:37:12 GMT
Last Seen                     2013-11-25 06:04:31 GMT
Local ID                      6ab9c28d-58eb-4bc7-8e1f-5e0e6eec12fc

Raw Audit Messages
type=AVC msg=audit(1385359471.918:7335): avc:  denied  { read } for  pid=26084 comm="journalctl" name="system.journal" dev="tmpfs" ino=7908 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(1385359471.918:7335): arch=x86_64 syscall=open success=no exit=EACCES a0=7f5d085ed420 a1=80000 a2=0 a3=6c616e72756f6a2e items=0 ppid=26081 pid=26084 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,read

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.9-300.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-11-25 13:38:15 UTC
Has been added to rawhide/F20.

Comment 2 Fedora Update System 2013-11-27 08:15:27 UTC
selinux-policy-3.12.1-105.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-105.fc20

Comment 3 Fedora Update System 2013-11-27 16:13:36 UTC
Package selinux-policy-3.12.1-105.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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-105.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22285/selinux-policy-3.12.1-105.fc20
then log in and leave karma (feedback).

Comment 4 Rex Dieter 2013-12-12 03:55:29 UTC
Description of problem:
Not 100% sure if its related, but I recently configured systemd journal to be volatile...

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

Comment 5 Rex Dieter 2013-12-12 03:56:40 UTC
Apparently not fixed, per comment #4, and I have installed:
selinux-policy-3.12.1-106.fc20.noarch

Comment 6 Fedora Update System 2013-12-14 02:54:00 UTC
selinux-policy-3.12.1-105.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Miroslav Grepl 2014-01-07 17:37:24 UTC
#============= abrt_t ==============

#!!!! This avc is allowed in the current policy
allow abrt_t syslogd_var_run_t:file read;

will be a part of the next update.


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