namespaces.c (0b728e1911cbe6e24020727c3870628b9653f32a) | namespaces.c (00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b) |
---|---|
1#include <linux/proc_fs.h> 2#include <linux/nsproxy.h> 3#include <linux/sched.h> 4#include <linux/ptrace.h> 5#include <linux/fs_struct.h> 6#include <linux/mount.h> 7#include <linux/path.h> 8#include <linux/namei.h> --- 126 unchanged lines hidden (view full) --- 135} 136 137const struct file_operations proc_ns_dir_operations = { 138 .read = generic_read_dir, 139 .readdir = proc_ns_dir_readdir, 140}; 141 142static struct dentry *proc_ns_dir_lookup(struct inode *dir, | 1#include <linux/proc_fs.h> 2#include <linux/nsproxy.h> 3#include <linux/sched.h> 4#include <linux/ptrace.h> 5#include <linux/fs_struct.h> 6#include <linux/mount.h> 7#include <linux/path.h> 8#include <linux/namei.h> --- 126 unchanged lines hidden (view full) --- 135} 136 137const struct file_operations proc_ns_dir_operations = { 138 .read = generic_read_dir, 139 .readdir = proc_ns_dir_readdir, 140}; 141 142static struct dentry *proc_ns_dir_lookup(struct inode *dir, |
143 struct dentry *dentry, struct nameidata *nd) | 143 struct dentry *dentry, unsigned int flags) |
144{ 145 struct dentry *error; 146 struct task_struct *task = get_proc_task(dir); 147 const struct proc_ns_operations **entry, **last; 148 unsigned int len = dentry->d_name.len; 149 150 error = ERR_PTR(-ENOENT); 151 --- 49 unchanged lines hidden --- | 144{ 145 struct dentry *error; 146 struct task_struct *task = get_proc_task(dir); 147 const struct proc_ns_operations **entry, **last; 148 unsigned int len = dentry->d_name.len; 149 150 error = ERR_PTR(-ENOENT); 151 --- 49 unchanged lines hidden --- |