Skip to content

Commit

Permalink
Merge pull request kubernetes#123726 from haircommander/kubelet_t
Browse files Browse the repository at this point in the history
e2e_node: use kubelet_exec_t instead of bin_t for kubelet
  • Loading branch information
k8s-ci-robot committed Mar 5, 2024
2 parents 2bed008 + 646d464 commit 1e4124b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e_node/remote/node_e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func osSpecificActions(args, host, workspace string) (string, error) {
// kubelet on Fedora CoreOS distribution
func setKubeletSELinuxLabels(host, workspace string) error {
cmd := getSSHCommand(" && ",
fmt.Sprintf("/usr/bin/chcon -u system_u -r object_r -t bin_t %s", filepath.Join(workspace, "kubelet")),
fmt.Sprintf("/usr/bin/chcon -u system_u -r object_r -t kubelet_exec_t %s", filepath.Join(workspace, "kubelet")),
fmt.Sprintf("/usr/bin/chcon -u system_u -r object_r -t bin_t %s", filepath.Join(workspace, "e2e_node.test")),
fmt.Sprintf("/usr/bin/chcon -u system_u -r object_r -t bin_t %s", filepath.Join(workspace, "ginkgo")),
fmt.Sprintf("/usr/bin/chcon -u system_u -r object_r -t bin_t %s", filepath.Join(workspace, "mounter")),
Expand Down

0 comments on commit 1e4124b

Please sign in to comment.