Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: restore NFSv3 ACL support

An error in e333f3bbefe3 left the nfsd_acl_program->pg_vers array empty,
which effectively turned off the server's support for NFSv3 ACLs.

Fixes: e333f3bbefe3 "nfsd: Allow containers to set supported nfs versions"
Cc: stable@vger.kernel.org
Cc: Trond Myklebust <trondmy@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

+1 -2
+1 -2
fs/nfsd/nfssvc.c
··· 95 95 96 96 #define NFSD_ACL_MINVERS 2 97 97 #define NFSD_ACL_NRVERS ARRAY_SIZE(nfsd_acl_version) 98 - static const struct svc_version *nfsd_acl_versions[NFSD_ACL_NRVERS]; 99 98 100 99 static struct svc_program nfsd_acl_program = { 101 100 .pg_prog = NFS_ACL_PROGRAM, 102 101 .pg_nvers = NFSD_ACL_NRVERS, 103 - .pg_vers = nfsd_acl_versions, 102 + .pg_vers = nfsd_acl_version, 104 103 .pg_name = "nfsacl", 105 104 .pg_class = "nfsd", 106 105 .pg_stats = &nfsd_acl_svcstats,