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

Configure Feed

Select the types of activity you want to include in your feed.

nfsd: return error if nfs4_setacl fails

With the addition of POSIX ACLs to struct nfsd_attrs, we no longer
return an error if setting the ACL fails. Ensure we return the na_aclerr
error on SETATTR if there is one.

Fixes: c0cbe70742f4 ("NFSD: add posix ACLs to struct nfsd_attrs")
Cc: Neil Brown <neilb@suse.de>
Reported-by: Yongcheng Yang <yoyang@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Jeff Layton and committed by
Chuck Lever
01d53a88 18ebd35b

+2
+2
fs/nfsd/nfs4proc.c
··· 1135 1135 0, (time64_t)0); 1136 1136 if (!status) 1137 1137 status = nfserrno(attrs.na_labelerr); 1138 + if (!status) 1139 + status = nfserrno(attrs.na_aclerr); 1138 1140 out: 1139 1141 nfsd_attrs_free(&attrs); 1140 1142 fh_drop_write(&cstate->current_fh);