Bug 789277

Summary: SELinux is preventing /sbin/ip from 'append' accesses on the None /var/webmin/miniserv.error.
Product: [Fedora] Fedora Reporter: Brian Lockwood <t100ss>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:5b9173004e5fa47c6b4f9b2836c73a319b3fe8fbaa57806cd5c10ad17f141de8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-10 10:11:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Brian Lockwood 2012-02-10 09:29:25 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.3-2.fc16.x86_64
reason:         SELinux is preventing /sbin/ip from 'append' accesses on the None /var/webmin/miniserv.error.
time:           Fri 10 Feb 2012 09:28:57 AM GMT

description:
:SELinux is preventing /sbin/ip from 'append' accesses on the None /var/webmin/miniserv.error.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that ip should be allowed append access on the miniserv.error <Unknown> 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 ip /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:ifconfig_t:s0
:Target Context                unconfined_u:object_r:var_t:s0
:Target Objects                /var/webmin/miniserv.error [ None ]
:Source                        ip
:Source Path                   /sbin/ip
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           iproute-2.6.39-4.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.2.3-2.fc16.x86_64 #1 SMP Fri Feb 3 20:08:08 UTC
:                              2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Fri 10 Feb 2012 08:43:47 AM GMT
:Last Seen                     Fri 10 Feb 2012 09:26:43 AM GMT
:Local ID                      0060ecf0-4555-4489-b6f3-2e8d9067afd8
:
:Raw Audit Messages
:type=AVC msg=audit(1328866003.515:77): avc:  denied  { append } for  pid=2572 comm="ip" path="/var/webmin/miniserv.error" dev=dm-1 ino=2361484 scontext=system_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328866003.515:77): arch=c000003e syscall=59 success=yes exit=0 a0=1a7fc90 a1=1ab77c0 a2=1a82d60 a3=30 items=0 ppid=2571 pid=2572 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ip" exe="/sbin/ip" subj=system_u:system_r:ifconfig_t:s0 key=(null)
:
:
:Hash: ip,ifconfig_t,var_t,None,append
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-10 10:11:14 UTC
You will need to run restorecon

$ restorecon -R - v /var/webmin

How did you create /var/webmin directory?