ns: simplify ns_common_init() further

Simply derive the ns operations from the namespace type.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner
2025-09-22 14:47:10 +02:00
parent 8535bd38b4
commit d7610cb745
9 changed files with 34 additions and 19 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ int create_user_ns(struct cred *new)
ns->parent_could_setfcap = cap_raised(new->cap_effective, CAP_SETFCAP);
ret = ns_common_init(ns, &userns_operations);
ret = ns_common_init(ns);
if (ret)
goto fail_free;