linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [git pull] work.sane_pwd
@ 2017-05-12  1:14 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2017-05-12  1:14 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, linux-fsdevel

	Making sure that something like a referral point won't end up
as pwd or root.  The main part is the last commit (fixing mntns_install());
that one fixes a hard-to-hit race.  fchdir() one is making fchdir(2)
a bit more robust - it should be impossible to get opened files (even
O_PATH ones) for referral points in the first place, so the existing
checks are OK, but checking the same thing as in chdir(2) is just as
cheap.  path_init() commit removes a redundant check that shouldn't
have been there in the first place.

The following changes since commit 85128b2be6738fe36c224995c5ee80fe80fbb1b5:

  fix nfs O_DIRECT advancing iov_iter too much (2017-04-17 14:23:20 -0400)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.sane_pwd

for you to fetch changes up to 4f757f3cbf54edef7b75c68d6d6d2f1a0ca08d2e:

  make sure that mntns_install() doesn't end up with referral for root (2017-04-21 14:05:36 -0400)

----------------------------------------------------------------
Al Viro (3):
      make sure that fchdir() won't accept referral points, etc.
      path_init(): don't bother with checking MAY_EXEC for LOOKUP_ROOT
      make sure that mntns_install() doesn't end up with referral for root

 fs/namei.c            | 48 ++++++++++++++++++++++++++++++++++++++++--------
 fs/namespace.c        | 18 +++++++++++-------
 fs/open.c             |  9 +++------
 include/linux/namei.h |  1 +
 4 files changed, 55 insertions(+), 21 deletions(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-12  1:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-12  1:14 [git pull] work.sane_pwd Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).