Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 294178 Details for
Bug 431803
SELinux prevents saving and restoring iptables configurations
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
selinux_iptables-save-etc_t.txt
selinux_iptables-save-etc_t.txt (text/plain), 3.60 KB, created by
Andrew Farris
on 2008-02-07 01:07:20 UTC
(
hide
)
Description:
selinux_iptables-save-etc_t.txt
Filename:
MIME Type:
Creator:
Andrew Farris
Created:
2008-02-07 01:07:20 UTC
Size:
3.60 KB
patch
obsolete
> >Summary: > >SELinux is preventing iptables-save (iptables_t) "write" to >/etc/sysconfig/iptables (etc_t). > >Detailed Description: > >SELinux is preventing iptables-save (iptables_t) "write" to >/etc/sysconfig/iptables (etc_t). The SELinux type etc_t, is a generic type for >all files in the directory and very few processes (SELinux Domains) are allowed >to write to this SELinux type. This type of denial usual indicates a mislabeled >file. By default a file created in a directory has the gets the context of the >parent directory, but SELinux policy has rules about the creation of >directories, that say if a process running in one SELinux Domain (D1) creates a >file in a directory with a particular SELinux File Context (F1) the file gets a >different File Context (F2). The policy usually allows the SELinux Domain (D1) >the ability to write, unlink, and append on (F2). But if for some reason a file >(/etc/sysconfig/iptables) was created with the wrong context, this domain will >be denied. The usual solution to this problem is to reset the file context on >the target file, restorecon -v '/etc/sysconfig/iptables'. If the file context >does not change from etc_t, then this is probably a bug in policy. Please file a >bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against the >selinux-policy package. If it does change, you can try your application again to >see if it works. The file context could have been mislabeled by editing the file >or moving the file from a different directory, if the file keeps getting >mislabeled, check the init scripts to see if they are doing something to >mislabel the file. > >Allowing Access: > >You can attempt to fix file context by executing restorecon -v >'/etc/sysconfig/iptables' > >The following command will allow this access: > >restorecon '/etc/sysconfig/iptables' > >Additional Information: > >Source Context unconfined_u:unconfined_r:iptables_t:SystemLow- > SystemHigh >Target Context system_u:object_r:etc_t >Target Objects /etc/sysconfig/iptables [ file ] >Source iptables-save >Source Path /sbin/iptables-save >Port <Unknown> >Host cirithungol >Source RPM Packages iptables-1.3.8-6.fc9 >Target RPM Packages >Policy RPM selinux-policy-3.2.6-5.fc9 >Selinux Enabled True >Policy Type targeted >MLS Enabled True >Enforcing Mode Enforcing >Plugin Name mislabeled_file >Host Name cirithungol >Platform Linux cirithungol 2.6.24-7.fc9 #1 SMP Mon Jan 28 > 20:16:56 EST 2008 i686 i686 >Alert Count 2 >First Seen Wed 06 Feb 2008 04:43:39 PM PST >Last Seen Wed 06 Feb 2008 04:44:28 PM PST >Local ID 338ecdb6-698a-427a-8653-35aad9196962 >Line Numbers > >Raw Audit Messages > >host=cirithungol type=AVC msg=audit(1202345068.60:113552): avc: denied { write } for pid=5025 comm="iptables-save" path="/etc/sysconfig/iptables" dev=sdb3 ino=79012 scontext=unconfined_u:unconfined_r:iptables_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file > >host=cirithungol type=SYSCALL msg=audit(1202345068.60:113552): arch=40000003 syscall=11 success=yes exit=0 a0=8f26b70 a1=9004ee8 a2=8ff0c08 a3=0 items=0 ppid=2767 pid=5025 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts3 comm="iptables-save" exe="/sbin/iptables-save" subj=unconfined_u:unconfined_r:iptables_t:s0-s0:c0.c1023 key=(null) > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 431803
:
294176
|
294177
| 294178