Bug 557873
| Summary: | SELinux is preventing /sbin/iptables-multi access to a leaked tcp_socket file descriptor. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | vatican2003 |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | dwalsh, mgrepl, odog502 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:928f4d7e1d2f80a3e77ef34297818c4cffd828a694d87263940be43878b99b8b | ||
| Fixed In Version: | 3.6.32-84.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-11 14:40:28 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: | |||
|
Description
vatican2003
2010-01-22 18:43:04 UTC
Looks like a process is running as initrc_t and leaking file descriptors to iptables. What process is running as initrc_t? # ps -eZ | grep initrc_t Were you using a tool to manipulate firewall rules? I have this same problem. It happens when I try to use Cisco AnyConnect VPN Client so that I can work remotely from home. This problem is preventing me from being able to log in to the office. The SELinux alert is accompanied with the error I get from Cisco: "The VPN client agent SSL engine encountered an error. Close all sensitive networked applications." My error is identical to the one above except for this line: Policy RPM selinux-policy-3.6.32-78.fc12 Also, in my case, this is a fresh install of fedora 12. The only thing I have done with this system is download all the software updates. It worked neither before nor after the updates. I did a search on the error that I got from Cisco and this was the only thing I found: http://blog.sarathonline.com/2008/06/cisco-anyconnect-client-on-ubuntu-fails.html I wasn't able to solve my problem the proposed solutions in the above link either. odog502, I don't believe SELinux is your problem. If you put the machine in permissive mode, I bet the connection will still fail.
If you read the AVC message closely, you will see the name/value pair success=yes, this means the system call that triggered the AVC was successful, meaning SELinux actually did not cause a syscall to fail.
Miroslav, add
init_dontaudit_script_leaks(iptables_t)
########################################
## <summary>
## dontaudit read and write an leaked init scrip file descriptors
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`init_dontaudit_script_leaks',`
gen_require(`
type initrc_t;
')
dontaudit $1 initrc_t:tcp_socket { read write };
dontaudit $1 initrc_t:udp_socket { read write };
dontaudit $1 initrc_t:unix_dgram_socket { read write };
dontaudit $1 initrc_t:unix_stream_socket { read write };
dontaudit $1 initrc_t:shm rw_shm_perms;
init_dontaudit_use_script_ptys($1)
init_dontaudit_use_script_fds($1)
')
Fixed in selinux-policy-3.6.32-81.fc12 selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12 selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1492 selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |