[Pkg-samba-maint] Bug#612764: This bug should be discussed with upstream, but...

Christian PERRIER bubulle at debian.org
Wed May 11 22:00:50 UTC 2011

...I need to understand what we're after..:-)

From my understanding, what's expected by manty and confirmed by Steve
is that the localtime link in the share would point to
/usr/share/zoneinfo/UTC *on the client* and there is no harm in this.

It seems indeed that the problem could be in the code that says "hey,
this is a link outside the share":

My share:
mykerinos:/var/tmp/samba-test# ls -l
total 0
lrwxrwxrwx 1 root     root 8 11 mai   23:26 bar -> /tmp/bar
-rw-r--r-- 1 cperrier root 0  9 mai    2010 foo

I mount this on /mnt:
mykerinos:/var/tmp/samba-test# mount -t cifs  // /mnt

mykerinos:/var/tmp/samba-test# cd /mnt
mykerinos:/mnt# ls -l
ls: impossible de lire le lien symbolique bar: Permission non accordée
total 0
lrwxrwxrwx 1 root     root 8 11 mai   23:26 bar
-rw-r--r-- 1 cperrier root 0  9 mai    2010 foo

mykerinos:/mnt# cat bar
cat: bar: Permission non accordée


[2011/05/11 23:33:35.220931,  5] smbd/filename.c:169(unix_convert)
  unix_convert called on file "bar"
[2011/05/11 23:33:35.220967,  5] smbd/filename.c:328(unix_convert)
  unix_convert begin: name = bar, dirpath = , start = bar
[2011/05/11 23:33:35.221007,  5] smbd/filename.c:351(unix_convert)
  conversion of base_name finished bar -> bar
[2011/05/11 23:33:35.221042,  3] smbd/vfs.c:881(check_reduced_name)
  check_reduced_name [bar] [/var/tmp/samba-test]
[2011/05/11 23:33:35.221107, 10] smbd/vfs.c:968(check_reduced_name)
  check_reduced_name realpath [bar] -> [/tmp/bar]
[2011/05/11 23:33:35.221142,  2] smbd/vfs.c:997(check_reduced_name)
  check_reduced_name: Bad access attempt: bar is a symlink outside the share path
[2011/05/11 23:33:35.221175,  5] smbd/filename.c:861(check_name)
  check_name: name bar failed with NT_STATUS_ACCESS_DENIED

What we would expect is that "bar" is not considered to be a symlink
outside the share path, but just a link following the *client* file
system, thus pointing to /tmp/bar *on the client*

Is that correct?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20110512/ccaf8fcf/attachment.pgp>

More information about the Pkg-samba-maint mailing list