aboutsummaryrefslogtreecommitdiff
path: root/fs/hostfs
diff options
context:
space:
mode:
authorGravatar Mickaël Salaün <mic@digikod.net> 2023-06-12 21:14:30 +0200
committerGravatar Mickaël Salaün <mic@digikod.net> 2023-06-12 21:26:23 +0200
commit35ca4239929737bdc021ee923f97ebe7aff8fcc4 (patch)
treeeac47ae574d943b0cfbf95238ce960a4bb241789 /fs/hostfs
parentselftests/landlock: Add tests for pseudo filesystems (diff)
downloadlinux-35ca4239929737bdc021ee923f97ebe7aff8fcc4.tar.gz
linux-35ca4239929737bdc021ee923f97ebe7aff8fcc4.tar.bz2
linux-35ca4239929737bdc021ee923f97ebe7aff8fcc4.zip
selftests/landlock: Add hostfs tests
Add tests for the hostfs filesystems to make sure it has a consistent inode management, which is required for Landlock's file hierarchy identification. This adds 5 new tests for layout3_fs with the hostfs variant. Add hostfs to the new (architecture-specific) config.um file. The hostfs filesystem, only available for an User-Mode Linux kernel, is special because we cannot explicitly mount it. The layout3_fs.hostfs variant tests are skipped if the current test directory is not backed by this filesystem. The layout3_fs.hostfs.tag_inode_dir_child and layout3_fs.hostfs.tag_inode_file tests pass thanks to a previous commit fixing hostfs inode management. Without this fix, the deny-by-default policy would apply and all access requests would be denied. Link: https://lore.kernel.org/r/20230612191430.339153-7-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'fs/hostfs')
0 files changed, 0 insertions, 0 deletions