summaryrefslogtreecommitdiff
path: root/internal/ior.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-07 09:47:05 +0300
committerPaul Buetow <paul@buetow.org>2026-05-07 09:47:05 +0300
commited04ccd8e2297458ec97381806a05dea13090f0f (patch)
tree99b707441b6990686bbd2773c177bdc3b8bf3313 /internal/ior.go
parentac05beabdbaa90597ed0cfcea781d5ab44d123ba (diff)
update docs and ascii banner
Diffstat (limited to 'internal/ior.go')
-rw-r--r--internal/ior.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/ior.go b/internal/ior.go
index e6e7233..63da223 100644
--- a/internal/ior.go
+++ b/internal/ior.go
@@ -57,6 +57,11 @@ func dispatchRun(cfg flags.Config) error {
if cfg.TestLiveFlames {
return runTUITestLiveFlamesFn(cfg, tuiTestLiveFlamesStarter(cfg))
}
+ // All remaining modes require tracing, which needs root. Fail fast here so
+ // the TUI never starts (and hangs) when we already know it cannot trace.
+ if getEUID() != 0 {
+ return errRootPrivilegesRequired
+ }
if isHeadlessParquetMode(cfg) {
return runParquetFn(cfg)
}