aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/filesystems/utils.h
Commit message (Collapse)AuthorAgeFilesLines
* selftests/filesystems: create setup_userns() helperAmir Goldstein2025-05-121-0/+1
| | | | | | | | | | Add helper to utils.c and use it in statmount userns tests. Reviewed-by: John Hubbard <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
* selftests/filesystems: create get_unique_mnt_id() helperAmir Goldstein2025-05-121-0/+2
| | | | | | | | | | | | | Add helper to utils.c and use it in mount-notify and statmount tests. Linking with utils.c drags in a dependecy with libcap, so add it to the Makefile of the tests. Reviewed-by: John Hubbard <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
* selftests/ovl: add third selftest for "override_creds"Christian Brauner2025-02-191-0/+1
| | | | | | | | Add a simple test to verify that the new "override_creds" option works. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Amir Goldstein <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
* selftests/filesystems: add utils.{c,h}Christian Brauner2025-02-191-0/+44
Add a new set of helpers that will be used in follow-up patches. Signed-off-by: Christian Brauner <[email protected]>