diff options
author | Stef Walter <stef@memberwebs.com> | 2004-05-19 17:59:40 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-05-19 17:59:40 +0000 |
commit | 908e79b1b4e24faa39933a774a0f05333b7caa46 (patch) | |
tree | edc7521aea85ed3f00f051930022199e16788537 /srcx | |
parent | 827acafce382c8a6081c0ebbbf6931bb3358ade6 (diff) |
Must run as root
Diffstat (limited to 'srcx')
-rw-r--r-- | srcx/jkill.c | 3 |
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 |