• Home
  • Raw
  • Download

Lines Matching refs:ctx

63 	struct proc_fs_context *ctx = fc->fs_private;  in proc_parse_hidepid_param()  local
74 ctx->hidepid = result.uint_32; in proc_parse_hidepid_param()
79 ctx->hidepid = HIDEPID_OFF; in proc_parse_hidepid_param()
81 ctx->hidepid = HIDEPID_NO_ACCESS; in proc_parse_hidepid_param()
83 ctx->hidepid = HIDEPID_INVISIBLE; in proc_parse_hidepid_param()
85 ctx->hidepid = HIDEPID_NOT_PTRACEABLE; in proc_parse_hidepid_param()
94 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_subset_param() local
104 ctx->pidonly = PROC_PIDONLY_ON; in proc_parse_subset_param()
117 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_param() local
127 ctx->gid = result.uint_32; in proc_parse_param()
144 ctx->mask |= 1 << opt; in proc_parse_param()
152 struct proc_fs_context *ctx = fc->fs_private; in proc_apply_options() local
154 if (ctx->mask & (1 << Opt_gid)) in proc_apply_options()
155 fs_info->pid_gid = make_kgid(user_ns, ctx->gid); in proc_apply_options()
156 if (ctx->mask & (1 << Opt_hidepid)) in proc_apply_options()
157 fs_info->hide_pid = ctx->hidepid; in proc_apply_options()
158 if (ctx->mask & (1 << Opt_subset)) in proc_apply_options()
159 fs_info->pidonly = ctx->pidonly; in proc_apply_options()
164 struct proc_fs_context *ctx = fc->fs_private; in proc_fill_super() local
173 fs_info->pid_ns = get_pid_ns(ctx->pid_ns); in proc_fill_super()
234 struct proc_fs_context *ctx = fc->fs_private; in proc_fs_context_free() local
236 put_pid_ns(ctx->pid_ns); in proc_fs_context_free()
237 kfree(ctx); in proc_fs_context_free()
249 struct proc_fs_context *ctx; in proc_init_fs_context() local
251 ctx = kzalloc(sizeof(struct proc_fs_context), GFP_KERNEL); in proc_init_fs_context()
252 if (!ctx) in proc_init_fs_context()
255 ctx->pid_ns = get_pid_ns(task_active_pid_ns(current)); in proc_init_fs_context()
257 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); in proc_init_fs_context()
258 fc->fs_private = ctx; in proc_init_fs_context()
327 static int proc_root_readdir(struct file *file, struct dir_context *ctx) in proc_root_readdir() argument
329 if (ctx->pos < FIRST_PROCESS_ENTRY) { in proc_root_readdir()
330 int error = proc_readdir(file, ctx); in proc_root_readdir()
333 ctx->pos = FIRST_PROCESS_ENTRY; in proc_root_readdir()
336 return proc_pid_readdir(file, ctx); in proc_root_readdir()