From: Andreas Gruenbacher Date: Fri, 27 May 2011 12:50:36 +0000 (+0200) Subject: xattr: Fix error results for non-existent / invisible attributes X-Git-Tag: v3.0-rc1~21^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b23bde19c08f14127a27d461a4e079942c7258;p=pandora-kernel.git xattr: Fix error results for non-existent / invisible attributes Return -ENODATA when trying to read a user.* attribute which cannot exist: user space otherwise does not have a reasonable way to distinguish between non-existent and inaccessible attributes. Likewise, return -ENODATA when an unprivileged process tries to read a trusted.* attribute: to unprivileged processes, those attributes are invisible (listxattr() won't include them). Related to this bug report: https://bugzilla.redhat.com/660613 Signed-off-by: Andreas Gruenbacher Signed-off-by: Al Viro --- Reading git-diff-tree failed