From 1347f0e50879a1eb9b0bf988d1e5e7d58043d152 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Thu, 15 Aug 2024 10:57:31 -0600 Subject: [PATCH] Bump up maximum allowed ACL entries (#189) nfsd supports up to 1024 ACEs. Windows servers support a security descriptor size of up to 64 KiB, which translates to around 1700 aces, but since we don't locally support that size we'll keep both at 1024 max. --- fs/nfs_common/nfs41acl_xdr.h | 2 +- fs/smb/client/nfs41acl_xdr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs_common/nfs41acl_xdr.h b/fs/nfs_common/nfs41acl_xdr.h index 6df8e74b1e97..31d2f5456a07 100644 --- a/fs/nfs_common/nfs41acl_xdr.h +++ b/fs/nfs_common/nfs41acl_xdr.h @@ -53,7 +53,7 @@ /* * Macros for sanity checks related to XDR and ACL buffer sizes */ -#define NFS41ACL_MAX_ENTRIES 128 +#define NFS41ACL_MAX_ENTRIES 1024 #define ACE4SIZE (NACE41_LEN * sizeof(u32)) #define XDRBASE (2 * sizeof (u32)) diff --git a/fs/smb/client/nfs41acl_xdr.h b/fs/smb/client/nfs41acl_xdr.h index b9f0093efacf..600653b1a624 100644 --- a/fs/smb/client/nfs41acl_xdr.h +++ b/fs/smb/client/nfs41acl_xdr.h @@ -113,7 +113,7 @@ /* * Macros for sanity checks related to XDR and ACL buffer sizes */ -#define NFS41ACL_MAX_ENTRIES 128 +#define NFS41ACL_MAX_ENTRIES 1024 #define ACE4SIZE (NACE41_LEN * sizeof(u32)) #define XDRBASE (2 * sizeof (u32))