All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ovl: allow O_PATH file descriptor when specifying layers
@ 2025-02-10 12:38 Christian Brauner
  2025-02-10 12:38 ` [PATCH v2 1/2] fs: support O_PATH fds with FSCONFIG_SET_FD Christian Brauner
  2025-02-10 12:39 ` [PATCH v2 2/2] selftests/overlayfs: test specifying layers as O_PATH file descriptors Christian Brauner
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Brauner @ 2025-02-10 12:38 UTC (permalink / raw)
  To: linux-unionfs
  Cc: Miklos Szeredi, Amir Goldstein, Mike Baynton, linux-fsdevel,
	Christian Brauner

Allow overlayfs to use O_PATH file descriptors when specifying layers.
Userspace must currently use non-O_PATH file desriptors which is often
pointless especially if the file descriptors have been created via
open_tree(OPEN_TREE_CLONE). This has been a frequent request and came up
again in [1].

Link: https://lore.kernel.org/r/fd8f6574-f737-4743-b220-79c815ee1554@mbaynton.com [1]

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
Changes in v2:
- Unconditionally enable O_PATH file descriptors.
- Link to v1: https://lore.kernel.org/r/20250207-work-overlayfs-v1-0-611976e73373@kernel.org

---
Christian Brauner (2):
      fs: support O_PATH fds with FSCONFIG_SET_FD
      selftests/overlayfs: test specifying layers as O_PATH file descriptors

 fs/autofs/autofs_i.h                               |  2 +
 fs/fsopen.c                                        |  2 +-
 .../filesystems/overlayfs/set_layers_via_fds.c     | 65 ++++++++++++++++++++++
 3 files changed, 68 insertions(+), 1 deletion(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250207-work-overlayfs-38fb9156d4c4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-10 13:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 12:38 [PATCH v2 0/2] ovl: allow O_PATH file descriptor when specifying layers Christian Brauner
2025-02-10 12:38 ` [PATCH v2 1/2] fs: support O_PATH fds with FSCONFIG_SET_FD Christian Brauner
2025-02-10 13:26   ` Amir Goldstein
2025-02-10 13:55     ` Christian Brauner
2025-02-10 12:39 ` [PATCH v2 2/2] selftests/overlayfs: test specifying layers as O_PATH file descriptors Christian Brauner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.