BUG: Wide Links - does not work as documented

Peter Polkinghorne Peter.Polkinghorne at moomin.brunel.ac.uk
Thu Apr 6 16:13:41 GMT 2000


[this was sent to Samba mailing list - but no response - but may be this list 
is more appropriate - but perhaps this option is hardly used, so no one cares?]

Environment: Samba 2.0.6 - under Solaris 2.5.1 and 7

We have wide links = no for all our shares.

BUT it does not stop access outside the volume for where the symlink points
to a file -- eg:

ln -s /etc/passwd PASSWD

But if the symlink points to directory, it is prohibited:

ln -s /etc ETC


> From looking at the code in lib/util.c for reduce_name(), it because the
check is done by chdir to base part of filename.  This obviously fails to
detect differences for symlinks directly to files.

The Solution would be to either change the documentation or make the test
detect whether dealing with a symlink at the last level - all a bit tricky.


-- 
-----------------------------------------------------------------------------
| Peter Polkinghorne, Computer Centre, Brunel University, Uxbridge, UB8 3PH,|
| Peter.Polkinghorne at brunel.ac.uk   +44 1895 274000 x2561       UK          |
-----------------------------------------------------------------------------




More information about the samba-technical mailing list