[PATCH] selftests: remove the LSM_ID_IMA check in lsm/lsm_list_modules_test

Paul Moore paul at paul-moore.com
Wed Nov 22 16:07:43 UTC 2023


The IMA LSM ID token was removed as IMA isn't yet a proper LSM, but
we forgot to remove the check from the selftest.

Reported-by: kernel test robot <yujie.liu at intel.com>
Closes: https://lore.kernel.org/r/202311221047.a9Dww3vY-lkp@intel.com/
Signed-off-by: Paul Moore <paul at paul-moore.com>
---
 tools/testing/selftests/lsm/lsm_list_modules_test.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/testing/selftests/lsm/lsm_list_modules_test.c b/tools/testing/selftests/lsm/lsm_list_modules_test.c
index 445c02f09c74..9df29b1e3497 100644
--- a/tools/testing/selftests/lsm/lsm_list_modules_test.c
+++ b/tools/testing/selftests/lsm/lsm_list_modules_test.c
@@ -101,9 +101,6 @@ TEST(correct_lsm_list_modules)
 		case LSM_ID_TOMOYO:
 			name = "tomoyo";
 			break;
-		case LSM_ID_IMA:
-			name = "ima";
-			break;
 		case LSM_ID_APPARMOR:
 			name = "apparmor";
 			break;
-- 
2.43.0




More information about the Linux-security-module-archive mailing list