woopsie daisies

This commit is contained in:
delorean 2024-08-20 15:55:10 -05:00
parent e69c2a6685
commit 6088fb93d4

View File

@ -236,7 +236,7 @@ func main() {
log.Warn().Err(err).Msg("could not landlock") 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?") log.Warn().Msg("landlock failed, could open /etc/passwd, are you on a 5.13+ kernel?")
} else { } else {
log.Info().Err(err).Msg("landlocked") log.Info().Err(err).Msg("landlocked")