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

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

Advertisement

Kernel v2.1.100 /fs/super.c

Filename:/fs/super.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.1.93  2.1.90  2.1.84  2.1.81  2.1.79  2.1.75 
(Following) 2.1.101  2.1.102  2.1.107  2.1.110  2.1.116  2.1.117 

Location
[  2.1.100
  [  fs
     o  super.c

Patch

diff -u --recursive --new-file v2.1.99/linux/fs/super.c linux/fs/super.c
--- v2.1.99/linux/fs/super.c   Mon Apr  6 17:41:01 1998
+++ linux/fs/super.c   Wed May  6 10:56:05 1998
@@ -743,7 +743,7 @@
    struct dentry * dentry;
    int retval;
 
-   if (!suser())
+   if (!capable(CAP_SYS_ADMIN))
       return -EPERM;
 
    lock_kernel();
@@ -985,7 +985,7 @@
    struct file dummy;   /* allows read-write or read-only flag */
 
    lock_kernel();
-   if (!suser())
+   if (!capable(CAP_SYS_ADMIN))
       goto out;
    if ((new_flags &
         (MS_MGC_MSK | MS_REMOUNT)) == (MS_MGC_VAL | MS_REMOUNT)) {


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