mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Allow unprivileged users to run l2ping(8).
MFC after: 1 month
This commit is contained in:
parent
6b122703cc
commit
e545eedd7d
1 changed files with 0 additions and 5 deletions
|
|
@ -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 a new issue