All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] fs: Consider capabilities relative to namespace for linkat permission check
@ 2023-11-10 17:06 Charles Mirabile
  2023-11-10 17:06 ` [PATCH v1 1/1] " Charles Mirabile
  2023-11-12 20:14 ` [PATCH v1 0/1] " Christian Brauner
  0 siblings, 2 replies; 5+ messages in thread
From: Charles Mirabile @ 2023-11-10 17:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-fsdevel, brauner, viro, Charles Mirabile

This is a one line change that makes `linkat` aware of namespaces when
checking for capabilities.

As far as I can tell, the call to `capable` in this code dates back to
before the `ns_capable` function existed, so I don't think the author
specifically intended to prefer regular `capable` over `ns_capable`,
and no one has noticed or cared to change it yet... until now!

It is already hard enough to use `linkat` to link temporarily files
into the filesystem without the `/proc` workaround, and when moving
a program that was working fine on bare metal into a container,
I got hung up on this additional snag due to the lack of namespace
awareness in `linkat`.

Charles Mirabile (1):
  fs: Consider capabilities relative to namespace for linkat permission
    check

 fs/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 89cdf9d556016a54ff6ddd62324aa5ec790c05cc
-- 
2.38.1


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

end of thread, other threads:[~2023-11-13 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-10 17:06 [PATCH v1 0/1] fs: Consider capabilities relative to namespace for linkat permission check Charles Mirabile
2023-11-10 17:06 ` [PATCH v1 1/1] " Charles Mirabile
2023-11-12 20:14 ` [PATCH v1 0/1] " Christian Brauner
2023-11-13  4:15   ` Charles Mirabile
2023-11-13 17:42     ` 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.