Bug 1264647

Summary: SELinux is preventing ip from read, append access on the file /run/libvirt/network/nwfilter.leases.
Product: [Fedora] Fedora Reporter: sudikeru
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: crobinso, dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:34eccb345008b269402f102b0812d96ea67625bd646e6c0a9bb02eeeabcbc484
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-14 15:56:29 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 sudikeru 2015-09-19 20:50:17 UTC
Description of problem:
Start Fedora 22 with Xen and bridge
SELinux is preventing ip from read, append access on the file /run/libvirt/network/nwfilter.leases.

*****  Plugin catchall (100. confidence) suggests   **************************

If вы считаете, что ip следует разрешить доступ read append к nwfilter.leases file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# 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-s0:c0.c1023
Target Context                system_u:object_r:dnsmasq_var_run_t:s0
Target Objects                /run/libvirt/network/nwfilter.leases [ file ]
Source                        ip
Source Path                   ip
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.13.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.6-201.fc22.x86_64 #1 SMP Fri
                              Sep 4 17:49:24 UTC 2015 x86_64 x86_64
Alert Count                   168
First Seen                    2015-09-19 22:31:46 MSK
Last Seen                     2015-09-19 23:20:09 MSK
Local ID                      77757bfb-893b-43b0-bcb2-b188e021ed6e

Raw Audit Messages
type=AVC msg=audit(1442694009.846:1082): avc:  denied  { read append } for  pid=7721 comm="ip" path="/run/libvirt/network/nwfilter.leases" dev="tmpfs" ino=27451 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dnsmasq_var_run_t:s0 tclass=file permissive=0


Hash: ip,ifconfig_t,dnsmasq_var_run_t,file,read,append

Version-Release number of selected component:
selinux-policy-3.13.1-128.13.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.6-201.fc22.x86_64
type:           libreport

Potential duplicate: bug 1178565

Comment 1 sudikeru 2015-10-19 08:20:10 UTC
Description of problem:
Start virtual machine on Fedora 22 with xen

Version-Release number of selected component:
selinux-policy-3.13.1-128.16.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.2.3-200.fc22.x86_64
type:           libreport

Comment 2 sudikeru 2015-10-19 08:43:04 UTC
Description of problem:
Start Fedora 22 with xen

Version-Release number of selected component:
selinux-policy-3.13.1-128.16.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.2.3-200.fc22.x86_64
type:           libreport

Comment 3 sudikeru 2015-11-03 22:35:30 UTC
Description of problem:
Start Fedora 22

Version-Release number of selected component:
selinux-policy-3.13.1-128.16.fc22.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.3-200.fc22.x86_64
type:           libreport

Comment 4 Cole Robinson 2016-04-14 15:56:29 UTC
Despite multiple attempts across multiple bugs sudikeru hasn't responded to NEEDINFO and infact the mail address bounces. Closing this as INSUFFICIENT_DATA