Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovl: filter of trusted xattr results in audit
When filtering xattr list for reading, presence of trusted xattr results in a security audit log. However, if there is other content no errno will be set, and if there isn't, the errno will be -ENODATA and not -EPERM as is usually associated with a lack of capability. The check does not block the request to list the xattrs present. Switch to ns_capable_noaudit to reflect a more appropriate check. Signed-off-by: Mark Salyzyn <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] # v3.18+ Fixes: a082c6f ("ovl: filter trusted xattr for non-admin") Signed-off-by: Miklos Szeredi <[email protected]>
- Loading branch information