summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
Diffstat (limited to 'srcx')
-rw-r--r--srcx/jkill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/srcx/jkill.c b/srcx/jkill.c
index 4afb703..4073f09 100644
--- a/srcx/jkill.c
+++ b/srcx/jkill.c
@@ -91,6 +91,9 @@ int main(int argc, char* argv[])
int jid, r, ret = 0;
pid_t child;
+ if(getuid() != 0)
+ errx(1, "must run as root");
+
/*
* When running in a jail we do things slightly
* differently, and accept different args