summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sbus/char/rtc.c')
-rw-r--r--drivers/sbus/char/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sbus/char/rtc.c b/drivers/sbus/char/rtc.c
index ccc8dd2cd..160c7e5de 100644
--- a/drivers/sbus/char/rtc.c
+++ b/drivers/sbus/char/rtc.c
@@ -91,7 +91,7 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
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);