]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteeb09ec3985922f4b0d4ee65ca0e9f037f6427ee
tree40264ba3186606cf36b0a3671f2c1fc954596e0f
parentd54be35c0426eb3afea07d5359bc94424358cde5
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