| Kernel v2.1.100 /kernel/time.c |
|---|
 2.1.100
 kernel
 time.c
diff -u --recursive --new-file v2.1.99/linux/kernel/time.c linux/kernel/time.c
--- v2.1.99/linux/kernel/time.c Tue Feb 17 13:12:49 1998
+++ linux/kernel/time.c Wed May 6 10:56:06 1998
@@ -87,7 +87,7 @@
{
int value;
- if (!suser())
+ if (!capable(CAP_SYS_TIME))
return -EPERM;
if (get_user(value, tptr))
return -EFAULT;
@@ -156,7 +156,7 @@
{
static int firsttime = 1;
- if (!suser())
+ if (!capable(CAP_SYS_TIME))
return -EPERM;
if (tz) {
@@ -221,7 +221,7 @@
long ltemp, mtemp, save_adjust;
/* In order to modify anything, you gotta be super-user! */
- if (txc->modes && !suser())
+ if (txc->modes && !capable(CAP_SYS_TIME))
return -EPERM;
/* Now we validate the data before disabling interrupts */
|