All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] remove ksys_dup()
@ 2019-12-12 14:07 Dominik Brodowski
  2019-12-12 14:07 ` [PATCH 1/2] init: unify opening /dev/console as stdin/stdout/stderr Dominik Brodowski
  2019-12-12 14:07 ` [PATCH 2/2] fs: remove ksys_dup() Dominik Brodowski
  0 siblings, 2 replies; 6+ messages in thread
From: Dominik Brodowski @ 2019-12-12 14:07 UTC (permalink / raw)
  To: Alexander Viro, Linus Torvalds; +Cc: Ingo Molnar, Andrew Morton, linux-kernel

Instead of pretending to be userspace, the opening of
/dev/console as stdin/stdout/stderr can be implemented
using in-kernel functions.

---

@viro: is this something for you to take and push upstream
for the next cycle?

The same changes (on top of commit ae4b064e2a616b545acf02b8f50cc513b32c7522:

  Merge tag 'afs-fixes-20191211' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs (2019-12-11 18:10:40 -0800)

are also available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux.git remove-ksys-dup

including all changes up to d7aacb7ad766adea665b440b56e9c9152b1065f7:

  fs: remove ksys_dup() (2019-12-12 14:59:48 +0100)

----------------------------------------------------------------
Dominik Brodowski (2):
      init: unify opening /dev/console as stdin/stdout/stderr
      fs: remove ksys_dup()

 fs/file.c                |  7 +------
 include/linux/initrd.h   |  2 ++
 include/linux/syscalls.h |  1 -
 init/do_mounts_initrd.c  |  5 +----
 init/main.c              | 31 ++++++++++++++++++++++++++-----
 5 files changed, 30 insertions(+), 16 deletions(-)

Thanks,
	Dominik

-- 
2.24.1


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

end of thread, other threads:[~2019-12-12 18:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12 14:07 [PATCH 0/2] remove ksys_dup() Dominik Brodowski
2019-12-12 14:07 ` [PATCH 1/2] init: unify opening /dev/console as stdin/stdout/stderr Dominik Brodowski
2019-12-12 14:07 ` [PATCH 2/2] fs: remove ksys_dup() Dominik Brodowski
2019-12-12 17:09   ` Linus Torvalds
2019-12-12 18:38   ` Al Viro
2019-12-12 18:48     ` Linus Torvalds

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.