Skip to content

Commit 7eace5f

Browse files
committed
Correct match group
1 parent bbbd686 commit 7eace5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg-new/hostutils/initialize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (h *HostUtils) ConfigureHost(ctx context.Context, rc runtimeconfig.RuntimeC
4646
} else {
4747

4848
// Set selinux fcontext for embedded-cluster binary directory to bin_t
49-
out, err := exec.Command("semanage", "fcontext", "-a", "-s", "system_u", "-t", "bin_t", rc.EmbeddedClusterBinsSubDir()+"/(.*)?").CombinedOutput()
49+
out, err := exec.Command("semanage", "fcontext", "-a", "-s", "system_u", "-t", "bin_t", rc.EmbeddedClusterBinsSubDir()+"(/.*)?").CombinedOutput()
5050
if err != nil {
5151
h.logger.Debugf("unable to set contexts on binary directory: %v", err)
5252
h.logger.Debugln(out)

0 commit comments

Comments
 (0)