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
Kirill Smelkov
linux
Commits
90fedad4
Commit
90fedad4
authored
Oct 07, 2002
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o IPX: fix permission bogosity in create_proc_entry usage
parent
0f9f7b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
net/ipx/ipx_proc.c
net/ipx/ipx_proc.c
+3
-15
No files found.
net/ipx/ipx_proc.c
View file @
90fedad4
...
...
@@ -315,15 +315,6 @@ static struct file_operations ipx_seq_socket_fops = {
.
release
=
seq_release
,
};
static
int
ipx_proc_perms
(
struct
inode
*
inode
,
int
op
)
{
return
0
;
}
static
struct
inode_operations
ipx_seq_inode
=
{
.
permission
=
ipx_proc_perms
,
};
static
struct
proc_dir_entry
*
ipx_proc_dir
;
int
__init
ipx_proc_init
(
void
)
...
...
@@ -335,24 +326,21 @@ int __init ipx_proc_init(void)
if
(
!
ipx_proc_dir
)
goto
out
;
p
=
create_proc_entry
(
"interface"
,
0
,
ipx_proc_dir
);
p
=
create_proc_entry
(
"interface"
,
S_IRUGO
,
ipx_proc_dir
);
if
(
!
p
)
goto
out_interface
;
p
->
proc_fops
=
&
ipx_seq_interface_fops
;
p
->
proc_iops
=
&
ipx_seq_inode
;
p
=
create_proc_entry
(
"route"
,
0
,
ipx_proc_dir
);
p
=
create_proc_entry
(
"route"
,
S_IRUGO
,
ipx_proc_dir
);
if
(
!
p
)
goto
out_route
;
p
->
proc_fops
=
&
ipx_seq_route_fops
;
p
->
proc_iops
=
&
ipx_seq_inode
;
p
=
create_proc_entry
(
"socket"
,
0
,
ipx_proc_dir
);
p
=
create_proc_entry
(
"socket"
,
S_IRUGO
,
ipx_proc_dir
);
if
(
!
p
)
goto
out_socket
;
p
->
proc_fops
=
&
ipx_seq_socket_fops
;
p
->
proc_iops
=
&
ipx_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