diff options
author | Jeff Layton <jlayton@samba.org> | 2011-02-08 15:33:09 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2011-02-08 15:33:09 -0500 |
commit | b6d2d91df012f965f29ba26489aca009712a230c (patch) | |
tree | ab160970ea5aac7159f37a2962f0f201fc879ab9 /resolve_host.h | |
parent | 24093bef78e1e4ea5d541716ebba63e8d4e15c58 (diff) | |
download | cifs-utils-b6d2d91df012f965f29ba26489aca009712a230c.tar.gz cifs-utils-b6d2d91df012f965f29ba26489aca009712a230c.tar.bz2 cifs-utils-b6d2d91df012f965f29ba26489aca009712a230c.zip |
mount.cifs: reacquire CAP_DAC_READ_SEARCH before calling mount(2)
It's possible that the user is trying to mount onto a directory to which
he doesn't have execute perms. If that's the case then the mount will
currently fail. Fix this by reenabling CAP_DAC_READ_SEARCH before
calling mount(2). That will ensure that the kernel's permissions check
for this is bypassed.
Reported-by: Erik Logtenberg <erik@logtenberg.eu>
Signed-off-by: Jeff Layton <jlayton@samba.org>
Reviewed-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'resolve_host.h')
0 files changed, 0 insertions, 0 deletions