[folded-merged] namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix
has been removed from the -mm tree.  Its filename was
     namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix.patch

This patch was dropped because it was folded into namei-allow-restricted-o_creat-of-fifos-and-regular-files.patch

------------------------------------------------------
From: Salvatore Mesoraca <s.mesoraca16@xxxxxxxxx>
Subject: namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix

Fix bug reported by Dan Carpenter.

Link: https://lkml.kernel.org/r/20180426081456.GA7060@mwanda
Link: http://lkml.kernel.org/r/1524829819-11275-1-git-send-email-s.mesoraca16@xxxxxxxxx
Signed-off-by: Salvatore Mesoraca <s.mesoraca16@xxxxxxxxx>
Cc: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Solar Designer <solar@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

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

diff -puN fs/namei.c~namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix fs/namei.c
--- a/fs/namei.c~namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix
+++ a/fs/namei.c
@@ -3421,7 +3421,8 @@ finish_open:
 		error = -EISDIR;
 		if (d_is_dir(nd->path.dentry))
 			goto out;
-		error = may_create_in_sticky(dir, inode);
+		error = may_create_in_sticky(dir,
+					     d_backing_inode(nd->path.dentry));
 		if (unlikely(error))
 			goto out;
 	}
_

Patches currently in -mm which might be from s.mesoraca16@xxxxxxxxx are

namei-allow-restricted-o_creat-of-fifos-and-regular-files.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux