diff options
author | Paul Moore <paul@paul-moore.com> | 2023-10-24 18:42:38 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-11-13 04:54:42 +0100 |
commit | fdcf699b60712ecd6e41d9fc09137279257a4bf8 (patch) | |
tree | 2b9076ef67f4fd3542e16f6fa701c47453644bea /security/smack | |
parent | lsm: cleanup the size counters in security_getselfattr() (diff) | |
download | linux-fdcf699b60712ecd6e41d9fc09137279257a4bf8.tar.xz linux-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 <casey@schaufler-ca.com>
Reviewed-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/smack')
0 files changed, 0 insertions, 0 deletions