diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2024-08-09 01:04:59 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2024-10-10 05:49:40 +0300 |
commit | 08ae3e5f5fc8edb9bd0c7ef9696ff29ef18b26ef (patch) | |
tree | 85f37b9777bf0a54ce4f290bf16a61d41d5effc0 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 699ae6241920b0fa837fa57e61f7d5b0e2e65b58 (diff) | |
download | linux-08ae3e5f5fc8edb9bd0c7ef9696ff29ef18b26ef.tar.xz |
integrity: Use static_assert() to check struct sizes
Commit 38aa3f5ac6d2 ("integrity: Avoid -Wflex-array-member-not-at-end
warnings") introduced tagged `struct evm_ima_xattr_data_hdr` and
`struct ima_digest_data_hdr`. We want to ensure that when new members
need to be added to the flexible structures, they are always included
within these tagged structs.
So, we use `static_assert()` to ensure that the memory layout for
both the flexible structure and the tagged struct is the same after
any changes.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Tested-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions