Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.1.100 /kernel/time.c

Filename:/kernel/time.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.1.87  2.1.72  2.1.54  2.1.36  2.1.31  2.1.30 
(Following) 2.1.103  2.1.128  2.1.130 

Location
[  2.1.100
  [  kernel
     o  time.c

Patch

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 */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.