summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-05-19 17:59:40 +0000
committerStef Walter <stef@memberwebs.com>2004-05-19 17:59:40 +0000
commit908e79b1b4e24faa39933a774a0f05333b7caa46 (patch)
treeedc7521aea85ed3f00f051930022199e16788537 /srcx
parent827acafce382c8a6081c0ebbbf6931bb3358ade6 (diff)
Must run as root
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