linux/kernel/cgroup/namespace.c

// SPDX-License-Identifier: GPL-2.0
#include "cgroup-internal.h"

#include <linux/sched/task.h>
#include <linux/slab.h>
#include <linux/nsproxy.h>
#include <linux/proc_ns.h>


/* cgroup namespaces */

static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns)
{}

static void dec_cgroup_namespaces(struct ucounts *ucounts)
{}

static struct cgroup_namespace *alloc_cgroup_ns(void)
{}

void free_cgroup_ns(struct cgroup_namespace *ns)
{}
EXPORT_SYMBOL();

struct cgroup_namespace *copy_cgroup_ns(unsigned long flags,
					struct user_namespace *user_ns,
					struct cgroup_namespace *old_ns)
{}

static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns)
{}

static int cgroupns_install(struct nsset *nsset, struct ns_common *ns)
{}

static struct ns_common *cgroupns_get(struct task_struct *task)
{}

static void cgroupns_put(struct ns_common *ns)
{}

static struct user_namespace *cgroupns_owner(struct ns_common *ns)
{}

const struct proc_ns_operations cgroupns_operations =;