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
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
Show 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*/
...
@@ -175,7 +175,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
case
LMCIOCSINFO
:
/*fold01*/
case
LMCIOCSINFO
:
/*fold01*/
sp
=
&
((
struct
ppp_device
*
)
dev
)
->
sppp
;
sp
=
&
((
struct
ppp_device
*
)
dev
)
->
sppp
;
if
(
!
suser
(
))
{
if
(
!
capable
(
CAP_NET_ADMIN
))
{
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
break
;
}
}
...
@@ -210,7 +210,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
...
@@ -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
old_type
=
sc
->
if_type
;
u_int16_t
new_type
;
u_int16_t
new_type
;
if
(
!
suser
(
))
{
if
(
!
capable
(
CAP_NET_ADMIN
))
{
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
break
;
}
}
...
@@ -290,7 +290,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
...
@@ -290,7 +290,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
break
;
break
;
case
LMCIOCCLEARLMCSTATS
:
/*fold01*/
case
LMCIOCCLEARLMCSTATS
:
/*fold01*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
break
;
}
}
...
@@ -304,7 +304,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
...
@@ -304,7 +304,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
break
;
break
;
case
LMCIOCSETCIRCUIT
:
/*fold01*/
case
LMCIOCSETCIRCUIT
:
/*fold01*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
break
;
}
}
...
@@ -322,7 +322,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
...
@@ -322,7 +322,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
break
;
break
;
case
LMCIOCRESET
:
/*fold01*/
case
LMCIOCRESET
:
/*fold01*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
break
;
}
}
...
@@ -355,7 +355,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
...
@@ -355,7 +355,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
{
{
struct
lmc_xilinx_control
xc
;
/*fold02*/
struct
lmc_xilinx_control
xc
;
/*fold02*/
if
(
!
suser
(
)){
if
(
!
capable
(
CAP_NET_ADMIN
)){
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
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