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
8fe34b5d
Commit
8fe34b5d
authored
Dec 26, 2002
by
Maksim Krasnyanskiy
Committed by
Marcel Holtmann
Dec 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill old BNEP ioctls.
parent
bde069be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
net/bluetooth/bnep/bnep.h
net/bluetooth/bnep/bnep.h
+0
-6
net/bluetooth/bnep/sock.c
net/bluetooth/bnep/sock.c
+0
-4
No files found.
net/bluetooth/bnep/bnep.h
View file @
8fe34b5d
...
@@ -117,12 +117,6 @@ struct bnep_ext_hdr {
...
@@ -117,12 +117,6 @@ struct bnep_ext_hdr {
#define BNEPGETCONNLIST _IOR('B', 210, int)
#define BNEPGETCONNLIST _IOR('B', 210, int)
#define BNEPGETCONNINFO _IOR('B', 211, int)
#define BNEPGETCONNINFO _IOR('B', 211, int)
// Ioctl interface
#define BNEPCONADD 1
#define BNEPCONDEL 2
#define BNEPGETCONLIST 3
#define BNEPGETCONINFO 4
struct
bnep_connadd_req
{
struct
bnep_connadd_req
{
int
sock
;
// Connected socket
int
sock
;
// Connected socket
__u32
flags
;
__u32
flags
;
...
...
net/bluetooth/bnep/sock.c
View file @
8fe34b5d
...
@@ -83,7 +83,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
...
@@ -83,7 +83,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
BT_DBG
(
"cmd %x arg %lx"
,
cmd
,
arg
);
BT_DBG
(
"cmd %x arg %lx"
,
cmd
,
arg
);
switch
(
cmd
)
{
switch
(
cmd
)
{
case
BNEPCONADD
:
case
BNEPCONNADD
:
case
BNEPCONNADD
:
if
(
!
capable
(
CAP_NET_ADMIN
))
if
(
!
capable
(
CAP_NET_ADMIN
))
return
-
EACCES
;
return
-
EACCES
;
...
@@ -107,7 +106,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
...
@@ -107,7 +106,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
return
err
;
return
err
;
case
BNEPCONDEL
:
case
BNEPCONNDEL
:
case
BNEPCONNDEL
:
if
(
!
capable
(
CAP_NET_ADMIN
))
if
(
!
capable
(
CAP_NET_ADMIN
))
return
-
EACCES
;
return
-
EACCES
;
...
@@ -117,7 +115,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
...
@@ -117,7 +115,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
return
bnep_del_connection
(
&
cd
);
return
bnep_del_connection
(
&
cd
);
case
BNEPGETCONLIST
:
case
BNEPGETCONNLIST
:
case
BNEPGETCONNLIST
:
if
(
copy_from_user
(
&
cl
,
(
void
*
)
arg
,
sizeof
(
cl
)))
if
(
copy_from_user
(
&
cl
,
(
void
*
)
arg
,
sizeof
(
cl
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -131,7 +128,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
...
@@ -131,7 +128,6 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
return
err
;
return
err
;
case
BNEPGETCONINFO
:
case
BNEPGETCONNINFO
:
case
BNEPGETCONNINFO
:
if
(
copy_from_user
(
&
ci
,
(
void
*
)
arg
,
sizeof
(
ci
)))
if
(
copy_from_user
(
&
ci
,
(
void
*
)
arg
,
sizeof
(
ci
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
...
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