Bug 875307 - SELinux is preventing /usr/bin/vmnet-dhcpd from 'write' accesses on the directory /etc/vmware/vmnet8/dhcpd.
Summary: SELinux is preventing /usr/bin/vmnet-dhcpd from 'write' accesses on the direc...
Keywords:
Status: CLOSED NOTABUG
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:f568e4e6529c4b63a21517426f2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-10 10:47 UTC by Alen Siljak
Modified: 2012-11-12 10:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-12 10:01:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-10 10:47 UTC, Alen Siljak
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-10 10:47 UTC, Alen Siljak
no flags Details

Description Alen Siljak 2012-11-10 10:47:49 UTC
Description of problem:
This service is installed with VMWare Workstation and constantly fails on startup, preventing running the virtual machines with Workstation or Player.

Additional info:
libreport version: 2.0.18
kernel:         3.6.2-2.fc18.x86_64

description:
:SELinux is preventing /usr/bin/vmnet-dhcpd from 'write' accesses on the directory /etc/vmware/vmnet8/dhcpd.
:
:*****  Plugin restorecon (94.8 confidence) suggests  *************************
:
:If you want to fix the label. 
:/etc/vmware/vmnet8/dhcpd default label should be vmware_sys_conf_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /etc/vmware/vmnet8/dhcpd
:
:*****  Plugin catchall_labels (5.21 confidence) suggests  ********************
:
:If you want to allow vmnet-dhcpd to have write access on the dhcpd directory
:Then you need to change the label on /etc/vmware/vmnet8/dhcpd
:Do
:# semanage fcontext -a -t FILE_TYPE '/etc/vmware/vmnet8/dhcpd'
:where FILE_TYPE is one of the following: vmware_host_pid_t, vmware_host_tmp_t, systemd_passwd_var_run_t, vmware_log_t, tmp_t, vmware_sys_conf_t, var_log_t, var_run_t. 
:Then execute: 
:restorecon -v '/etc/vmware/vmnet8/dhcpd'
:
:
:*****  Plugin catchall (1.44 confidence) suggests  ***************************
:
:If you believe that vmnet-dhcpd should be allowed write access on the dhcpd directory 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 vmnet-dhcpd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:vmware_host_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:etc_t:s0
:Target Objects                /etc/vmware/vmnet8/dhcpd [ dir ]
:Source                        vmnet-dhcpd
:Source Path                   /usr/bin/vmnet-dhcpd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-50.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-2.fc18.x86_64 #1 SMP Wed Oct
:                              17 05:56:07 UTC 2012 x86_64 x86_64
:Alert Count                   6
:First Seen                    2012-11-09 21:51:31 CET
:Last Seen                     2012-11-10 11:45:31 CET
:Local ID                      382e7b3b-62fa-4909-82e6-92106c0006bc
:
:Raw Audit Messages
:type=AVC msg=audit(1352544331.915:344): avc:  denied  { write } for  pid=16511 comm="vmnet-dhcpd" name="dhcpd" dev="sda6" ino=788969 scontext=system_u:system_r:vmware_host_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1352544331.915:344): arch=x86_64 syscall=unlink success=no exit=EACCES a0=7fa14ad40fc0 a1=7fff08623677 a2=7fa14974ef01 a3=27 items=0 ppid=16428 pid=16511 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=vmnet-dhcpd exe=/usr/bin/vmnet-dhcpd subj=system_u:system_r:vmware_host_t:s0-s0:c0.c1023 key=(null)
:
:Hash: vmnet-dhcpd,vmware_host_t,etc_t,dir,write
:
:audit2allow
:
:#============= vmware_host_t ==============
:#!!!! The source type 'vmware_host_t' can write to a 'dir' of the following types:
:# vmware_host_pid_t, vmware_host_tmp_t, systemd_passwd_var_run_t, vmware_log_t, tmp_t, vmware_sys_conf_t, var_log_t, var_run_t
:
:allow vmware_host_t etc_t:dir write;
:
:audit2allow -R
:
:#============= vmware_host_t ==============
:#!!!! The source type 'vmware_host_t' can write to a 'dir' of the following types:
:# vmware_host_pid_t, vmware_host_tmp_t, systemd_passwd_var_run_t, vmware_log_t, tmp_t, vmware_sys_conf_t, var_log_t, var_run_t
:
:allow vmware_host_t etc_t:dir write;
:


Potential duplicate bug: 833085

Comment 1 Alen Siljak 2012-11-10 10:47:54 UTC
Created attachment 642104 [details]
File: type

Comment 2 Alen Siljak 2012-11-10 10:47:59 UTC
Created attachment 642105 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-12 10:01:55 UTC
Please execute

# restorecon -R -v /etc/vmware

which will fix it.


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