The LSM initialization routines walk security_hook_heads as an array of struct list_head instead of via names to avoid a ton of needless source. Whitelist this to avoid the false positive warning from the plugin: security/security.c: In function ‘security_init’: security/security.c:59:20: note: found mismatched op0 struct pointer types: ‘struct list_head’ and ‘struct security_hook_heads’ struct list_head *list = (struct list_head *) &security_hook_heads; ^
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -46,6 +46,8 @@ struct whitelist_entry { · 45 unmodified lines | ||
| 46 | 46 | }; |
| 47 | 47 | |
| 48 | 48 | static const struct whitelist_entry whitelist[] = { |
| 49 | + /* walk struct security_hook_heads as an array of struct list_head */ | |
| 50 | + { "security/security.c", "list_head", "security_hook_heads" }, | |
| 49 | 51 | { } |
| 50 | 52 | }; |
| 51 | 53 | |