patch-2.1.100 linux/fs/smbfs/proc.c
Next file: linux/fs/super.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Wed May 6 10:56:05 1998
- Orig file:
v2.1.99/linux/fs/smbfs/proc.c
- Orig date:
Tue Mar 10 10:03:34 1998
diff -u --recursive --new-file v2.1.99/linux/fs/smbfs/proc.c linux/fs/smbfs/proc.c
@@ -630,7 +630,8 @@
goto out;
error = -EACCES;
- if (current->uid != server->mnt->mounted_uid && !suser())
+ if (current->uid != server->mnt->mounted_uid &&
+ !capable(CAP_SYS_ADMIN))
goto out;
error = -EBADF;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov