From a405f3ed3e25d3b229b4fafb26d1d75c5ef57f01 Mon Sep 17 00:00:00 2001 From: Harald Koerfgen Date: Sat, 10 Mar 2001 11:55:04 +0000 Subject: suser() cleanup from Rob Radez --- drivers/tc/zs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/tc/zs.c b/drivers/tc/zs.c index 1991e17ee..d9828c708 100644 --- a/drivers/tc/zs.c +++ b/drivers/tc/zs.c @@ -1130,7 +1130,7 @@ static int set_serial_info(struct dec_serial * info, copy_from_user(&new_serial,new_info,sizeof(new_serial)); old_info = *info; - if (!suser()) { + if (!capable(CAP_SYS_ADMIN)) { if ((new_serial.baud_base != info->baud_base) || (new_serial.type != info->type) || (new_serial.close_delay != info->close_delay) || -- cgit v1.2.3