sockfs: getxattr: Fail with -EOPNOTSUPP for invalid attribute names
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Sep 2016 15:48:34 +0000 (17:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Oct 2016 02:17:38 +0000 (22:17 -0400)
commit971df15bd54ad46e907046ff33750a137b2f0096
tree0955bf83f7f8bb832a7de7a0072f180a22adfbf7
parente72a1a8b3a5a2a0c034f9ad07ca34638fc3b0c33
sockfs: getxattr: Fail with -EOPNOTSUPP for invalid attribute names

The standard return value for unsupported attribute names is
-EOPNOTSUPP, as opposed to undefined but supported attributes
(-ENODATA).

Also, fail for attribute names like "system.sockprotonameXXX" and
simplify the code a bit.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/socket.c