selftests/bpf: Move sample generation code to ima_test_common()
authorRoberto Sassu <roberto.sassu@huawei.com>
Wed, 2 Mar 2022 11:13:59 +0000 (12:13 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Mar 2022 02:57:54 +0000 (18:57 -0800)
commit2746de3c53d64436a5a565e87d74b65d82ab6ac7
treeb84c1769688da52a1113e65c8844e51db8c253c0
parent174b16946e39ebd369097e0f773536c91a8c1a4c
selftests/bpf: Move sample generation code to ima_test_common()

Move sample generator code to ima_test_common() so that the new function
can be called by multiple LSM hooks.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220302111404.193900-5-roberto.sassu@huawei.com
tools/testing/selftests/bpf/progs/ima.c