• NeilBrown's avatar
    nfsd: fix problem with setting ACL on directories · 377b71e1
    NeilBrown authored
    This is a regression of 3.12 stable commit
    ba1816b4 (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: ba1816b4 ("nfsd: fix NFS regression")
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Cc: Sergio Gelato <Sergio.Gelato@astro.su.se>
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    377b71e1
vfs.c 55.8 KB