Bug 923493 - SELinux is preventing /usr/bin/abrt-dump-oops from 'getattr' accesses on the file /etc/abrt/abrt.conf.
Summary: SELinux is preventing /usr/bin/abrt-dump-oops from 'getattr' accesses on the ...
Keywords:
Status: CLOSED DUPLICATE of bug 923497
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2d0ba55cdb3e434eebff832f40e...
Depends On:
Blocks: F19Blocker, F19FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2013-03-20 00:16 UTC by Adam Williamson
Modified: 2013-03-20 00:36 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-20 00:36:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2013-03-20 00:16:32 UTC
Description of problem:
Occurs on boot of a Fedora 19 live image built from current repositories. SEalert claims the label is wrong, but if so, it's nothing I did.
SELinux is preventing /usr/bin/abrt-dump-oops from 'getattr' accesses on the file /etc/abrt/abrt.conf.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/abrt/abrt.conf default label should be abrt_etc_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/abrt/abrt.conf

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that abrt-dump-oops should be allowed getattr access on the abrt.conf 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 abrt-dump-oops /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_dump_oops_t:s0
Target Context                unconfined_u:object_r:net_conf_t:s0
Target Objects                /etc/abrt/abrt.conf [ file ]
Source                        abrt-dump-oops
Source Path                   /usr/bin/abrt-dump-oops
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-kerneloops-2.1.1-1.fc19.x86_64
Target RPM Packages           abrt-2.1.1-1.fc19.x86_64
Policy RPM                    selinux-policy-3.12.1-22.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc3.git0.3.fc19.x86_64 #1
                              SMP Mon Mar 18 21:39:31 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-19 19:39:21 EDT
Last Seen                     2013-03-19 19:39:21 EDT
Local ID                      e3def368-e127-4d23-ae21-85ea5ac57ade

Raw Audit Messages
type=AVC msg=audit(1363736361.760:28): avc:  denied  { getattr } for  pid=591 comm="abrt-dump-oops" path="/etc/abrt/abrt.conf" dev="dm-0" ino=165692 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=unconfined_u:object_r:net_conf_t:s0 tclass=file


type=SYSCALL msg=audit(1363736361.760:28): arch=x86_64 syscall=fstat success=yes exit=0 a0=3 a1=7fff20921a00 a2=7fff20921a00 a3=0 items=0 ppid=565 pid=591 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=abrt-dump-oops exe=/usr/bin/abrt-dump-oops subj=system_u:system_r:abrt_dump_oops_t:s0 key=(null)

Hash: abrt-dump-oops,abrt_dump_oops_t,net_conf_t,file,getattr

audit2allow

#============= abrt_dump_oops_t ==============
allow abrt_dump_oops_t net_conf_t:file getattr;

audit2allow -R
require {
	type abrt_dump_oops_t;
}

#============= abrt_dump_oops_t ==============
sysnet_read_config(abrt_dump_oops_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc3.git0.3.fc19.x86_64
type:           libreport

Comment 1 Adam Williamson 2013-03-20 00:16:44 UTC
Final blocker: "In most cases, there must be no SELinux 'AVC: denied' messages or abrt crash notifications on initial boot and subsequent login"

Comment 2 Daniel Walsh 2013-03-20 00:36:45 UTC

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


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