Skip to contentSkip to conversation

selftests: remove the LSM_ID_IMA check in lsm/lsm_list_modules_test

PATCH In review Paul Moore 2 participants 3 messages Nov 22, 2023 – Nov 27, 2023

Subsystems (2)
lore
Share & tools
lore

Paul Moore

author maintainer
#0 lore raw

PATCH 1/1 selftests: remove the LSM_ID_IMA check in lsm/lsm_list_modules_test

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.

---
 tools/testing/selftests/lsm/lsm_list_modules_test.c | 3 ---
 1 file changed, 3 deletions(-)
tools/testing/selftests/lsm/lsm_list_modules_test.c +0 -3
index 445c02f09c74..9df29b1e3497 100644
@@ -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;
Signature · 1 line
2.43.0
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Paul Moore

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.

Quoted 18 lines
---
 tools/testing/selftests/lsm/lsm_list_modules_test.c | 3 ---
 1 file changed, 3 deletions(-)
tools/testing/selftests/lsm/lsm_list_modules_test.c +0 -3
index 445c02f09c74..9df29b1e3497 100644
@@ -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;
author maintainer Applied
#2 lore raw
Quoted 13 lines · Casey Schaufler
Quoted 6 lines · Paul Moore

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.

Quoted 3 lines
---
 tools/testing/selftests/lsm/lsm_list_modules_test.c | 3 ---
 1 file changed, 3 deletions(-)

Merged into lsm/dev, thanks.

Quoted 14 lines
Quoted 14 lines
tools/testing/selftests/lsm/lsm_list_modules_test.c +0 -3
index 445c02f09c74..9df29b1e3497 100644
@@ -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;
Signature · 1 line
paul-moore.com