Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 258290

How to set SELINUX context in fstab for shared folders

$
0
0

Having read through the documentation for shared folders and mounting in linux, I don't see if there is a clear way to set the selinux context for a shared folder upon mounting.
See doc page:VMware Workstation Documentation Center


Attempting to use the same way the context is set for other file systems results in an error

 

/etc/fstab

 

.host:/NewTrino /var/www/html fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,nonempty,defaults,context="system_u:object_r:httpd_sys_content_t:s0" 0 0


mount -a

fuse: unknown option `context="system_u:object_r:httpd_sys_content_t:s0"'

 

After trying many different variations of different commands and options, it would appear that either setting the context is not supported by vmhgfs or the process is not documented.  Can some one verify this and keep me in check before I go file a feature request?


Viewing all articles
Browse latest Browse all 258290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>