[PATCH 0/2] remove ksys_dup()

From: Dominik Brodowski
Date: Thu Dec 12 2019 - 09:08:03 EST


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