• Kubernetes Submit Queue's avatar
    Merge pull request #64026 from jsafrane/csi-selinux · 36b1f676
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 63914, 63887, 64116, 64026, 62933). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Enable SELinux relabeling in CSI volumes
    
    **What this PR does / why we need it**:
    CSI volume plugin should provide correct information in `GetAttributes` call so kubelet can ask container runtime to relabel the volume. Therefore CSI volume plugin needs to check if a random volume mounted by a CSI driver supports SELinux or not by checking for "seclabel" mount or superblock option.
    
    
    **Which issue(s) this PR fixes**
    Fixes #63965
    
    **Release note**:
    ```release-note
    NONE
    ```
    
    @saad-ali @vladimirvivien @davidz627 
    @cofyc, FYI, I'm changing `struct mountInfo`.
    36b1f676
Name
Last commit
Last update
..
fake Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
csi_attacher.go Loading commit data...
csi_attacher_test.go Loading commit data...
csi_client.go Loading commit data...
csi_client_test.go Loading commit data...
csi_mounter.go Loading commit data...
csi_mounter_test.go Loading commit data...
csi_plugin.go Loading commit data...
csi_plugin_test.go Loading commit data...
csi_util.go Loading commit data...