mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.net>
To: Alexander Viro <viro@zeniv.linux.org.uk>,
	Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] remove ksys_dup()
Date: Thu, 12 Dec 2019 15:07:50 +0100	[thread overview]
Message-ID: <20191212140752.347520-1-linux@dominikbrodowski.net> (raw)

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


             reply	other threads:[~2019-12-12 14:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-12 14:07 Dominik Brodowski [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191212140752.347520-1-linux@dominikbrodowski.net \
    --to=linux@dominikbrodowski.net \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®