]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: refactor the lsm `flags_overset_lsm_set_self_attr` test
authorAmit Vadhavana <av2082000@gmail.com>
Sat, 16 Nov 2024 15:21:36 +0000 (20:51 +0530)
committerPaul Moore <paul@paul-moore.com>
Wed, 18 Dec 2024 23:14:29 +0000 (18:14 -0500)
commit7a9b65ab0abd52ae646ba327522315d7500a7d4f
tree7bff50c92a79b6c10293def394e1bb5758459fca
parent012920131013208186ce0ded0ef1c47fa67a70f6
selftests: refactor the lsm `flags_overset_lsm_set_self_attr` test

Remove the temporary context variable `tctx` to simplify the code. use
the original context `ctx` directly in calls to `lsm_get_self_attr`,
eliminating redundancy without any functional changes.

Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Amit Vadhavana <av2082000@gmail.com>
[PM: subject tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
tools/testing/selftests/lsm/lsm_set_self_attr_test.c