lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250917-work-namespace-ns_common-v1-0-1b3bda8ef8f2@kernel.org>
Date: Wed, 17 Sep 2025 12:27:59 +0200
From: Christian Brauner <brauner@...nel.org>
To: linux-fsdevel@...r.kernel.org
Cc: Amir Goldstein <amir73il@...il.com>, Josef Bacik <josef@...icpanda.com>, 
 Jeff Layton <jlayton@...nel.org>, Mike Yuan <me@...dnzj.com>, 
 Zbigniew Jędrzejewski-Szmek <zbyszek@...waw.pl>, 
 Lennart Poettering <mzxreary@...inter.de>, 
 Daan De Meyer <daan.j.demeyer@...il.com>, Aleksa Sarai <cyphar@...har.com>, 
 Alexander Viro <viro@...iv.linux.org.uk>, Jan Kara <jack@...e.cz>, 
 Tejun Heo <tj@...nel.org>, Johannes Weiner <hannes@...xchg.org>, 
 Michal Koutný <mkoutny@...e.com>, 
 Jakub Kicinski <kuba@...nel.org>, 
 Anna-Maria Behnsen <anna-maria@...utronix.de>, 
 Frederic Weisbecker <frederic@...nel.org>, 
 Thomas Gleixner <tglx@...utronix.de>, cgroups@...r.kernel.org, 
 linux-kernel@...r.kernel.org, netdev@...r.kernel.org, 
 Christian Brauner <brauner@...nel.org>
Subject: [PATCH 0/9] ns: rework common initialization

The current scheme still involves a lot of open-coding and copy-pasing
and bleeds a lot of unnecessary details into actual namespace
implementers. Encapsulate it in the common helpers and simplify it all.

Signed-off-by: Christian Brauner <brauner@...nel.org>
---
Christian Brauner (9):
      uts: split namespace into separate header
      mnt: expose pointer to init_mnt_ns
      nscommon: move to separate file
      cgroup: split namespace into separate header
      nsfs: add inode number for anon namespace
      mnt: simplify ns_common_init() handling
      net: centralize ns_common initialization
      nscommon: simplify initialization
      ns: add ns_common_free()

 fs/namespace.c                   | 16 ++++++----
 include/linux/cgroup.h           | 51 +------------------------------
 include/linux/cgroup_namespace.h | 56 ++++++++++++++++++++++++++++++++++
 include/linux/mnt_namespace.h    |  2 ++
 include/linux/ns_common.h        | 43 ++++++++++++++++++++++++++
 include/linux/proc_ns.h          | 21 -------------
 include/linux/uts_namespace.h    | 65 ++++++++++++++++++++++++++++++++++++++++
 include/linux/utsname.h          | 58 +----------------------------------
 include/uapi/linux/nsfs.h        |  3 ++
 ipc/namespace.c                  |  6 ++--
 kernel/Makefile                  |  2 +-
 kernel/cgroup/namespace.c        |  4 +--
 kernel/nscommon.c                | 25 ++++++++++++++++
 kernel/pid_namespace.c           |  6 ++--
 kernel/time/namespace.c          |  4 +--
 kernel/user_namespace.c          |  6 ++--
 kernel/utsname.c                 |  4 +--
 net/core/net_namespace.c         | 23 ++------------
 18 files changed, 225 insertions(+), 170 deletions(-)
---
base-commit: bf56a464f4ad7143c6e4b581b411f682f345a344
change-id: 20250917-work-namespace-ns_common-5859468e4c55


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ