Bug 438189
Summary: | SELinux is preventing the modprobe from using potentially mislabeled files (/tmp/iptables.DJg2FA). | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matěj Cepl <mcepl> | ||||
Component: | iptables | Assignee: | Thomas Woerner <twoerner> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | dwalsh, mcepl, sconklin | ||||
Target Milestone: | --- | Keywords: | SELinux | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-03-20 16:36:45 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Matěj Cepl
2008-03-19 16:31:41 UTC
Why are you using a file in /tmp with iptables? What kind of file is /tmp/iptables.DJg2FA? Also looks like iptables is leaking file descriptor to /proc/18725/net/ip_tables_names and rawip_socket fcntl(fd, F_SETFD, FD_CLOSEXEC) (In reply to comment #1) > Why are you using a file in /tmp with iptables? What kind of file is > /tmp/iptables.DJg2FA? I am sorry, but I have no idea, what kind of file it is. And now it is gone, so I cannot even take a look at it. I think it is also a leaked file descriptor or a redirection of stdout to a log file in /tmp. Are you using some tool to configure iptables that could be causing this error? Created attachment 298605 [details] Script to generate iptables (In reply to comment #4) > Are you using some tool to configure iptables that could be causing this error? No, just this script But do you have this script directing output to a /tmp file? "service iptables save" is writing to a temporary file in /tmp, which will be copied to /etc/sysconfig/iptables after successful generation before it gets removed. The file in /tmp is only used for this. So this is a redirection of stdout for modutils to the tmp file. I will allow this in selinux-policy-3.3.1-22.fc9.src.rpm Leaked file descriptor should be fixed. You do not need to change selinux-policy. Using O_CLOEXEC on all opened files is solving the problem for me completely. Fixed in rawhide in package iptables-1.4.0-4.fc9. |