Bug 453754

Summary: SELinux policy required for cobbler
Product: [Fedora] Fedora Reporter: James Morris <jmorris>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: jkubin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-02 13:07:30 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 James Morris 2008-07-02 11:57:07 UTC
Looks like some work is needed on SELinux policy for cobbler.  Running 'cobbler
check' produces the following AVCs:

type=AVC msg=audit(1214999652.615:31): avc:  denied  { append } for  pid=3868
comm="iptables" path="/var/log/cobbler/cobbler.log" dev=md0 ino=7766578
scontext=unconfined_u:system_r:iptables_t:s0
tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file
type=AVC msg=audit(1214999652.615:31): avc:  denied  { append } for  pid=3868
comm="iptables" path="/var/log/cobbler/cobbler.log" dev=md0 ino=7766578
scontext=unconfined_u:system_r:iptables_t:s0
tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file
type=SYSCALL msg=audit(1214999652.615:31): arch=c000003e syscall=59 success=yes
exit=0 a0=c46780 a1=c003c0 a2=c03b20 a3=8 items=0 ppid=3858 pid=3868 auid=0
uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1
comm="iptables" exe="/sbin/iptables" subj=unconfined_u:system_r:iptables_t:s0
key=(null)
type=AVC msg=audit(1214999652.619:32): avc:  denied  { append } for  pid=3869
comm="iptables" path="/var/log/cobbler/cobbler.log" dev=md0 ino=7766578
scontext=unconfined_u:system_r:iptables_t:s0
tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file
type=AVC msg=audit(1214999652.619:32): avc:  denied  { append } for  pid=3869
comm="iptables" path="/var/log/cobbler/cobbler.log" dev=md0 ino=7766578
scontext=unconfined_u:system_r:iptables_t:s0
tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file
type=SYSCALL msg=audit(1214999652.619:32): arch=c000003e syscall=59 success=yes
exit=0 a0=c467a0 a1=c003c0 a2=c03b20 a3=8 items=0 ppid=3858 pid=3869 auid=0
uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1
comm="iptables" exe="/sbin/iptables" subj=unconfined_u:system_r:iptables_t:s0
key=(null)

Comment 1 Daniel Walsh 2008-07-02 13:07:30 UTC
This avc has already been fixed in current rawhide.  Although I just made a much
more global change to allow all system apps and user apps to append to any log
file.  Eliminating a whole host of these avc's.  Now that we have the open perms
check we can start to mimic more of the way Unix actually works, and stop
getting stupid avc messages.

Fixed in selinux-policy-3.4.2-10.fc10