patch-2.1.100 linux/kernel/time.c
Next file: linux/mm/Makefile
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Wed May 6 10:56:06 1998
- Orig file:
v2.1.99/linux/kernel/time.c
- Orig date:
Tue Feb 17 13:12:49 1998
diff -u --recursive --new-file v2.1.99/linux/kernel/time.c linux/kernel/time.c
@@ -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 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov