[PATCH v14 11/11] LSM: selftests for Linux Security Module syscalls
Paul Moore
paul at paul-moore.com
Wed Sep 6 23:22:58 UTC 2023
On Aug 28, 2023 Casey Schaufler <casey at schaufler-ca.com> wrote:
>
> Add selftests for the three system calls supporting the LSM
> infrastructure. This set of tests is limited by the differences
> in access policy enforced by the existing security modules.
>
> Signed-off-by: Casey Schaufler <casey at schaufler-ca.com>
> ---
> MAINTAINERS | 1 +
> security/security.c | 2 +-
> tools/testing/selftests/Makefile | 1 +
> tools/testing/selftests/lsm/.gitignore | 1 +
> tools/testing/selftests/lsm/Makefile | 17 ++
> tools/testing/selftests/lsm/common.c | 89 ++++++
> tools/testing/selftests/lsm/common.h | 33 +++
> tools/testing/selftests/lsm/config | 3 +
> .../selftests/lsm/lsm_get_self_attr_test.c | 275 ++++++++++++++++++
> .../selftests/lsm/lsm_list_modules_test.c | 140 +++++++++
> .../selftests/lsm/lsm_set_self_attr_test.c | 74 +++++
> 11 files changed, 635 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/lsm/.gitignore
> create mode 100644 tools/testing/selftests/lsm/Makefile
> create mode 100644 tools/testing/selftests/lsm/common.c
> create mode 100644 tools/testing/selftests/lsm/common.h
> create mode 100644 tools/testing/selftests/lsm/config
> create mode 100644 tools/testing/selftests/lsm/lsm_get_self_attr_test.c
> create mode 100644 tools/testing/selftests/lsm/lsm_list_modules_test.c
> create mode 100644 tools/testing/selftests/lsm/lsm_set_self_attr_test.c
Both Serge and Mickaël had comments on the previous revision of this
patch, it would be nice if they could review the current revision and
comment.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list