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 306593 Details for
Bug 448253
selinux policy rejects iptables writing to cobbler log file
[?]
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.
the saved alert from selinux
cobbler_selinux_alert.txt (text/plain), 3.77 KB, created by
Chris Crowley
on 2008-05-25 01:47:49 UTC
(
hide
)
Description:
the saved alert from selinux
Filename:
MIME Type:
Creator:
Chris Crowley
Created:
2008-05-25 01:47:49 UTC
Size:
3.77 KB
patch
obsolete
> >Summary: > >SELinux is preventing iptables (iptables_t) "append" to >/var/log/cobbler/cobbler.log (var_log_t). > >Detailed Description: > >SELinux is preventing iptables (iptables_t) "append" to >/var/log/cobbler/cobbler.log (var_log_t). The SELinux type var_log_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 (/var/log/cobbler/cobbler.log) 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 >'/var/log/cobbler/cobbler.log'. If the file context does not change from >var_log_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 >'/var/log/cobbler/cobbler.log' > >The following command will allow this access: > >restorecon '/var/log/cobbler/cobbler.log' > >Additional Information: > >Source Context system_u:system_r:iptables_t:s0 >Target Context system_u:object_r:var_log_t:s0 >Target Objects /var/log/cobbler/cobbler.log [ file ] >Source iptables >Source Path /sbin/iptables >Port <Unknown> >Host zebra >Source RPM Packages iptables-1.3.8-6.fc8 >Target RPM Packages >Policy RPM selinux-policy-3.0.8-98.fc8 >Selinux Enabled True >Policy Type targeted >MLS Enabled True >Enforcing Mode Enforcing >Plugin Name mislabeled_file >Host Name zebra >Platform Linux zebra 2.6.24.5-85.fc8 #1 SMP Sat Apr 19 > 12:39:34 EDT 2008 i686 i686 >Alert Count 16 >First Seen Fri 23 May 2008 11:39:10 PM EDT >Last Seen Sat 24 May 2008 09:39:29 PM EDT >Local ID 613b97ed-f26d-479a-b315-9774833b8984 >Line Numbers > >Raw Audit Messages > >host=zebra type=AVC msg=audit(1211679569.595:90689): avc: denied { append } for pid=27578 comm="iptables" path="/var/log/cobbler/cobbler.log" dev=sda1 ino=4569868 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file > >host=zebra type=AVC msg=audit(1211679569.595:90689): avc: denied { append } for pid=27578 comm="iptables" path="/var/log/cobbler/cobbler.log" dev=sda1 ino=4569868 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file > >host=zebra type=SYSCALL msg=audit(1211679569.595:90689): arch=40000003 syscall=11 success=yes exit=0 a0=9046988 a1=9020038 a2=902e620 a3=0 items=0 ppid=27567 pid=27578 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 comm="iptables" exe="/sbin/iptables" subj=system_u:system_r:iptables_t:s0 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 448253
: 306593