Lines Matching +full:we +full:- +full:on +full:- +full:ns

1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/rhashtable-types.h>
55 /* The kern_mount of the mqueuefs sb. We take a ref on it */
58 /* # queues in this ns, protected by mq_lock */
74 /* user_ns which owns the ipc ns */
80 struct ns_common ns; member
87 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument
93 extern int mq_init_ns(struct ipc_namespace *ns);
102 * on CAP_SYS_RESOURCE apps as well making them inviolate (so make them
106 * Per app minimum openable message queues - 8. This does not map well
107 * to the fact that we limit the number of queues on a per namespace
110 * Minimum maximum for HARD_MSGMAX - 32767. I bumped this to 65536.
111 * Minimum maximum for HARD_MSGSIZEMAX - POSIX is silent on this. However,
112 * we have run into a situation where running applications in the wild
128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument
133 struct user_namespace *user_ns, struct ipc_namespace *ns);
135 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
137 if (ns) in get_ipc_ns()
138 refcount_inc(&ns->ns.count); in get_ipc_ns()
139 return ns; in get_ipc_ns()
142 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() argument
144 if (ns) { in get_ipc_ns_not_zero()
145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero()
146 return ns; in get_ipc_ns_not_zero()
152 extern void put_ipc_ns(struct ipc_namespace *ns);
155 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() argument
158 return ERR_PTR(-EINVAL); in copy_ipcs()
160 return ns; in copy_ipcs()
163 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
165 return ns; in get_ipc_ns()
168 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() argument
170 return ns; in get_ipc_ns_not_zero()
173 static inline void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() argument
180 void retire_mq_sysctls(struct ipc_namespace *ns);
181 bool setup_mq_sysctls(struct ipc_namespace *ns);
185 static inline void retire_mq_sysctls(struct ipc_namespace *ns) in retire_mq_sysctls() argument
189 static inline bool setup_mq_sysctls(struct ipc_namespace *ns) in setup_mq_sysctls() argument
198 bool setup_ipc_sysctls(struct ipc_namespace *ns);
199 void retire_ipc_sysctls(struct ipc_namespace *ns);
203 static inline void retire_ipc_sysctls(struct ipc_namespace *ns) in retire_ipc_sysctls() argument
207 static inline bool setup_ipc_sysctls(struct ipc_namespace *ns) in setup_ipc_sysctls() argument