From 0d90eb44ac23052e79d42d7520520ebc0f2d2247 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 1 Oct 2026 13:44:08 +0900 Subject: cmd/mbf: poison open via environment This enables use of non-cache cmd/mbf utils as root. Signed-off-by: Ophestra --- cmd/mbf/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/mbf/main.go') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 014a7f47..5dd4e8a0 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -71,7 +71,7 @@ func main() { log.SetPrefix("mbf: ") msg := message.New(log.Default()) - if os.Geteuid() == 0 { + if !poisonOpen && os.Geteuid() == 0 { log.Fatal("this program must not run as root") } -- cgit v1.3.1