Bug 707644 - SELinux is preventing /usr/bin/mono from 'setattr' accesses on the file coredump_filter.
Summary: SELinux is preventing /usr/bin/mono from 'setattr' accesses on the file cored...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:e068f0dc047...
: 706254 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-25 15:47 UTC by Robert Martin
Modified: 2011-10-07 21:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-07 21:14:49 UTC
Type: ---


Attachments (Terms of Use)

Description Robert Martin 2011-05-25 15:47:34 UTC
SELinux is preventing /usr/bin/mono from 'setattr' accesses on the file coredump_filter.

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

If you believe that mono should be allowed setattr access on the coredump_filter 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 beagled /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:
                              c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                coredump_filter [ file ]
Source                        beagled
Source Path                   /usr/bin/mono
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mono-core-2.6.7-4.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.i686
                              #1 SMP Tue May 3 13:36:36 UTC 2011 i686 i686
Alert Count                   433
First Seen                    Wed 25 May 2011 10:26:55 AM CDT
Last Seen                     Wed 25 May 2011 10:37:48 AM CDT
Local ID                      996afdb7-4276-4781-95bd-bd94ec0479c6

Raw Audit Messages
type=AVC msg=audit(1306337868.749:967): avc:  denied  { setattr } for  pid=3540 comm="beagled" name="coredump_filter" dev=proc ino=1046379 scontext=unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=file


type=SYSCALL msg=audit(1306337868.749:967): arch=i386 syscall=lsetxattr per=400000 success=no exit=EACCES a0=b733c900 a1=b75a2858 a2=5be4c10 a3=6c items=0 ppid=1 pid=3540 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=beagled exe=/usr/bin/mono subj=unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:c0.c1023 key=(null)

Hash: beagled,unconfined_mono_t,unconfined_t,file,setattr

audit2allow

#============= unconfined_mono_t ==============
allow unconfined_mono_t unconfined_t:file setattr;

audit2allow -R

#============= unconfined_mono_t ==============
allow unconfined_mono_t unconfined_t:file setattr;

Comment 1 Daniel Walsh 2011-05-25 16:33:39 UTC
Did you tell beagled to run over /proc?

Comment 2 Miroslav Grepl 2011-05-25 21:00:13 UTC
*** Bug 706254 has been marked as a duplicate of this bug. ***


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