forked from linux-test-project/ltp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testcases: add module signature enforcement check
CONFIG_MODULE_SIG_FORCE kernel config and the module.sig_enforce in /proc/cmdline can prevent tests from inserting their test modules. Those tests will either fail with: 'insmod exited with a non-zero code 1 at tst_cmd.c:121 Or: insmod: ERROR: could not insert module ltp_insmod01.ko: Key was rejected by service. Add an extra check like what we did for syscall tests. Patch tested against a kernel with CONFIG_MODULE_SIG_FORCE=y, and another with module.sig_enforce added to /proc/cmdline. It's working as expected. Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Po-Hsu Lin <[email protected]>
- Loading branch information
1 parent
1b6877e
commit 5d9617a
Showing
6 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters