syscall_other: correct uadmin permission check
authorAlan Cox <alan@linux.intel.com>
Tue, 19 May 2015 22:18:34 +0000 (23:18 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 19 May 2015 22:18:34 +0000 (23:18 +0100)
Kernel/syscall_other.c

index be2e54c..9304de2 100644 (file)
@@ -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) {