HomeFreeBSD

linux(4): Return ENODATA from getxattr syscalls instead of EPERM

Description

linux(4): Return ENODATA from getxattr syscalls instead of EPERM

On Linux ENODATA mean the named attribute does not exist, or the
process has no access to this attribute.

Approved by: re (gjb)
Reported by: zirias
PR: 273517
Tested by: zirias
MFC after: 1 week

(cherry picked from commit 4d59b790553ef75b9a4b6a673eab3354f3d012b3)
(cherry picked from commit a9b8a0ced46efe72ec118a749d191b29ce47712b)

Details

Provenance
dchaginAuthored on Sep 1 2023, 8:10 AM
Parents
rGd64356323c10: linux(4): Merge getxattr for future error recode
Branches
Unknown
Tags
Unknown