]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Backup intent flag missing for directory opens with backupuid mounts
authorSteve French <stfrench@microsoft.com>
Mon, 27 Aug 2018 22:04:13 +0000 (17:04 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 3 Sep 2018 04:21:42 +0000 (23:21 -0500)
commit503c929e3933af70e492132aeb0be2bf39fa77ef
tree75afd94f0ec0ef036bde8c9812237d6250c3142f
parentf41e253a5d6ec5afe453f31686014e33f940526f
SMB3: Backup intent flag missing for directory opens with backupuid mounts

When "backup intent" is requested on the mount (e.g. backupuid or
backupgid mount options), the corresponding flag needs to be set
on opens of directories (and files) but was missing in some
places causing access denied trying to enumerate and backup
servers.

Fixes kernel bugzilla #200953
https://bugzilla.kernel.org/show_bug.cgi?id=200953

Reported-and-tested-by: <whh@rubrik.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/inode.c
fs/cifs/smb2ops.c