| Summary: | SELinux is preventing ifconfig from 'read' accesses on the file /run/vmware-active-nics. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | bugzilla |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | dominick.grift, dwalsh, edpsmgr, lvrabec, mgrepl, plautrba, pmoore, ssekidde |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:83883233c8cba619a4eed10bab8562c17d2ce3923a36c531d052a34b006588c8;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-25 12:52:59 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 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 ***** 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 |
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