patch-2.1.100 linux/drivers/sbus/char/rtc.c

Next file: linux/drivers/sbus/char/vfc_dev.c
Previous file: linux/drivers/pci/quirks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/sbus/char/rtc.c linux/drivers/sbus/char/rtc.c
@@ -91,7 +91,7 @@
 
 
 	case RTCSET:
-		if (!suser())
+		if (!capable(CAP_SYS_TIME))
 			return -EPERM;
 
 		copy_from_user_ret(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time), -EFAULT);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov