summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-01-26 08:15:41 -0500
committerJeff Layton <jlayton@redhat.com>2010-01-26 08:15:41 -0500
commit3ae5dac462c4ed0fb2cd94553583c56fce2f9d80 (patch)
tree1e1c9478b2a38b761a95d1ccc2119cc7618ea159 /tests
parent7148eff0b7f3a58be2d2c47516a8b9e3bc3d3c64 (diff)
downloadsamba-3ae5dac462c4ed0fb2cd94553583c56fce2f9d80.tar.gz
samba-3ae5dac462c4ed0fb2cd94553583c56fce2f9d80.tar.bz2
samba-3ae5dac462c4ed0fb2cd94553583c56fce2f9d80.zip
mount.cifs: take extra care that mountpoint isn't changed during mount
It's possible to trick mount.cifs into mounting onto the wrong directory by replacing the mountpoint with a symlink to a directory. mount.cifs attempts to check the validity of the mountpoint, but there's still a possible race between those checks and the mount(2) syscall. To guard against this, chdir to the mountpoint very early, and only deal with it as "." from then on out. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions