[CentOS] SELinux settings for directory shared via NFS and samba?

Fri Jul 19 13:43:42 UTC 2019
Monty Shinn <monty.shinn.gm at gmail.com>

> On Jul 19, 2019, at 8:27 AM, Leon Fauster via CentOS <centos at centos.org> wrote:
> 
> Am 19.07.2019 um 14:51 schrieb hw <hw at gc-24.de>:
>> Hi,
>> 
>> what do I need to do to share the same directory with both NFS and samba?
>> SElinux requires 'samba_share_t' for samba and 'nfs_t' for NFS, and AFAIC
>> I can't set both at the same time on a directory.
> 
> Maybe samba_share_nfs boolean? (not tested)
> 
> --
> LF
> 
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

Might look into “public_content_rw_t” context as well.

ms