diff options
author | Paul Moore <paul@paul-moore.com> | 2024-01-31 00:16:29 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-02-02 21:46:39 +0300 |
commit | bfda63fa2243f66e3d07cce2f38cf12d68a2ddf0 (patch) | |
tree | cdc06c670d60facc8c96e6a841e90774b0e7a934 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 90593caf7db74da2300f7a7056a26ae000b3e7cd (diff) | |
download | linux-bfda63fa2243f66e3d07cce2f38cf12d68a2ddf0.tar.xz |
selinux: correct return values in selinux_socket_getpeersec_dgram()
Instead of returning -EINVAL if any type of error occurs, limit
-EINVAL to only those errors caused by passing a bad/invalid socket
or packet/skb. In other cases where everything is correct but there
isn't a valid peer label we return -ENOPROTOOPT.
This helps make selinux_socket_getpeersec_dgram() more consistent
with selinux_socket_getpeersec_stream().
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions