patch-2.1.100 linux/mm/swapfile.c
Next file: linux/mm/vmscan.c
Previous file: linux/mm/swap.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 6 10:56:06 1998
- Orig file:
v2.1.99/linux/mm/swapfile.c
- Orig date:
Wed Apr 8 19:36:29 1998
diff -u --recursive --new-file v2.1.99/linux/mm/swapfile.c linux/mm/swapfile.c
@@ -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;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov