Bala-Vignesh-Reddy
e6fbd1759c
selftests: complete kselftest include centralization
...
This follow-up patch completes centralization of kselftest.h and
ksefltest_harness.h includes in remaining seltests files, replacing all
relative paths with a non-relative paths using shared -I include path in
lib.mk
Tested with gcc-13.3 and clang-18.1, and cross-compiled successfully on
riscv, arm64, x86_64 and powerpc arch.
[reddybalavignesh9979@gmail.com: add selftests include path for kselftest.h]
Link: https://lkml.kernel.org/r/20251017090201.317521-1-reddybalavignesh9979@gmail.com
Link: https://lkml.kernel.org/r/20251016104409.68985-1-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com >
Suggested-by: Andrew Morton <akpm@linux-foundation.org >
Link: https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/
Reviewed-by: Wei Yang <richard.weiyang@gmail.com >
Cc: David Hildenbrand <david@redhat.com >
Cc: David S. Miller <davem@davemloft.net >
Cc: Eric Dumazet <edumazet@google.com >
Cc: Günther Noack <gnoack@google.com >
Cc: Jakub Kacinski <kuba@kernel.org >
Cc: Liam Howlett <liam.howlett@oracle.com >
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Mickael Salaun <mic@digikod.net >
Cc: Ming Lei <ming.lei@redhat.com >
Cc: Paolo Abeni <pabeni@redhat.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Simon Horman <horms@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@suse.cz >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-11-27 14:24:31 -08:00
Mark Brown
4cb6c8af85
selftests/filesystems: Fix build of anon_inode_test
...
The newly added anon_inode_test test fails to build due to attempting to
include a nonexisting overlayfs/wrapper.h:
anon_inode_test.c:10:10: fatal error: overlayfs/wrappers.h: No such file or directory
10 | #include "overlayfs/wrappers.h"
| ^~~~~~~~~~~~~~~~~~~~~~
This is due to 0bd92b9fe5 ("selftests/filesystems: move wrapper.h out
of overlayfs subdir") which was added in the vfs-6.16.selftests branch
which was based on -rc5 and did not contain the newly added test so once
things were merged into mainline the build started failing - both parent
commits are fine.
Fixes: 3e406741b1 ("Merge tag 'vfs-6.16-rc1.selftests' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs")
Signed-off-by: Mark Brown <broonie@kernel.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2025-05-31 08:43:53 -07:00
Christian Brauner
25a6cc9a63
selftests/filesystems: add open() test for anonymous inodes
...
Test that anonymous inodes cannot be open()ed.
Link: https://lore.kernel.org/20250407-work-anon_inode-v1-9-53a44c20d44e@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-04-07 16:20:15 +02:00
Christian Brauner
f8ca403ae7
selftests/filesystems: add exec() test for anonymous inodes
...
Test that anonymous inodes cannot be exec()ed.
Link: https://lore.kernel.org/20250407-work-anon_inode-v1-8-53a44c20d44e@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-04-07 16:20:14 +02:00
Christian Brauner
fcf31ec7ca
selftests/filesystems: add chmod() test for anonymous inodes
...
Test that anonymous inodes cannot be chmod()ed.
Link: https://lore.kernel.org/20250407-work-anon_inode-v1-7-53a44c20d44e@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-04-07 16:20:14 +02:00
Christian Brauner
c784159750
selftests/filesystems: add chown() test for anonymous inodes
...
Test that anonymous inodes cannot be chown()ed.
Link: https://lore.kernel.org/20250407-work-anon_inode-v1-6-53a44c20d44e@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-04-07 16:20:14 +02:00