]> 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)
commit84c6b8596bef7173d2169acdb5d0ef6103a7db52
tree40264ba3186606cf36b0a3671f2c1fc954596e0f
parentb7d3e29ef6473c5692541bd265caa473d989b8a8
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