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
8eda1204
Commit
8eda1204
authored
Oct 07, 2002
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o LLC: fix permission bogosity in create_proc_entry usage
parent
90fedad4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
net/llc/llc_proc.c
net/llc/llc_proc.c
+2
-13
No files found.
net/llc/llc_proc.c
View file @
8eda1204
...
...
@@ -211,11 +211,6 @@ static int llc_seq_core_open(struct inode *inode, struct file *file)
return
seq_open
(
file
,
&
llc_seq_core_ops
);
}
static
int
llc_proc_perms
(
struct
inode
*
inode
,
int
op
)
{
return
0
;
}
static
struct
file_operations
llc_seq_socket_fops
=
{
.
open
=
llc_seq_socket_open
,
.
read
=
seq_read
,
...
...
@@ -230,10 +225,6 @@ static struct file_operations llc_seq_core_fops = {
.
release
=
seq_release
,
};
static
struct
inode_operations
llc_seq_inode
=
{
.
permission
=
llc_proc_perms
,
};
static
struct
proc_dir_entry
*
llc_proc_dir
;
int
__init
llc_proc_init
(
void
)
...
...
@@ -245,19 +236,17 @@ int __init llc_proc_init(void)
if
(
!
llc_proc_dir
)
goto
out
;
p
=
create_proc_entry
(
"socket"
,
0
,
llc_proc_dir
);
p
=
create_proc_entry
(
"socket"
,
S_IRUGO
,
llc_proc_dir
);
if
(
!
p
)
goto
out_socket
;
p
->
proc_fops
=
&
llc_seq_socket_fops
;
p
->
proc_iops
=
&
llc_seq_inode
;
p
=
create_proc_entry
(
"core"
,
0
,
llc_proc_dir
);
p
=
create_proc_entry
(
"core"
,
S_IRUGO
,
llc_proc_dir
);
if
(
!
p
)
goto
out_core
;
p
->
proc_fops
=
&
llc_seq_core_fops
;
p
->
proc_iops
=
&
llc_seq_inode
;
rc
=
0
;
out:
...
...
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