public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] remove-last-suser-call drivers/char/rocket.c
@ 2004-08-15 15:00 maximilian attems
  0 siblings, 0 replies; only message in thread
From: maximilian attems @ 2004-08-15 15:00 UTC (permalink / raw)
  To: kj; +Cc: Linux Kernel Mailing List



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 <janitor@sternwelten.at>



---

 linux-2.6.8-max/drivers/char/rocket.c |    4 ----
 1 files changed, 4 deletions(-)

diff -puN drivers/char/rocket.c~remove-last-suser-call drivers/char/rocket.c
--- linux-2.6.8/drivers/char/rocket.c~remove-last-suser-call	2004-08-15 16:54:13.000000000 +0200
+++ linux-2.6.8-max/drivers/char/rocket.c	2004-08-15 16:54:13.000000000 +0200
@@ -1283,11 +1283,7 @@ static int set_config(struct r_port *inf
 	if (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;

_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-15 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 15:00 [patch] remove-last-suser-call drivers/char/rocket.c maximilian attems

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox