From: Jeff Layton Date: Wed, 5 Mar 2014 17:47:37 +0000 (-0500) Subject: security: have cap_dentry_init_security return error X-Git-Tag: v3.15-rc1~112^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a141c8e77043bd674dd6aa0b40bc3675cb7b1d;p=pandora-kernel.git security: have cap_dentry_init_security return error Currently, cap_dentry_init_security returns 0 without actually initializing the security label. This confuses its only caller (nfs4_label_init_security) which expects an error in that situation, and causes it to end up sending out junk onto the wire instead of simply suppressing the label in the attributes sent. When CONFIG_SECURITY is disabled, security_dentry_init_security returns -EOPNOTSUPP. Have cap_dentry_init_security do the same. Signed-off-by: Jeff Layton Acked-by: Serge E. Hallyn Signed-off-by: James Morris --- Reading git-diff-tree failed