NFSv4 fix acl retrieval over krb5i/krb5p mounts
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 2 Jan 2020 22:09:54 +0000 (17:09 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:33 +0000 (10:54 -0500)
commit62a1573fcf844a559a79bec2eafc4309f2be5c5b
tree40264ba3186606cf36b0a3671f2c1fc954596e0f
parentc74dfe97c104bda5144bfa8193d8e5ea67d5da7f
NFSv4 fix acl retrieval over krb5i/krb5p mounts

For the krb5i and krb5p mount, it was problematic to truncate the
received ACL to the provided buffer because an integrity check
could not be preformed.

Instead, provide enough pages to accommodate the largest buffer
bounded by the largest RPC receive buffer size.

Note: I don't think it's possible for the ACL to be truncated now.
Thus NFS4_ACL_TRUNC flag and related code could be possibly
removed but since I'm unsure, I'm leaving it.

v2: needs +1 page.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c