Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
13cfaf50
Commit
13cfaf50
authored
Sep 21, 2003
by
Albert Cahalan
Committed by
Linus Torvalds
Sep 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix CONFIG_SECURE trouble in thread-aware procfs
This fixes the thread-aware /proc for CONFIG_SECURE.
parent
697569d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
fs/proc/base.c
fs/proc/base.c
+10
-4
No files found.
fs/proc/base.c
View file @
13cfaf50
...
...
@@ -1196,8 +1196,10 @@ static struct file_operations proc_pid_attr_operations = {
.
write
=
proc_pid_attr_write
,
};
static
struct
file_operations
proc_attr_operations
;
static
struct
inode_operations
proc_attr_inode_operations
;
static
struct
file_operations
proc_tid_attr_operations
;
static
struct
inode_operations
proc_tid_attr_inode_operations
;
static
struct
file_operations
proc_tgid_attr_operations
;
static
struct
inode_operations
proc_tgid_attr_inode_operations
;
#endif
/* SMP-safe */
...
...
@@ -1304,10 +1306,14 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
break
;
#ifdef CONFIG_SECURITY
case
PROC_TID_ATTR
:
inode
->
i_nlink
=
2
;
inode
->
i_op
=
&
proc_tid_attr_inode_operations
;
inode
->
i_fop
=
&
proc_tid_attr_operations
;
break
;
case
PROC_TGID_ATTR
:
inode
->
i_nlink
=
2
;
inode
->
i_op
=
&
proc_attr_inode_operations
;
inode
->
i_fop
=
&
proc_attr_operations
;
inode
->
i_op
=
&
proc_
tgid_
attr_inode_operations
;
inode
->
i_fop
=
&
proc_
tgid_
attr_operations
;
break
;
case
PROC_TID_ATTR_CURRENT
:
case
PROC_TGID_ATTR_CURRENT
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment