Bug 1392774 - SELinux is preventing ifconfig from 'read' accesses on the file /run/vmware-active-nics.
Summary: SELinux is preventing ifconfig from 'read' accesses on the file /run/vmware-a...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:83883233c8cba619a4eed10bab8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-08 08:45 UTC by bugzilla
Modified: 2016-11-25 12:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-25 12:52:59 UTC
Type: ---


Attachments (Terms of Use)

Description bugzilla 2016-11-08 08:45:12 UTC
Description of problem:
With Workstation pro 12.5, just run ifconfig on a newly created Fedora 25
SELinux is preventing ifconfig from 'read' accesses on the file /run/vmware-active-nics.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/run/vmware-active-nics default label should be vmware_host_pid_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /run/vmware-active-nics

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that ifconfig should be allowed read access on the vmware-active-nics 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:
# ausearch -c 'ifconfig' --raw | audit2allow -M my-ifconfig
# semodule -X 300 -i my-ifconfig.pp

Additional Information:
Source Context                system_u:system_r:ifconfig_t:s0
Target Context                system_u:object_r:var_run_t:s0
Target Objects                /run/vmware-active-nics [ file ]
Source                        ifconfig
Source Path                   ifconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-216.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc7.git0.1.fc25.x86_64 #1
                              SMP Mon Sep 19 15:24:06 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-11-08 09:38:47 CET
Last Seen                     2016-11-08 09:38:47 CET
Local ID                      4d391574-d6ea-4eff-8f1c-8c863481a4ec

Raw Audit Messages
type=AVC msg=audit(1478594327.167:219): avc:  denied  { read } for  pid=2911 comm="ifconfig" path="/run/vmware-active-nics" dev="tmpfs" ino=36593 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0


Hash: ifconfig,ifconfig_t,var_run_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-216.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64
type:           libreport

Potential duplicate: bug 1257458

Comment 1 Robert 2016-11-24 10:45:59 UTC
Description of problem:
Messages displays just after login to Fedora 25 on VMware 11 Workstation.

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2016-11-25 12:52:59 UTC
*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/run/vmware-active-nics default label should be vmware_host_pid_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /run/vmware-active-nics 

Please, reopen this bug if problem occurs again


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