All of lore.kernel.org
 help / color / mirror / Atom feed
* permission checking for F_SET_RW_HINT
@ 2024-11-22 12:29 Christoph Hellwig
  2024-11-22 12:29 ` [PATCH 1/2] fs: require inode_owner_or_capable " Christoph Hellwig
  2024-11-22 12:29 ` [PATCH 2/2] fs: require FMODE_WRITE " Christoph Hellwig
  0 siblings, 2 replies; 10+ messages in thread
From: Christoph Hellwig @ 2024-11-22 12:29 UTC (permalink / raw)
  Cc: Al Viro, Christian Brauner, Jan Kara, Jens Axboe, linux-fsdevel

Hi all

I've been expanding test coverage for F_SET_RW_HINT, and noticed that
right now there is no permission checking whatsoever.  Patch 1 fixes that
by requiring the owner or capable to set the write hint.  Patch 2 also
requires an fd open for write, which is a bit more arguable but still
feels right.

Diffstat:
 fcntl.c |    5 +++++
 1 file changed, 5 insertions(+)

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

end of thread, other threads:[~2024-11-25 14:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 12:29 permission checking for F_SET_RW_HINT Christoph Hellwig
2024-11-22 12:29 ` [PATCH 1/2] fs: require inode_owner_or_capable " Christoph Hellwig
2024-11-22 12:45   ` Jan Kara
2024-11-25 14:16   ` Christian Brauner
2024-11-25 14:17   ` (subset) " Christian Brauner
2024-11-22 12:29 ` [PATCH 2/2] fs: require FMODE_WRITE " Christoph Hellwig
2024-11-22 12:53   ` Jan Kara
2024-11-22 16:15     ` Christoph Hellwig
2024-11-22 16:40       ` Matthew Wilcox
2024-11-25 14:23         ` 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.