Parent: 25dd5613d549010952550df4f6bd435e2bd5d101
Author: Pauli Virtanen <pav@iki.fi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-06-13 20:52:26
Tree: 2cd843c7a75750fd910894c196199bfde73178ae
a2dp: disallow multiple SetConfiguration to same local SEP Using the remote SEP SetConfiguration DBus API, it's possible to make multiple remote endpoints use the same local SEP, if they are endpoints from different connected devices. This is invalid: successful configuration shall prevent a different device configuring the same SEP (AVDTP v1.3 Sec. 5.3). Moreover, this breaks the assumption in the AVDTP code that each SEP has at most a single stream, and causes misbehavior later on (subsequent transport acquires fail with EPERM). Fix this by first checking the SEP is free before proceeding in the DBus API call. Also add a sanity check in avdtp_set_configuration, to reject configuring an already configured SEP similarly as in avdtp_setconf_cmd.
Diffstat
| M | profiles/audio/a2dp.c | | | 5 | +++++ |
| M | profiles/audio/avdtp.c | | | 3 | +++ |
2 files changed, 8 insertions(+), 0 deletions(-)