nfsd: fix problem with setting ACL on directories
authorNeilBrown <neilb@suse.com>
Mon, 7 Mar 2016 09:19:02 +0000 (10:19 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 7 Mar 2016 09:38:40 +0000 (10:38 +0100)
commit377b71e18f20d69b0df301ce7040554f40ba9651
tree481610ce359eabda7766ed8baea0a2638b0eec32
parente890f13e596ef311c219d8ffe8d7107e56971ee4
nfsd: fix problem with setting ACL on directories

This is a regression of 3.12 stable commit
ba1816b40a87a3f3c4ca9cd54a593a10d87bd391 (nfsd: fix NFS regression).

If a non-inherited ACL is set on a directory, nfsd will try to set the Posix
default ACL to NULL.  This gets converted to "" by generic_setxattr().
As "" is not a valid posix acl attribute value, this results in an error.

So instead of setting the xattr to NULL, remove it.

Fixes: ba1816b40a ("nfsd: fix NFS regression")
Signed-off-by: NeilBrown <neilb@suse.com>
Cc: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfsd/vfs.c