1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/client
Jeff Layton 0597b97d15 mount.cifs: don't leak passwords with verbose option
When running mount.cifs with the --verbose option, it'll print out the
option string that it passes to the kernel...including the mount
password if there is one. Print a placeholder string instead to help
ensure that this info can't be used for nefarious purposes.

Also, the --verbose option printed the option string before it was
completely assembled anyway. This patch should also make sure that
the complete option string is printed out.

Finally, strndup passwords passed in on the command line to ensure that
they aren't shown by --verbose as well. Passwords used this way can
never be truly kept private from other users on the machine of course,
but it's simple enough to do it this way for completeness sake.

Reported-by: Ronald Volgers <r.c.volgers@student.utwente.nl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <sfrench@us.ibm.com>
2009-10-01 14:29:22 +02:00
..
cifs_spnego.h Move mount.cifs/umount.cifs to the top level and remove the outdated copy 2009-06-02 23:24:33 +02:00
cifs.upcall.c cifs-upcall: fix the build after spnego merge. 2009-09-17 08:53:29 +02:00
mount.cifs.c mount.cifs: don't leak passwords with verbose option 2009-10-01 14:29:22 +02:00
mount.h Move mount.cifs/umount.cifs to the top level and remove the outdated copy 2009-06-02 23:24:33 +02:00
mtab.c Move mount.cifs/umount.cifs to the top level and remove the outdated copy 2009-06-02 23:24:33 +02:00
umount.cifs.c umount.cifs: do not attempt to update /etc/mtab if it is symbolic link 2009-07-27 12:02:35 -04:00