Skip to content

Commit 2539ceb

Browse files
authored
Merge pull request #176 from rancherlabs/mirrored
landlock: Use stderr for errors
2 parents bd21426 + f239974 commit 2539ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/landlock/landlock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func EnforceOrDie() {
6464
),
6565
)
6666
if err != nil {
67-
fmt.Printf("failed to enforce landlock policies (requires Linux 5.13+): %v\n", err)
67+
fmt.Fprintf(os.Stderr, "failed to enforce landlock policies (requires Linux 5.13+): %v\n", err)
6868
if val == "on" {
6969
os.Exit(2)
7070
}

0 commit comments

Comments
 (0)