Fix inverted root check

This commit is contained in:
aarch
2025-10-25 15:42:45 +02:00
parent 53548166f7
commit 22ab2fe17d
+1 -1
View File
@@ -205,7 +205,7 @@ impl SchemeSync for AcpiScheme<'_> {
let allowed_to_eval = if flags & O_ACCMODE == O_RDONLY || flag_stat {
false
} else if ctx.uid != 0 {
} else if ctx.uid == 0 {
true
} else {
return Err(Error::new(EINVAL));