-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubernetes: fix SELinux label for kubelet plugins
Silences the kernel warning during startup: "Context system_u:object_r:container_file_t:s0 is not valid" Signed-off-by: Ben Cressey <bcressey@amazon.com>
- Loading branch information
Showing
6 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
packages/kubernetes/0001-always-set-relevant-variables-for-cross-compiling.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/kubernetes/0003-enable-PIE-for-platform-binaries.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/kubernetes/0004-override-SELinux-label-for-kubelet-plugins.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 03c21553cbd554761302f49f4e3e5c1d78a209cc Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <bcressey@amazon.com> | ||
Date: Tue, 17 Mar 2020 20:14:31 +0000 | ||
Subject: [PATCH 4/4] override SELinux label for kubelet plugins | ||
|
||
Signed-off-by: Ben Cressey <bcressey@amazon.com> | ||
--- | ||
pkg/kubelet/config/defaults.go | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/pkg/kubelet/config/defaults.go b/pkg/kubelet/config/defaults.go | ||
index 6c1e4ebf..1bce6b86 100644 | ||
--- a/pkg/kubelet/config/defaults.go | ||
+++ b/pkg/kubelet/config/defaults.go | ||
@@ -26,5 +26,5 @@ const ( | ||
DefaultKubeletContainersDirName = "containers" | ||
DefaultKubeletPluginContainersDirName = "plugin-containers" | ||
DefaultKubeletPodResourcesDirName = "pod-resources" | ||
- KubeletPluginsDirSELinuxLabel = "system_u:object_r:container_file_t:s0" | ||
+ KubeletPluginsDirSELinuxLabel = "system_u:object_r:local_t:s0" | ||
) | ||
-- | ||
2.21.0 | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters