diff options
author | Mickaël Salaün <mic@digikod.net> | 2023-06-12 21:14:29 +0200 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2023-06-12 21:26:23 +0200 |
commit | 04f9070e99a4c5d60f05436f63e470c19b579e24 (patch) | |
tree | d7a7e040ac6f175a9ba9b4a5294e1e5b6ed32fe8 /sound | |
parent | 55ab3fbe8333148e9c21477ffdc4edbe1f568f55 (diff) |
selftests/landlock: Add tests for pseudo filesystems
Add generic and read-only tests for 6 pseudo filesystems to make sure
they have a consistent inode management, which is required for
Landlock's file hierarchy identification:
- tmpfs
- ramfs
- cgroup2
- proc
- sysfs
Update related kernel configuration to support these new filesystems,
remove useless CONFIG_SECURITY_PATH, and sort all entries. If these
filesystems are not supported by the kernel running tests, the related
tests are skipped.
Expanding variants, this adds 25 new tests for layout3_fs:
- tag_inode_dir_parent
- tag_inode_dir_mnt
- tag_inode_dir_child
- tag_inode_dir_file
- release_inodes
Test coverage for security/landlock with kernel debug code:
- 94.7% of 835 lines according to gcc/gcov-12
- 93.0% of 852 lines according to gcc/gcov-13
Test coverage for security/landlock without kernel debug code:
- 95.5% of 624 lines according to gcc/gcov-12
- 93.1% of 641 lines according to gcc/gcov-13
Link: https://lore.kernel.org/r/20230612191430.339153-6-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions