[Bug 1702529] Re: ACCESS_DENIED with symlinks within a root ("/") share

Dariusz Gadomski 1702529 at bugs.launchpad.net
Wed Aug 23 12:43:34 UTC 2017


** Tags added: sts sts-sru-needed

** Description changed:

  [Impact]
  
-  * In case of accessing directories chdir to it directly instead of its
+  * In case of accessing directories chdir to it directly instead of its
  parent directory. This changes how dir symlinks are handled in root
  shares and leads to avoiding the ACCESS_DENIED ISSUE.
  
  [Test Case]
  
-  1. Prepare smb server with a share:
+  1. Prepare smb server with a share:
  [rootshare]
-    guest ok = yes
-    path = /
-    wide links = no
-    follow symlinks = yes
-  2. On the server:
+    guest ok = yes
+    path = /
+    wide links = no
+    follow symlinks = yes
+  2. On the server:
  mkdir -p /srv/dir
  ln -s /srv/dir /srv/symdir.
-  3. Connect from a client:
- smbclient -d 5 -m smb3 //server/rootshare -c "cd srv\symdir; dir"
+  3. Connect from a client:
+ smbclient -m smb3 //server/rootshare -c "cd srv\symdir; dir"
  
  [Regression Potential]
  
-  * When accessing broken symlinks share's base directory is accessed.
+  * When accessing broken symlinks share's base directory is accessed.
  This however seems to be consistent with a pre-fix behavior.
  
  [Other Info]
-  
+ 
  Original bug description:
  
  See Samba bug: https://bugzilla.samba.org/show_bug.cgi?id=12873 for more
  information and test case. Also view LP bug:
  https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1701073 for more
  information.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1702529

Title:
   ACCESS_DENIED with symlinks within a root ("/") share

Status in samba:
  Unknown
Status in samba package in Ubuntu:
  In Progress
Status in samba source package in Trusty:
  In Progress
Status in samba source package in Xenial:
  In Progress
Status in samba source package in Zesty:
  In Progress

Bug description:
  [Impact]

   * In case of accessing directories chdir to it directly instead of
  its parent directory. This changes how dir symlinks are handled in
  root shares and leads to avoiding the ACCESS_DENIED ISSUE.

  [Test Case]

   1. Prepare smb server with a share:
  [rootshare]
     guest ok = yes
     path = /
     wide links = no
     follow symlinks = yes
   2. On the server:
  mkdir -p /srv/dir
  ln -s /srv/dir /srv/symdir.
   3. Connect from a client:
  smbclient -m smb3 //server/rootshare -c "cd srv\symdir; dir"

  [Regression Potential]

   * When accessing broken symlinks share's base directory is accessed.
  This however seems to be consistent with a pre-fix behavior.

  [Other Info]

  Original bug description:

  See Samba bug: https://bugzilla.samba.org/show_bug.cgi?id=12873 for
  more information and test case. Also view LP bug:
  https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1701073 for more
  information.

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1702529/+subscriptions



More information about the foundations-bugs mailing list