Skip to content

Commit 631e448

Browse files
authored
Merge pull request #188 from ashley-hawkins/fix/daemon-devnull-permission-denied
fix: allow access to /dev/null
2 parents aaf2379 + 503d7b6 commit 631e448

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/wireproxy/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func lock(stage string) {
8080
// Linux
8181
panicIfError(landlock.V1.BestEffort().RestrictPaths(
8282
landlock.RODirs("/"),
83+
landlock.RWFiles("/dev/null").IgnoreIfMissing(),
8384
))
8485
case "boot-daemon":
8586
case "read-config":

0 commit comments

Comments
 (0)