Lines Matching +full:6 +full:ns
82 struct ipc_namespace *ns =
85 kuid_t ns_root_uid = make_kuid(ns->user_ns, 0);
86 kgid_t ns_root_gid = make_kgid(ns->user_ns, 0);
101 mode >>= 6;
108 return (mode << 6) | (mode << 3) | mode;
117 bool setup_mq_sysctls(struct ipc_namespace *ns)
121 setup_sysctl_set(&ns->mq_set, &set_root, set_is_seen);
129 tbl[i].data = &ns->mq_queues_max;
132 tbl[i].data = &ns->mq_msg_max;
135 tbl[i].data = &ns->mq_msgsize_max;
138 tbl[i].data = &ns->mq_msg_default;
141 tbl[i].data = &ns->mq_msgsize_default;
146 ns->mq_sysctls = __register_sysctl_table(&ns->mq_set,
150 if (!ns->mq_sysctls) {
152 retire_sysctl_set(&ns->mq_set);
159 void retire_mq_sysctls(struct ipc_namespace *ns)
163 tbl = ns->mq_sysctls->ctl_table_arg;
164 unregister_sysctl_table(ns->mq_sysctls);
165 retire_sysctl_set(&ns->mq_set);