Bug 723006 - SELinux is preventing /usr/bin/abrt-dump-oops (deleted) from 'search' accesses on the dossier kernel.
Summary: SELinux is preventing /usr/bin/abrt-dump-oops (deleted) from 'search' accesse...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:49bea4fbd3b...
: 723007 723015 723016 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 18:04 UTC by Nicolas Mailhot
Modified: 2011-09-13 15:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-19 07:25:25 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2011-07-18 18:04:32 UTC
SELinux is preventing /usr/bin/abrt-dump-oops (deleted) from 'search' accesses on the dossier kernel.

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

If you believe that abrt-dump-oops (deleted) should be allowed search access on the kernel directory 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_helper_t:s0
Target Context                system_u:object_r:sysctl_kernel_t:s0
Target Objects                kernel [ dir ]
Source                        abrt-dump-oops
Source Path                   /usr/bin/abrt-dump-oops (deleted)
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-5.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc7.git3.1.fc16.x86_64 #1
                              SMP Fri Jul 15 22:56:12 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    lun. 18 juil. 2011 19:52:57 CEST
Last Seen                     lun. 18 juil. 2011 19:52:57 CEST
Local ID                      d6dba382-79f1-4e13-9a8d-26538896d572

Raw Audit Messages
type=AVC msg=audit(1311011577.948:3987): avc:  denied  { search } for  pid=6368 comm="abrt-dump-oops" name="kernel" dev=proc ino=2253666 scontext=system_u:system_r:abrt_helper_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=dir


type=AVC msg=audit(1311011577.948:3987): avc:  denied  { read } for  pid=6368 comm="abrt-dump-oops" name="tainted" dev=proc ino=2910120 scontext=system_u:system_r:abrt_helper_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file


type=AVC msg=audit(1311011577.948:3987): avc:  denied  { open } for  pid=6368 comm="abrt-dump-oops" name="tainted" dev=proc ino=2910120 scontext=system_u:system_r:abrt_helper_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file


type=SYSCALL msg=audit(1311011577.948:3987): arch=x86_64 syscall=open success=yes exit=EIO a0=403918 a1=0 a2=1b6 a3=7fffcd910da0 items=0 ppid=1 pid=6368 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-dump-oops exe=2F7573722F62696E2F616272742D64756D702D6F6F7073202864656C6574656429 subj=system_u:system_r:abrt_helper_t:s0 key=(null)

Hash: abrt-dump-oops,abrt_helper_t,sysctl_kernel_t,dir,search

audit2allow

#============= abrt_helper_t ==============
allow abrt_helper_t sysctl_kernel_t:dir search;
allow abrt_helper_t sysctl_kernel_t:file { read open };

audit2allow -R

#============= abrt_helper_t ==============
allow abrt_helper_t sysctl_kernel_t:dir search;
allow abrt_helper_t sysctl_kernel_t:file { read open };

Comment 1 Miroslav Grepl 2011-07-19 07:16:32 UTC
*** Bug 723007 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2011-07-19 07:17:11 UTC
*** Bug 723015 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-07-19 07:24:03 UTC
*** Bug 723016 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2011-07-19 07:25:25 UTC
Fixed in selinux-policy-3.10.0-6.fc16

Comment 5 Konstantin Svist 2011-09-07 22:04:17 UTC
Please backport to f15 if possible. Errors out on selinux-policy-3.9.16-38.fc15

Comment 6 Miroslav Grepl 2011-09-08 11:40:02 UTC
Should be fixed in the -39.fc15

# yum update selinux-policy --enablerepo=updates-testing

Comment 7 Konstantin Svist 2011-09-13 15:29:25 UTC
appears fixed with 3.9.16-39.fc15


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