Bug 891770 - SELinux is preventing /usr/sbin/libvirtd from 'relabelfrom' accesses on the tun_socket .
Summary: SELinux is preventing /usr/sbin/libvirtd from 'relabelfrom' accesses on the t...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6667bbd2a84bae8913090ba13f8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-03 23:10 UTC by sheepdestroyer
Modified: 2020-04-07 13:52 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-05 14:27:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description sheepdestroyer 2013-01-03 23:10:44 UTC
Description of problem:
SELinux is preventing /usr/sbin/libvirtd from 'relabelfrom' accesses on the tun_socket .

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

If you believe that libvirtd should be allowed relabelfrom access on the  tun_socket 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 libvirtd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:virtd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                 [ tun_socket ]
Source                        libvirtd
Source Path                   /usr/sbin/libvirtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libvirt-daemon-0.10.2.2-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-67.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.0-rc2 #1 SMP Thu Jan 3
                              06:18:38 CET 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-01-03 06:24:26 CET
Last Seen                     2013-01-03 20:43:55 CET
Local ID                      3f9e81b9-c854-45bf-ad62-5405d20b888c

Raw Audit Messages
type=AVC msg=audit(1357242235.837:102): avc:  denied  { relabelfrom } for  pid=904 comm="libvirtd" scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=tun_socket


type=SYSCALL msg=audit(1357242235.837:102): arch=x86_64 syscall=ioctl success=no exit=EACCES a0=d a1=400454ca a2=7fdb4cddebf0 a3=11 items=0 ppid=1 pid=904 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=libvirtd exe=/usr/sbin/libvirtd subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 key=(null)

Hash: libvirtd,virtd_t,unlabeled_t,tun_socket,relabelfrom

audit2allow

#============= virtd_t ==============
#!!!! This avc is allowed in the current policy

allow virtd_t unlabeled_t:tun_socket relabelfrom;

audit2allow -R

#============= virtd_t ==============
#!!!! This avc is allowed in the current policy

allow virtd_t unlabeled_t:tun_socket relabelfrom;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.0-rc2
type:           libreport

Comment 1 Daniel Walsh 2013-01-05 14:27:04 UTC
#!!!! This avc is allowed in the current policy

Looks like it is already fixed.


Note You need to log in before you can comment on or make changes to this bug.