From 55739a9fc557371d38ce58f83c9c155ea0b068ac Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sun, 1 May 2005 08:59:03 -0700 Subject: [PATCH] --- yaml --- r: 712 b: refs/heads/master c: bcf88e1163623e8e8ef2ba7feface9c826a890c9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/proc/base.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a72ffe602e64..c4655964a051 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7f261b5f0dccd53ed3a9a95b55c36e24a698a92a +refs/heads/master: bcf88e1163623e8e8ef2ba7feface9c826a890c9 diff --git a/trunk/fs/proc/base.c b/trunk/fs/proc/base.c index 39fd336cfdb9..4718173af2c8 100644 --- a/trunk/fs/proc/base.c +++ b/trunk/fs/proc/base.c @@ -1800,8 +1800,12 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct inode->i_mode = S_IFDIR|S_IRUGO|S_IXUGO; inode->i_op = &proc_tgid_base_inode_operations; inode->i_fop = &proc_tgid_base_operations; - inode->i_nlink = 3; inode->i_flags|=S_IMMUTABLE; +#ifdef CONFIG_SECURITY + inode->i_nlink = 5; +#else + inode->i_nlink = 4; +#endif dentry->d_op = &pid_base_dentry_operations; @@ -1855,8 +1859,12 @@ static struct dentry *proc_task_lookup(struct inode *dir, struct dentry * dentry inode->i_mode = S_IFDIR|S_IRUGO|S_IXUGO; inode->i_op = &proc_tid_base_inode_operations; inode->i_fop = &proc_tid_base_operations; - inode->i_nlink = 3; inode->i_flags|=S_IMMUTABLE; +#ifdef CONFIG_SECURITY + inode->i_nlink = 4; +#else + inode->i_nlink = 3; +#endif dentry->d_op = &pid_base_dentry_operations;