diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2007-06-02 01:46:02 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2007-06-02 01:46:02 +0000 |
commit | 24b46a2543b6f860fc22ca3db118ff9234f0c662 (patch) | |
tree | 5483a6bbfcb50ec31916309618f9847dd14133fd /sys/netbt/hci_socket.c | |
parent | acd7718c83396732a2881f352d4867f81012415b (diff) |
Set a flag in hci_usrreq() to allow priviledged operations
Diffstat (limited to 'sys/netbt/hci_socket.c')
-rw-r--r-- | sys/netbt/hci_socket.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netbt/hci_socket.c b/sys/netbt/hci_socket.c index 431a44b0f4f..1d55814ad22 100644 --- a/sys/netbt/hci_socket.c +++ b/sys/netbt/hci_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hci_socket.c,v 1.2 2007/06/01 02:46:11 uwe Exp $ */ +/* $OpenBSD: hci_socket.c,v 1.3 2007/06/02 01:46:01 uwe Exp $ */ /* $NetBSD: hci_socket.c,v 1.10 2007/03/31 18:17:13 plunky Exp $ */ /*- @@ -358,11 +358,8 @@ hci_usrreq(struct socket *up, int req, struct mbuf *m, up->so_pcb = pcb; pcb->hp_socket = up; -#ifdef notyet /* XXX */ - if (l == NULL || kauth_authorize_generic(l->l_cred, - KAUTH_GENERIC_ISSUSER, NULL) == 0) + if (curproc == NULL || suser(curproc, 0) == 0) pcb->hp_flags |= HCI_PRIVILEGED; -#endif /* * Set default user filter. By default, socket only passes |