]> git.samba.org - samba.git/commit
mount.cifs: check access of credential files before opening
authorJeff Layton <jlayton@redhat.com>
Fri, 25 Sep 2009 10:45:10 +0000 (06:45 -0400)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Oct 2009 12:30:56 +0000 (14:30 +0200)
commit0293057abd8cdfc7c690cf5c8dd20b8a626d52ca
treeea7b493557687c09e8e4a455375718775b6d5ae3
parent5b0b93991f256d1cd5c681c60075c4b17a0bc3c9
mount.cifs: check access of credential files before opening

It's possible for an unprivileged user to pass a setuid mount.cifs a
credential or password file to which he does not have access. This can cause
mount.cifs to open the file on his behalf and possibly leak the info in the
first few lines of the file.

Check the access permissions of the file before opening it.

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>
client/mount.cifs.c