[Bug 437649] Re: bluetoothd Permission denied (13) when connecting A2DP headset

trevorjay 437649 at bugs.launchpad.net
Fri Jan 27 23:01:30 UTC 2012


strace bluetooth -d -n:

<snip>

sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 158, MSG_NOSIGNAL, NULL, 0) = 158
socket(PF_BLUETOOTH, SOCK_STREAM, 3)    = 26
bind(26, {sa_family=AF_BLUETOOTH, sa_data="\211\224/G\370\340\0\0\377\377\377\377\377\377"}, 10) = 0
setsockopt(26, 0x112 /* SOL_?? */, 4, "\2", 1) = 0
fstat(26, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
fcntl(26, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(26, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
connect(26, {sa_family=AF_BLUETOOTH, sa_data="\0N(\336\36\0\1\0\0\0\0\0\0\0"}, 10) = -1 EINPROGRESS (Operation now in progress)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=14, events=POLLIN}, {fd=11, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=22, events=POLLIN}, {fd=23, events=POLLIN}, {fd=13, events=POLLIN}, {fd=4, events=POLLIN}, {fd=26, events=POLLOUT}, {fd=15, events=POLLIN}], 19, 1976) = 1 ([{fd=15, revents=POLLIN}])
read(15, "\4\17\4\0\1\21\4", 260)       = 7
socket(PF_BLUETOOTH, SOCK_RAW, 1)       = 27
ioctl(27, 0x800448d3, 0x7fffaa266ac0)   = 0
close(27)                               = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=14, events=POLLIN}, {fd=11, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=22, events=POLLIN}, {fd=23, events=POLLIN}, {fd=13, events=POLLIN}, {fd=4, events=POLLIN}, {fd=26, events=POLLOUT}, {fd=15, events=POLLIN}], 19, 1974) = 1 ([{fd=15, revents=POLLIN}])
read(15, "\4\27\6\0N(\336\36\0", 260)   = 9
socket(PF_BLUETOOTH, SOCK_RAW, 1)       = 27
ioctl(27, 0x800448d3, 0x7fffaa266ac0)   = 0
close(27)                               = 0
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 81}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:link_key_request() hci0 dba 00:1E:DE:28:4E:00
) = 82
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 101, MSG_NOSIGNAL, NULL, 0) = 101
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 78}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:get_auth_info() hci0 dba 00:1E:DE:28:4E:00
) = 79
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 98, MSG_NOSIGNAL, NULL, 0) = 98
ioctl(15, 0x800448d7, 0x7fffaa265950)   = 0
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 86}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:link_key_request() kernel auth requirements = 0x04
) = 87
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 106, MSG_NOSIGNAL, NULL, 0) = 106
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 73}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:link_key_request() Matching key found
) = 74
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 93, MSG_NOSIGNAL, NULL, 0) = 93
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 73}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:link_key_request() link key type 0x04
) = 74
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 93, MSG_NOSIGNAL, NULL, 0) = 93
writev(15, [{"\1", 1}, {"\v\4\26", 3}, {"\0N(\336\36\0\232p\211e\205y\313\314\365G\24\21\251\202\234\"", 22}], 3) = 26
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=14, events=POLLIN}, {fd=11, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=22, events=POLLIN}, {fd=23, events=POLLIN}, {fd=13, events=POLLIN}, {fd=4, events=POLLIN}, {fd=26, events=POLLOUT}, {fd=15, events=POLLIN}], 19, 1970) = 1 ([{fd=15, revents=POLLIN}])
read(15, "\4\16\n\1\v\4\0\0N(\336\36\0", 260) = 13
socket(PF_BLUETOOTH, SOCK_RAW, 1)       = 27
ioctl(27, 0x800448d3, 0x7fffaa266ac0)   = 0
close(27)                               = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=14, events=POLLIN}, {fd=11, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=22, events=POLLIN}, {fd=23, events=POLLIN}, {fd=13, events=POLLIN}, {fd=4, events=POLLIN}, {fd=26, events=POLLOUT}, {fd=15, events=POLLIN}], 19, 1958) = 1 ([{fd=15, revents=POLLIN}])
read(15, "\4\6\3\0\f\0", 260)           = 6
socket(PF_BLUETOOTH, SOCK_RAW, 1)       = 27
ioctl(27, 0x800448d3, 0x7fffaa266ac0)   = 0
close(27)                               = 0
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 65}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:auth_complete() hci0 status 0
) = 66
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 85, MSG_NOSIGNAL, NULL, 0) = 85
writev(2, [{"bluetoothd[16631]: plugins/hciop"..., 66}, {"\n", 1}], 2bluetoothd[16631]: plugins/hciops.c:bonding_complete() status 0x00
) = 67
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 86, MSG_NOSIGNAL, NULL, 0) = 86
writev(2, [{"bluetoothd[16631]: src/event.c:b"..., 71}, {"\n", 1}], 2bluetoothd[16631]: src/event.c:btd_event_bonding_complete() status 0x00
) = 72
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 91, MSG_NOSIGNAL, NULL, 0) = 91
writev(2, [{"bluetoothd[16631]: src/adapter.c"..., 71}, {"\n", 1}], 2bluetoothd[16631]: src/adapter.c:adapter_get_device() 00:1E:DE:28:4E:00
) = 72
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 91, MSG_NOSIGNAL, NULL, 0) = 91
writev(2, [{"bluetoothd[16631]: src/device.c:"..., 83}, {"\n", 1}], 2bluetoothd[16631]: src/device.c:device_bonding_complete() bonding (nil) status 0x00
) = 84
sendto(3, "<31>Jan 27 18:00:26 bluetoothd[1"..., 103, MSG_NOSIGNAL, NULL, 0) = 103
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=14, events=POLLIN}, {fd=11, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=22, events=POLLIN}, {fd=23, events=POLLIN}, {fd=13, events=POLLIN}, {fd=4, events=POLLIN}, {fd=26, events=POLLOUT}, {fd=15, events=POLLIN}], 19, 1928) = 0 (Timeout)
close(25)                               = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=14, events=POLLIN}, {fd=11, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=22, events=POLLIN}, {fd=23, events=POLLIN}, {fd=13, events=POLLIN}, {fd=4, events=POLLIN}, {fd=26, events=POLLOUT}, {fd=15, events=POLLIN}], 19, -1) = 2 ([{fd=26, revents=POLLOUT|POLLERR|POLLHUP}, {fd=15, revents=POLLIN}])
poll([{fd=26, events=POLLNVAL}], 1, 0)  = 1 ([{fd=26, revents=POLLERR|POLLHUP}])
getsockopt(26, SOL_SOCKET, SO_ERROR, [13], [4]) = 0
writev(2, [{"bluetoothd[16631]: Permission de"..., 41}, {"\n", 1}], 2bluetoothd[16631]: Permission denied (13)
) = 42
sendto(3, "<27>Jan 27 18:00:28 bluetoothd[1"..., 61, MSG_NOSIGNAL, NULL, 0) = 61
close(26)                               = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\4\1\1!\0\0\0d\0\0\0x\0\0\0\1\1o\0+\0\0\0/org/blu"..., 136}, {"\5\0\0\0State\0\1s\0\0\0\0\f\0\0\0disconnected"..., 33}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 169
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\4\1\1\0\0\0\0e\0\0\0m\0\0\0\1\1o\0+\0\0\0/org/blu"..., 128}, {"", 0}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 128
writev(2, [{"bluetoothd[16631]: audio/headset"..., 168}, {"\n", 1}], 2bluetoothd[16631]: audio/headset.c:headset_set_state() State changed /org/bluez/16631/hci0/dev_00_1E_DE_28_4E_00: HEADSET_STATE_CONNECTING -> HEADSET_STATE_DISCONNECTED
) = 169
sendto(3, "<31>Jan 27 18:00:28 bluetoothd[1"..., 188, MSG_NOSIGNAL, NULL, 0) = 188
</snip>

-- 
You received this bug notification because you are a member of
Bluetooth, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/437649

Title:
  bluetoothd Permission denied (13) when connecting A2DP headset

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/blueman/+bug/437649/+subscriptions



More information about the Ubuntu-bluetooth mailing list