From 908e79b1b4e24faa39933a774a0f05333b7caa46 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 19 May 2004 17:59:40 +0000 Subject: Must run as root --- srcx/jkill.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3