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>] [day] [month] [year] [list]
Message-Id: <94c8f2123a8833b61d84a662ec35f9c070cdf4dd.1670147823.git.christophe.jaillet@wanadoo.fr>
Date:   Sun,  4 Dec 2022 11:02:02 +0100
From:   Christophe JAILLET <christophe.jaillet@...adoo.fr>
To:     paulmck@...nel.org, elver@...gle.com, mark.rutland@....com
Cc:     linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
        Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: [PATCH] init_task: Remove unneeded pid_namespace.h and utsname.h includes

Remove pid_namespace.h and utsname.h from init_task.h
They are not needed any more.

<linux/pid_namespace.h>
  - added in commit 9a575a92db33 ("[PATCH] to nsproxy")
  - needed because of 'init_pid_ns'

<linux/utsname.h>
  - added in commit 4865ecf1315b ("[PATCH] namespaces: utsname: implement
    utsname namespaces")
  - needed because of 'init_uts_ns'

Both use have been moved in "kernel/nsproxy.c" in commit 8467005da3ef
("nsproxy: remove INIT_NSPROXY()").

"kernel/nsproxy.c" already includes the 2 corresponding includes.

Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
---
Let see if build-bots agree with me!
---
 include/linux/init_task.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 079c190de56d..6d2c4ea4c97a 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -4,11 +4,9 @@
 
 #include <linux/rcupdate.h>
 #include <linux/irqflags.h>
-#include <linux/utsname.h>
 #include <linux/lockdep.h>
 #include <linux/ftrace.h>
 #include <linux/ipc.h>
-#include <linux/pid_namespace.h>
 #include <linux/user_namespace.h>
 #include <linux/seqlock.h>
 #include <linux/rbtree.h>
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ