remove-last-suser-call drivers/char/rocket.c
Subsystems (2)
PATCH 1/1 remove-last-suser-call drivers/char/rocket.c
Attached patch removes the lone remaining suser() call, suser() has long gone in summer 2002.
applies to 2.6.8.1-kjt1, compile tested
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.8-max/drivers/char/rocket.c | 4 ---- 1 files changed, 4 deletions(-)
drivers/char/rocket.c renamed from drivers/char/rocket.c~remove-last-suser-call +0 -4
@@ -1283,11 +1283,7 @@ static int set_config(struct r_port *infif (copy_from_user (&new_serial, new_info,sizeof (new_serial)))return -EFAULT ; -#ifdef CAP_SYS_ADMIN if (!capable (CAP_SYS_ADMIN )) -#else - if (!suser()) -#endif {if ((new_serial.flags & ~ROCKET_USR_MASK ) != (info->flags & ~ROCKET_USR_MASK ))return -EPERM ;
_
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors