rocket: Don't let random users reset the controller
PATCH 1/1 rocket: Don't let random users reset the controller
Signed-off-by Alan Cox <[email protected]>
drivers/char/rocket.c +3 -0
@@ -1401,6 +1399,9 @@ {int reset; +if (!capable (CAP_SYS_ADMIN )) +return -EPERM ; +if (copy_from_user (&reset, arg,sizeof (int )))return -EFAULT ;if (reset)