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
Amir Goldstein
0bd92b9fe5
selftests/filesystems: move wrapper.h out of overlayfs subdir
...
This is not an overlayfs specific header.
Reviewed-by: John Hubbard <jhubbard@nvidia.com >
Signed-off-by: Amir Goldstein <amir73il@gmail.com >
Link: https://lore.kernel.org/20250509133240.529330-2-amir73il@gmail.com
Reviewed-by: Christian Brauner <brauner@kernel.org >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-05-12 11:40:12 +02:00
Linus Torvalds
804382d59b
Merge tag 'vfs-6.15-rc1.overlayfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
...
Pull vfs overlayfs updates from Christian Brauner:
"Currently overlayfs uses the mounter's credentials for its
override_creds() calls. That provides a consistent permission model.
This patches allows a caller to instruct overlayfs to use its
credentials instead. The caller must be located in the same user
namespace hierarchy as the user namespace the overlayfs instance will
be mounted in. This provides a consistent and simple security model.
With this it is possible to e.g., mount an overlayfs instance where
the mounter must have CAP_SYS_ADMIN but the credentials used for
override_creds() have dropped CAP_SYS_ADMIN. It also allows the usage
of custom fs{g,u}id different from the callers and other tweaks"
* tag 'vfs-6.15-rc1.overlayfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
selftests/ovl: add third selftest for "override_creds"
selftests/ovl: add second selftest for "override_creds"
selftests/filesystems: add utils.{c,h}
selftests/ovl: add first selftest for "override_creds"
ovl: allow to specify override credentials
2025-03-24 10:37:40 -07:00
Christian Brauner
a1579f6bf6
selftests/ovl: add third selftest for "override_creds"
...
Add a simple test to verify that the new "override_creds" option works.
Link: https://lore.kernel.org/r/20250219-work-overlayfs-v3-4-46af55e4ceda@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-02-19 14:32:12 +01:00
Christian Brauner
6e5ed6587e
selftests/ovl: add second selftest for "override_creds"
...
Add a simple test to verify that the new "override_creds" option works.
Link: https://lore.kernel.org/r/20250219-work-overlayfs-v3-3-46af55e4ceda@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-02-19 14:32:12 +01:00
Christian Brauner
96f0943259
selftests/ovl: add first selftest for "override_creds"
...
Add a simple test to verify that the new "override_creds" option works.
Link: https://lore.kernel.org/r/20250219-work-overlayfs-v3-2-46af55e4ceda@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-02-19 14:32:12 +01:00
Christian Brauner
ccc829b15d
selftests: add tests for using detached mount with overlayfs
...
Test that it is possible to use detached mounts as overlayfs layers.
Link: https://lore.kernel.org/r/20250123-erstbesteigung-angeeignet-1d30e64b7df2@brauner
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-02-12 12:12:27 +01:00
Christian Brauner
85c8700cb6
selftests/overlayfs: test specifying layers as O_PATH file descriptors
...
Verify that userspace can specify layers via O_PATH file descriptors.
Link: https://lore.kernel.org/r/20250210-work-overlayfs-v2-2-ed2a949b674b@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2025-02-12 10:02:11 +01:00
Christian Brauner
d59dfd625a
selftests: add test for specifying 500 lower layers
...
Verify that we can actually specify 500 lower layers and fail at the
501st one.
Link: https://lore.kernel.org/r/20241015-leiht-filmabend-a86eed4ff304@brauner
Reviewed-by: Amir Goldstein <amir73il@gmail.com >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2024-10-15 14:39:35 +02:00
Christian Brauner
af9199145b
selftests: add overlayfs fd mounting selftests
...
Link: https://lore.kernel.org/r/20241014-work-overlayfs-v3-5-32b3fed1286e@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2024-10-14 16:31:17 +02:00