Commit 719247e
authored
feat: support for SELinux mount (#756)
Mount options specified in the NodePublishVolumeRequest are already
forwarded to /bin/mount (`-o context=<SELinux_Label>`). The /bin/mount
binary included in our container image can detect whether the kernel
supports SELinux.
The user still has to enable the feature gates `SELinuxMount` and
`SELinuxMountReadWriteOncePod` in Kubernetes version `1.30`.
Further Reference:
- [KEP
1710](https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/1710-selinux-relabeling/README.md#volume-mounting)
- [What fields does the CSIDriver object
have](https://kubernetes-csi.github.io/docs/csi-driver-object.html?highlight=SELinux#what-fields-does-the-csidriver-object-have)
- [Feature
Gates](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/#feature-gates-for-alpha-or-beta-features)
Closes #5821 parent 4b9aa4e commit 719247e
5 files changed
Lines changed: 5 additions & 0 deletions
File tree
- chart
- .snapshots
- templates/core
- deploy/kubernetes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
363 | 364 | | |
364 | 365 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
488 | 489 | | |
489 | 490 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments