diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/cifs-umount-same-user.patch | 22 | ||||
-rw-r--r-- | patches/series | 1 |
2 files changed, 0 insertions, 23 deletions
diff --git a/patches/cifs-umount-same-user.patch b/patches/cifs-umount-same-user.patch deleted file mode 100644 index 81d6ba9ef3..0000000000 --- a/patches/cifs-umount-same-user.patch +++ /dev/null @@ -1,22 +0,0 @@ -Goal: the CIFS_IOC_CHECKMOUNT ioctl check assumed that errors would return a -value > 0, when in fact the return value on failure is -1. Correct this -assumption, which was allowing any user to unmount shares mounted by other -users. - -Author: Steve Langasek <vorlon@debian.org> - -Upstream status: submitted as bugzilla bug #4784. Will be in 3.0.28a - -Index: samba-3.0.25c/source/client/umount.cifs.c -=================================================================== ---- samba-3.0.25c.orig/source/client/umount.cifs.c 2007-08-26 13:09:08.419408730 +0200 -+++ samba-3.0.25c/source/client/umount.cifs.c 2007-08-26 13:09:08.919384334 +0200 -@@ -131,7 +131,7 @@ - printf("user unmounting via %s is an optional feature of",thisprogram); - printf(" the cifs filesystem driver (cifs.ko)"); - printf("\n\tand requires cifs.ko version 1.32 or later\n"); -- } else if (rc > 0) -+ } else if (rc != 0) - printf("user unmount of %s failed with %d %s\n",dir,errno,strerror(errno)); - close(fileid); - diff --git a/patches/series b/patches/series index e0b77509a5..bc29bbdf58 100644 --- a/patches/series +++ b/patches/series @@ -12,7 +12,6 @@ undefined-symbols.patch VERSION.patch adapt_machine_creation_script.patch autoconf.patch -cifs-umount-same-user.patch smbpasswd-syslog.patch get_global_sam_sid-non-root.patch usershare.patch |