From e545eedd7d4572d106d8452d5ba604f35ee05c62 Mon Sep 17 00:00:00 2001 From: Maksim Yevmenkin Date: Wed, 4 Feb 2009 22:44:09 +0000 Subject: [PATCH] Allow unprivileged users to run l2ping(8). MFC after: 1 month --- sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c index ecfa36db3768..7d07dfbb7e98 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c @@ -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;