Bug 560246
| Summary: | SELinux is preventing iptables (iptables_t) "read write" initrc_t. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jerry Amundson <jamundso> |
| 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: | 11 | CC: | dwalsh, long, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.6.12-95.fc11 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-03-23 23:28:32 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
Jerry Amundson
2010-01-30 15:33:09 UTC
What process is running as initrc_t? # ps -eZ | grep initrc_t Were you using a tool to manipulate firewall rules? I'm getting the same error. [long@shibby ~]$ ps -eZ | grep initrc_t system_u:system_r:initrc_t:s0 2040 ? 00:00:00 ddclient system_u:system_r:initrc_t:s0 2143 ? 00:00:05 preload unconfined_u:system_r:initrc_t:s0 30376 ? 00:00:00 vpnagentd The Cisco VPN client tries to manipulate the firewall rules apparently. So the problem is ddclient or vpnagentd is leaking the file descriptor.
Bugs should be opened against those tools, but since we do not ship them, we should probably dontaudit the leaks.
Miroslav add
init_dontaudit_leaks(iptables_t)
corenet_dontaudit_rw_tun_tap_dev(iptables_t)
########################################
## <summary>
## dontaudit Read and write the TUN/TAP virtual network device.
## </summary>
## <param name="domain">
## <summary>
## The domain allowed access.
## </summary>
## </param>
#
interface(`corenet_dontaudit_rw_tun_tap_dev',`
gen_require(`
type tun_tap_device_t;
')
dontaudit $1 tun_tap_device_t:chr_file { read write };
')
########################################
## <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: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 Fixed in selinux-policy-3.6.12-95.fc11 selinux-policy-3.6.12-95.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/selinux-policy-3.6.12-95.fc11 selinux-policy-3.6.12-95.fc11 has been pushed to the Fedora 11 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/F11/FEDORA-2010-2591 selinux-policy-3.6.12-95.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |