aboutsummaryrefslogtreecommitdiffstats
path: root/security/bpf/hooks.c
diff options
context:
space:
mode:
authorPaul Moore <[email protected]>2023-10-24 16:42:38 +0000
committerPaul Moore <[email protected]>2023-11-13 03:54:42 +0000
commitfdcf699b60712ecd6e41d9fc09137279257a4bf8 (patch)
tree2b9076ef67f4fd3542e16f6fa701c47453644bea /security/bpf/hooks.c
parentlsm: cleanup the size counters in security_getselfattr() (diff)
downloadkernel-fdcf699b60712ecd6e41d9fc09137279257a4bf8.tar.gz
kernel-fdcf699b60712ecd6e41d9fc09137279257a4bf8.zip
lsm: correct error codes in security_getselfattr()
We should return -EINVAL if the user specifies LSM_FLAG_SINGLE without supplying a valid lsm_ctx struct buffer. Acked-by: Casey Schaufler <[email protected]> Reviewed-by: Mickaël Salaün <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/bpf/hooks.c')
0 files changed, 0 insertions, 0 deletions