Skip to content

Commit

Permalink
woopsie daisies nigga
Browse files Browse the repository at this point in the history
  • Loading branch information
delorean committed Jan 16, 2024
1 parent 1b1553c commit 8459f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func main() {
log.Warn().Err(err).Msg("could not landlock")
}

if _, err = os.Open("/etc/passwd"); err == nil {
if _, err = os.Open("/etc/passwd"); err != nil {
log.Warn().Msg("landlock failed, could open /etc/passwd, are you on a 5.13+ kernel?")
} else {
log.Info().Err(err).Msg("landlocked")
Expand Down

0 comments on commit 8459f9e

Please sign in to comment.