kernel-hardening.lists.openwall.com archive mirror
 help / color / mirror / Atom feed
* [kernel-hardening] [RFC v2 0/2] Restrict dangerous open in sticky directories
@ 2017-09-26 14:14 Salvatore Mesoraca
  2017-09-26 14:14 ` [kernel-hardening] [RFC v2 1/2] Protected FIFOs and regular files Salvatore Mesoraca
  2017-09-26 14:14 ` [kernel-hardening] [RFC v2 2/2] Protected O_CREAT open in sticky directory Salvatore Mesoraca
  0 siblings, 2 replies; 5+ messages in thread
From: Salvatore Mesoraca @ 2017-09-26 14:14 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kernel Hardening, Kees Cook, Solar Designer, Alexander Viro,
	Eric W. Biederman, linux-fsdevel, Salvatore Mesoraca

This patch-set introduces two separate features aimed at restricting
dangerous open in world or group writable sticky directories.
The purpose is to prevent exploitable bugs in user-space programs
that don't access sticky directories in the proper way.
The first patch prevents the O_CREAT open of FIFOs and regular files
in world or group writable sticky directories if they already exists
and are owned by someone else.
The second patch prevents O_CREAT open in world or group writable
sticky when the O_EXCL flag is not set, even if the file doesn't
exist yet.
More details can be found in respective commit messages.

Salvatore Mesoraca (2):
  Protected FIFOs and regular files
  Protected O_CREAT open in sticky directory

 Documentation/sysctl/fs.txt |  66 +++++++++++++++++++++++++
 fs/namei.c                  | 118 ++++++++++++++++++++++++++++++++++++++++++--
 include/linux/fs.h          |   3 ++
 kernel/sysctl.c             |  27 ++++++++++
 4 files changed, 211 insertions(+), 3 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2017-09-26 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-26 14:14 [kernel-hardening] [RFC v2 0/2] Restrict dangerous open in sticky directories Salvatore Mesoraca
2017-09-26 14:14 ` [kernel-hardening] [RFC v2 1/2] Protected FIFOs and regular files Salvatore Mesoraca
2017-09-26 14:14 ` [kernel-hardening] [RFC v2 2/2] Protected O_CREAT open in sticky directory Salvatore Mesoraca
2017-09-26 14:40   ` Jann Horn
2017-09-26 15:13     ` Salvatore Mesoraca

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).