Bug 665935

Summary: SELinux is preventing /sbin/ifconfig from 'write' accesses on the file /var/cfengine/outputs/cf_vileknights_net_2010-12-27--21-01-01_1293501661.
Product: [Fedora] Fedora Reporter: virum
Component: cfengineAssignee: Jeff Sheltren <sheltren>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl, sheltren, stbulicek, virum
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:eacd6619f9dcceccfdb9f694fd8b9deb0e98aef22dfa70ae3842089aa77daa9a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 20:33:03 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 virum 2010-12-28 02:03:43 UTC
SELinux is preventing /sbin/ifconfig from 'write' accesses on the file /var/cfengine/outputs/cf_vileknights_net_2010-12-27--21-01-01_1293501661.

*****  Plugin catchall (50.5 confidence) suggests  ***************************

If you believe that ifconfig should be allowed write access on the cf_vileknights_net_2010-12-27--21-01-01_1293501661 file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep /sbin/ifconfig /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

*****  Plugin leaks (50.5 confidence) suggests  ******************************

If you want to ignore ifconfig trying to write access the cf_vileknights_net_2010-12-27--21-01-01_1293501661 file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /sbin/ifconfig /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:ifconfig_t:s0
Target Context                system_u:object_r:var_log_t:s0
Target Objects                /var/cfengine/outputs/cf_vileknights_net_2010-12-2
                              7--21-01-01_1293501661 [ file ]
Source                        ifconfig
Source Path                   /sbin/ifconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           net-tools-1.60-105.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-18.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686 #1
                              SMP Thu Dec 23 16:17:40 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Mon 27 Dec 2010 09:01:01 PM EST
Last Seen                     Mon 27 Dec 2010 09:01:01 PM EST
Local ID                      dce20708-ed39-4daf-a763-e2f321234aff

Raw Audit Messages
type=AVC msg=audit(1293501661.516:66365): avc:  denied  { write } for  pid=14763 comm="ifconfig" path="/var/cfengine/outputs/cf_vileknights_net_2010-12-27--21-01-01_1293501661" dev=dm-0 ino=794597 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file

ifconfig,ifconfig_t,var_log_t,file,write
type=SYSCALL msg=audit(1293501661.516:66365): arch=i386 syscall=execve success=yes exit=0 a0=814c960 a1=904cea0 a2=bf9f47b0 a3=2 items=0 ppid=14717 pid=14763 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ifconfig exe=/sbin/ifconfig subj=system_u:system_r:ifconfig_t:s0 key=(null)
ifconfig,ifconfig_t,var_log_t,file,write

#============= ifconfig_t ==============
allow ifconfig_t var_log_t:file write;

Comment 1 Daniel Walsh 2010-12-28 13:15:06 UTC
cfengine should open its log files for append, not write.

Comment 2 Fedora End Of Life 2012-08-16 20:33:08 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping