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
7a125767
Commit
7a125767
authored
Feb 06, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/suser/capable/ cleanup for the LMC WAN driver.
Contributed by one of the kernel janitors.
parent
8d6e369a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/lmc/lmc_main.c
+6
-6
No files found.
drivers/net/wan/lmc/lmc_main.c
View file @
7a125767
...
...
@@ -175,7 +175,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
case
LMCIOCSINFO
:
/*fold01*/
sp
=
&
((
struct
ppp_device
*
)
dev
)
->
sppp
;
if
(
!
suser
(
))
{
if
(
!
capable
(
CAP_NET_ADMIN
))
{
ret
=
-
EPERM
;
break
;
}
...
...
@@ -210,7 +210,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
u_int16_t
old_type
=
sc
->
if_type
;
u_int16_t
new_type
;
if
(
!
suser
(
))
{
if
(
!
capable
(
CAP_NET_ADMIN
))
{
ret
=
-
EPERM
;
break
;
}
...
...
@@ -290,7 +290,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
break
;
case
LMCIOCCLEARLMCSTATS
:
/*fold01*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
break
;
}
...
...
@@ -304,7 +304,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
break
;
case
LMCIOCSETCIRCUIT
:
/*fold01*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
break
;
}
...
...
@@ -322,7 +322,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
break
;
case
LMCIOCRESET
:
/*fold01*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
break
;
}
...
...
@@ -355,7 +355,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
{
struct
lmc_xilinx_control
xc
;
/*fold02*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
break
;
}
...
...
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