Bug 928992 - SELinux is preventing /usr/bin/systemctl from 'read' accesses on the file utmp.
Summary: SELinux is preventing /usr/bin/systemctl from 'read' accesses on the file utmp.
Keywords:
Status: CLOSED DUPLICATE of bug 928989
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a7d990dee641895129ac3e522d3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-28 23:24 UTC by Lanny Bland
Modified: 2013-03-29 10:22 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-29 10:22:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lanny Bland 2013-03-28 23:24:45 UTC
Description of problem:
SELinux is preventing /usr/bin/systemctl from 'read' accesses on the file utmp.

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

If you believe that systemctl should be allowed read access on the utmp 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 runlevel /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:initrc_var_run_t:s0
Target Objects                utmp [ file ]
Source                        runlevel
Source Path                   /usr/bin/systemctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-44-24.fc17.i686 systemd-44-24.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-168.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.8.4-102.fc17.x86_64 #1 SMP Sun
                              Mar 24 13:09:09 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-03-28 18:07:34 CDT
Last Seen                     2013-03-28 18:08:25 CDT
Local ID                      001c7422-c71d-4e8d-b297-d33c645e36e4

Raw Audit Messages
type=AVC msg=audit(1364512105.347:141): avc:  denied  { read } for  pid=2933 comm="runlevel" name="utmp" dev="tmpfs" ino=13697 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file


type=AVC msg=audit(1364512105.347:141): avc:  denied  { open } for  pid=2933 comm="runlevel" path="/run/utmp" dev="tmpfs" ino=13697 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1364512105.347:141): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7f5aefba9c62 a1=80000 a2=7f5aefba9c62 a3=7fff24f68190 items=0 ppid=2932 pid=2933 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=runlevel exe=/usr/bin/systemctl subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: runlevel,abrt_t,initrc_var_run_t,file,read

audit2allow

#============= abrt_t ==============
#!!!! This avc is allowed in the current policy

allow abrt_t initrc_var_run_t:file { read open };

audit2allow -R

#============= abrt_t ==============
#!!!! This avc is allowed in the current policy

allow abrt_t initrc_var_run_t:file { read open };


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.4-102.fc17.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-03-29 10:22:01 UTC

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


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