Skip to content

RFC Fix permission checks on open("/proc/self/fd/N", O_RDWR)

Andy Lutomirski linux-fsdevel lkml 1 version NAK

Status from this message: NAK.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 21 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/2fs,proc: Pass nameidata to proc_get_link implementationsfs/proc/base.c fs/proc/fd.c fs/proc/internal.h+12 -71 reply
2/2fs,proc: Respect FMODE_WRITE when opening /proc/pid/fd/Nfs/namei.c fs/proc/fd.c include/linux/namei.h+20 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] Fix permission checks on open("/proc/self/fd/N", O_RDWR)

This is a prototype of a real fix for a longstanding issue. See patch 2 for the full descripton.

Andy Lutomirski (2):
fs,proc: Pass nameidata to proc_get_link implementations fs,proc: Respect FMODE_WRITE when opening /proc/pid/fd/N

 fs/namei.c            |  3 +++
 fs/proc/base.c        | 13 ++++++++-----
 fs/proc/fd.c          | 22 ++++++++++++++++++----
 fs/proc/internal.h    |  3 ++-
 include/linux/namei.h |  1 +
 5 files changed, 32 insertions(+), 10 deletions(-)
Signature · 1 line
1.9.0