Re: [PATCH] mount.cifs: reacquire CAP_DAC_READ_SEARCH before calling mount(2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue,  8 Feb 2011 15:02:24 -0500
Jeff Layton <jlayton@xxxxxxxxx> wrote:

> 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@xxxxxxxxxxxxx>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxx>
> ---
>  mount.cifs.c |   10 ++++++++--
>  1 files changed, 8 insertions(+), 2 deletions(-)
> 

Merged and should make 4.9 release.

- -- 
Jeff Layton <jlayton@xxxxxxxxx>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAk1VKiAACgkQyP0gxQMdzIAKeACfUNGG8QYwQjzprz4LLSGpdZim
LIAAnAx12aicXHvsjX4y7dLMJwFMuyf/
=t17y
-----END PGP SIGNATURE-----
ÿôèº{.nÇ+?·?®?­?+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¥?{±ýÈ?³ø§¶?¡Ü¨}©?²Æ zÚ&j:+v?¨þø¯ù®w¥þ?à2?Þ?¨è­Ú&¢)ß¡«a¶Úÿÿûàz¿äz¹Þ?ú+?ù???Ý¢jÿ?wèþf



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux