fstab / cifs

CIFS Flexvolume Plugin for Kubernetes
MIT License
212 stars 49 forks source link

Added SElinux as optional parameter. #24

Open frjaraur opened 3 years ago

frjaraur commented 3 years ago

I had a problem working on a SElinux enabled environment and I added a quick patch, adding an option and standard SELinux labels allowing containers to manage CIFS volume content (I wasn´t able to read or write any CIFS volume because SELinux does not allow this operations from containers using its default __cifs_t label). If selinuxEnabled: "true" option is used, context=system_u:object_r:container_file_t:s0__ will be added as option during mount operation.