Skip to contentSkip to conversation

SECURITY: how to disable symlinks on cifs-client?

DISCUSSION Steve French 1 participant 1 message Mar 2, 2008 1 message not in the archive VFS

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · Ken

Hi, is it currently possible to disable (ignore) symlinks, on the client
(using mount or mount.cifs or autofs), symlinks which are on a remote
untrusted CIFS/Samba server.

Two cases:
1) the server such as Samba supports the Unix Extensions (which have native symlink support
in the protocol). In this case the client will read symlinks (unless unix extensions are disabled
e.g. "nounix" on the mount options). Note that the server can disable support
for "wide links" in smb.conf (ie those which point outside of the server share). Adding a "no wide links" feature to cifs in order to prevent symlinks pointing to
something outside of the share would be possible - is there a precedent in nfs or afs?

2) other types of servers: SFU (Windows "Services for Unix" style symlinks) will not be read by default (only
if "sfu" mount option is specified). Currently (with mount option
"sfu" specified) the code recognizes but does
not follow SFU symlinks).

Signature · 3 lines
Thanks,

Steve