| Kernel v2.1.100 /fs/super.c |
|---|
 2.1.100
 fs
 super.c
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)) {
|