When trying to extract function tomoyo_write_control on file security/tomoyo/common.c, clang-extract can't rename symbol tomoyo_kernel_namespace:
security/tomoyo/common.c:442:32: error: use of undeclared identifier 'tomoyo_kernel_namespace'
442 | list_for_each_entry_rcu(ptr, &tomoyo_kernel_namespace.policy_list[TOMOYO_ID_MANAGER], head.list,
| ^
security/tomoyo/common.c:442:32: error: use of undeclared identifier 'tomoyo_kernel_namespace'
security/tomoyo/common.c:442:32: error: use of undeclared identifier 'tomoyo_kernel_namespace'
security/tomoyo/common.c:442:32: error: use of undeclared identifier 'tomoyo_kernel_namespace'
security/tomoyo/common.c:442:32: error: use of undeclared identifier 'tomoyo_kernel_namespace'
The command below is able to reproduce the problem on upstream linux kernel.
Attention!
You need to have CONFIG_SECURITY=y and SECURITY_TOMOYO=y to have the file compiled, so the builtin-policy.h is also generated.
When trying to extract function tomoyo_write_control on file security/tomoyo/common.c, clang-extract can't rename symbol
tomoyo_kernel_namespace
:The command below is able to reproduce the problem on upstream linux kernel.
Attention!
You need to have CONFIG_SECURITY=y and SECURITY_TOMOYO=y to have the file compiled, so the builtin-policy.h is also generated.