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

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

Advertisement

Kernel v2.1.100 /mm/swapfile.c

Filename:/mm/swapfile.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.1.94  2.1.89  2.1.79  2.1.61  2.1.52  2.1.45 
(Following) 2.1.106  2.1.107  2.1.112  2.1.117  2.1.118  2.1.119 

Location
[  2.1.100
  [  mm
     o  swapfile.c

Patch

diff -u --recursive --new-file v2.1.99/linux/mm/swapfile.c linux/mm/swapfile.c
--- v2.1.99/linux/mm/swapfile.c   Wed Apr  8 19:36:29 1998
+++ linux/mm/swapfile.c   Wed May  6 10:56:06 1998
@@ -356,7 +356,7 @@
    int err = -EPERM;
    
    lock_kernel();
-   if (!suser())
+   if (!capable(CAP_SYS_ADMIN))
       goto out;
 
    dentry = namei(specialfile);
@@ -491,7 +491,7 @@
    static int least_priority = 0;
 
    lock_kernel();
-   if (!suser())
+   if (!capable(CAP_SYS_ADMIN))
       goto out;
    memset(&filp, 0, sizeof(filp));
    p = swap_info;


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