aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2024-03-13 21:37:48 -0400
committerPaul Moore <paul@paul-moore.com>2024-03-14 11:31:26 -0400
commiteaf0e7a3d2711018789e9fdb89191d19aa139c47 (patch)
treeb169f84cd0df5431f622a3a729e135606a9fae84 /tools
parenta5a858f622a0aff5cdb5e271442cd01b2a01467f (diff)
downloadlinux-eaf0e7a3d2711018789e9fdb89191d19aa139c47.tar.gz
lsm: handle the NULL buffer case in lsm_fill_user_ctx()
Passing a NULL buffer into the lsm_get_self_attr() syscall is a valid way to quickly determine the minimum size of the buffer needed to for the syscall to return all of the LSM attributes to the caller. Unfortunately we/I broke that behavior in commit d7cf3412a9f6 ("lsm: consolidate buffer size handling into lsm_fill_user_ctx()") such that it returned an error to the caller; this patch restores the original desired behavior of using the NULL buffer as a quick way to correctly size the attribute buffer. Cc: stable@vger.kernel.org Fixes: d7cf3412a9f6 ("lsm: consolidate buffer size handling into lsm_fill_user_ctx()") Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions