cifs: add missing support for ACLs in SMB 3.11
authorRonnie Sahlberg <lsahlber@redhat.com>
Fri, 10 Aug 2018 01:03:55 +0000 (11:03 +1000)
committerSteve French <stfrench@microsoft.com>
Fri, 10 Aug 2018 16:53:32 +0000 (11:53 -0500)
We were missing the methods for get_acl and friends for the 3.11
dialect.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2ops.c

index 7869ea4f6fab4931ed6cb7c4fa9fbd3d130b6402..541258447c4c4ec203f32cc1696af56f1fdb2509 100644 (file)
@@ -3586,6 +3586,11 @@ struct smb_version_operations smb311_operations = {
        .query_all_EAs = smb2_query_eas,
        .set_EA = smb2_set_ea,
 #endif /* CIFS_XATTR */
+#ifdef CONFIG_CIFS_ACL
+       .get_acl = get_smb2_acl,
+       .get_acl_by_fid = get_smb2_acl_by_fid,
+       .set_acl = set_smb2_acl,
+#endif /* CIFS_ACL */
        .next_header = smb2_next_header,
 };