]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea12db4c1d09e35e089bc12e68c70deefa846de4
tree0955bf83f7f8bb832a7de7a0072f180a22adfbf7
parentf3a4274d2f45e68991296425413f6330b03eba3a
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