Bug 969471 - SELinux is preventing /usr/sbin/xtables-multi from 'write' accesses on the file /tmp/ffiGrB1Nm (deleted).
SELinux is preventing /usr/sbin/xtables-multi from 'write' accesses on the fi...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-05-31 09:48 EDT by Jiří Martínek
Modified: 2013-06-07 23:33 EDT (History)
3 users (show)

See Also:
Fixed In Version: selinux-policy-3.12.1-48.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-07 23:33:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jiří Martínek 2013-05-31 09:48:12 EDT
Description of problem:
SELinux is preventing /usr/sbin/xtables-multi from 'write' accesses on the file /tmp/ffiGrB1Nm (deleted).

*****  Plugin leaks (86.2 confidence) suggests  ******************************

If you want to ignore xtables-multi trying to write access the ffiGrB1Nm (deleted) file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
# grep /usr/sbin/xtables-multi /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests  ***************************

If you believe that xtables-multi should be allowed write access on the ffiGrB1Nm (deleted) file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep iptables /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:iptables_t:s0
Target Context                system_u:object_r:firewalld_tmp_t:s0
Target Objects                /tmp/ffiGrB1Nm (deleted) [ file ]
Source                        iptables
Source Path                   /usr/sbin/xtables-multi
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iptables-
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-96.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.i686 #1 SMP Fri May
                              24 20:35:02 UTC 2013 i686 i686
Alert Count                   54
First Seen                    2013-05-31 01:17:53 CEST
Last Seen                     2013-05-31 15:32:12 CEST
Local ID                      ba3dbc23-515a-4a8c-9527-ac05389ebc8a

Raw Audit Messages
type=AVC msg=audit(1370007132.566:515): avc:  denied  { write } for  pid=5675 comm="iptables" path=2F746D702F666669477242314E6D202864656C6574656429 dev="tmpfs" ino=20230 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file

type=SYSCALL msg=audit(1370007132.566:515): arch=i386 syscall=execve success=yes exit=0 a0=8b01ac8 a1=8942cd8 a2=8afad18 a3=1 items=0 ppid=503 pid=5675 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=iptables exe=/usr/sbin/xtables-multi subj=system_u:system_r:iptables_t:s0 key=(null)

Hash: iptables,iptables_t,firewalld_tmp_t,file,write


#============= iptables_t ==============
allow iptables_t firewalld_tmp_t:file write;

audit2allow -R
require {
	type iptables_t;
	type firewalld_tmp_t;
	class file write;

#============= iptables_t ==============
allow iptables_t firewalld_tmp_t:file write;

Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.i686
type:           libreport
Comment 1 Daniel Walsh 2013-05-31 11:27:33 EDT
Comment 2 Fedora Update System 2013-06-05 15:01:02 EDT
selinux-policy-3.12.1-48.fc19 has been submitted as an update for Fedora 19.
Comment 3 Fedora Update System 2013-06-06 13:31:09 EDT
Package selinux-policy-3.12.1-48.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-48.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2013-06-07 23:33:22 EDT
selinux-policy-3.12.1-48.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

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