From afa4412fff8a6f4f194547f10d2282342c309fe6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 19 May 2015 23:18:34 +0100 Subject: [PATCH] syscall_other: correct uadmin permission check --- Kernel/syscall_other.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index be2e54c6..9304de23 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -429,7 +429,7 @@ char *ptr; arg_t _uadmin(void) { - if (!esuper()) + if (esuper()) return -1; /* Wants moving into machine specific files */ if (cmd == A_SHUTDOWN || cmd == A_REBOOT || cmd == A_DUMP) { -- 2.34.1