Bug 627733

Summary: SELinux is preventing /usr/sbin/libvirtd "relabelfrom" access on system-config-firewall.augnew.
Product: [Fedora] Fedora Reporter: Joel <hundred17>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, edneymatias, johannbg, mgrepl, renich
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:de6b6ff85a68552dab8541eb3b6d48a0a69e12f5b7010a2e9fbcf3dbace4a3f5
Fixed In Version: selinux-policy-3.9.0-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-08 04:31:47 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 Joel 2010-08-26 19:22:00 UTC
Summary:

SELinux is preventing /usr/sbin/libvirtd "relabelfrom" access on
system-config-firewall.augnew.

Detailed Description:

[libvirtd has a permissive type (virtd_t). This access was not denied.]

SELinux denied access requested by libvirtd. It is not expected that this access
is required by libvirtd and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:virtd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:system_conf_t:s0
Target Objects                system-config-firewall.augnew [ file ]
Source                        libvirtd
Source Path                   /usr/sbin/libvirtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libvirt-0.8.3-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.8.8-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.2-9.fc14.x86_64 #1 SMP Tue Aug
                              17 22:36:15 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Thu 26 Aug 2010 03:21:05 PM EDT
Last Seen                     Thu 26 Aug 2010 03:21:05 PM EDT
Local ID                      fb392fc5-a196-4f66-8748-6d35f25a3b2e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1282850465.335:320): avc:  denied  { relabelfrom } for  pid=2468 comm="libvirtd" name="system-config-firewall.augnew" dev=sda4 ino=2631751 scontext=unconfined_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:system_conf_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1282850465.335:320): avc:  denied  { relabelto } for  pid=2468 comm="libvirtd" name="system-config-firewall.augnew" dev=sda4 ino=2631751 scontext=unconfined_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_conf_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1282850465.335:320): arch=c000003e syscall=189 success=yes exit=0 a0=1220e40 a1=7fd662720e29 a2=12595d0 a3=23 items=0 ppid=1 pid=2468 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="libvirtd" exe="/usr/sbin/libvirtd" subj=unconfined_u:system_r:virtd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,libvirtd,virtd_t,system_conf_t,file,relabelfrom
audit2allow suggests:

#============= virtd_t ==============
allow virtd_t system_conf_t:file { relabelfrom relabelto };

Comment 1 Daniel Walsh 2010-08-26 19:27:48 UTC
Fixed in selinux-policy-3.9.0-1.fc14

Comment 2 Fedora Update System 2010-08-30 15:59:13 UTC
selinux-policy-3.9.0-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.0-2.fc14

Comment 3 Fedora Update System 2010-08-30 19:37:54 UTC
selinux-policy-3.9.0-2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.0-2.fc14

Comment 4 Fedora Update System 2010-09-08 04:30:05 UTC
selinux-policy-3.9.0-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.