Skip to content

Commit

Permalink
kallsyms: check if CONFIG_KALLSYMS=y
Browse files Browse the repository at this point in the history
Only if CONFIG_KALLSYMS=y enable, node /proc/kallsyms is generated.

We need to check if this config is set or not.

Signed-off-by: Kuan-Ying Lee <[email protected]>
Tested-by: Po-Hsu Lin <[email protected]>
Reviewed-by: Po-Hsu Lin <[email protected]>
Reviewed-by: Li Wang <[email protected]>
  • Loading branch information
kylee0215 authored and wangli5665 committed Jun 27, 2024
1 parent 1f07e42 commit e19a17a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testcases/kernel/security/kallsyms/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,9 @@ static struct tst_test test = {
.setup = setup,
.cleanup = cleanup,
.max_runtime = 60,
.needs_kconfigs = (const char *const[]){
"CONFIG_KALLSYMS=y",
NULL
},
.test_all = test_access_kernel_address,
};

0 comments on commit e19a17a

Please sign in to comment.