Bug 725545

Summary: SELinux is preventing /usr/bin/python from 'remove_name' accesses on the directory ffiFTB4rf.
Product: [Fedora] Fedora Reporter: Eddie Lania <eddie>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5ec832368b57b6bbe36f94c7b8551f993f6e2485b51cca34d30491fe4ec91265
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-25 20:16:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eddie Lania 2011-07-25 20:00:07 UTC
SELinux is preventing /usr/bin/python from 'remove_name' accesses on the directory ffiFTB4rf.

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

If you believe that python should be allowed remove_name access on the ffiFTB4rf 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 fail2ban-server /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:fail2ban_t:s0
Target Context                system_u:object_r:tmp_t:s0
Target Objects                ffiFTB4rf [ dir ]
Source                        fail2ban-server
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7-8.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-42.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-92.fc14.i686.PAE #1 SMP Sat May 21
                              17:33:09 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Sun 24 Jul 2011 04:01:07 AM CEST
Last Seen                     Mon 25 Jul 2011 09:36:12 PM CEST
Local ID                      32f93d0f-c90c-4016-a183-d4ad54799eb1

Raw Audit Messages
type=AVC msg=audit(1311622572.223:19): avc:  denied  { remove_name } for  pid=1982 comm="fail2ban-server" name="ffiFTB4rf" dev=dm-1 ino=3145732 scontext=system_u:system_r:fail2ban_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir


type=AVC msg=audit(1311622572.223:19): avc:  denied  { unlink } for  pid=1982 comm="fail2ban-server" name="ffiFTB4rf" dev=dm-1 ino=3145732 scontext=system_u:system_r:fail2ban_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file


type=SYSCALL msg=audit(1311622572.223:19): arch=i386 syscall=unlink success=yes exit=0 a0=bf972270 a1=2 a2=60c734 a3=bf972270 items=0 ppid=1 pid=1982 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=fail2ban-server exe=/usr/bin/python subj=system_u:system_r:fail2ban_t:s0 key=(null)

Hash: fail2ban-server,fail2ban_t,tmp_t,dir,remove_name

audit2allow

#============= fail2ban_t ==============
allow fail2ban_t tmp_t:dir remove_name;
allow fail2ban_t tmp_t:file unlink;

audit2allow -R

#============= fail2ban_t ==============
allow fail2ban_t tmp_t:dir remove_name;
allow fail2ban_t tmp_t:file unlink;

Comment 1 Daniel Walsh 2011-07-25 20:16:14 UTC

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