Commit c776cff
sockfs: getxattr: Fail with -EOPNOTSUPP for invalid attribute names
commit 971df15 upstream.
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>
[removes a build warning on 4.4.y - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent c8d6672 commit c776cff
1 file changed
Lines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 473 | + | |
482 | 474 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
488 | 478 | | |
489 | | - | |
| 479 | + | |
490 | 480 | | |
491 | | - | |
492 | | - | |
493 | | - | |
| 481 | + | |
494 | 482 | | |
495 | 483 | | |
496 | 484 | | |
| |||
0 commit comments