diff options
author | emax <emax@FreeBSD.org> | 2009-02-04 22:44:09 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2009-02-04 22:44:09 +0000 |
commit | 9bddc26cc88d0d683c193117eea23e7b18301a19 (patch) | |
tree | fa4ca4fe503a856a4d7d0d73206f79cd6fb347fd /sys/netgraph/bluetooth | |
parent | 420044c9bd5a08e1fdcb06002d0e2c48abb8a434 (diff) | |
download | FreeBSD-src-9bddc26cc88d0d683c193117eea23e7b18301a19.zip FreeBSD-src-9bddc26cc88d0d683c193117eea23e7b18301a19.tar.gz |
Allow unprivileged users to run l2ping(8).
MFC after: 1 month
Diffstat (limited to 'sys/netgraph/bluetooth')
-rw-r--r-- | sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c | 5 |
1 files changed, 0 insertions, 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 ecfa36d..7d07dfb 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; |