mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Allow unprivileged users to run l2ping(8).
MFC after: 1 month
This commit is contained in:
parent
6b122703cc
commit
e545eedd7d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188132
@ -947,11 +947,6 @@ ng_btsocket_l2cap_raw_control(struct socket *so, u_long cmd, caddr_t data,
|
||||
ng_l2cap_l2ca_ping_ip *ip = NULL;
|
||||
ng_l2cap_l2ca_ping_op *op = NULL;
|
||||
|
||||
if (!(pcb->flags & NG_BTSOCKET_L2CAP_RAW_PRIVILEGED)) {
|
||||
error = EPERM;
|
||||
break;
|
||||
}
|
||||
|
||||
if ((p->echo_size != 0 && p->echo_data == NULL) ||
|
||||
p->echo_size > NG_L2CAP_MAX_ECHO_SIZE) {
|
||||
error = EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user