mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
protocol-native: handle peersec errors better
Only warn if something is really wrong otherwise just log with info and don't set the property. Fixes #385
This commit is contained in:
parent
14f68565ad
commit
01b473e695
1 changed files with 4 additions and 1 deletions
|
|
@ -403,7 +403,10 @@ static struct client_data *client_new(struct server *s, int fd)
|
|||
|
||||
len = sizeof(buffer);
|
||||
if (getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buffer, &len) < 0) {
|
||||
pw_log_warn("server %p: no peersec: %m", s);
|
||||
if (errno == ENOPROTOOPT)
|
||||
pw_log_info("server %p: security label not available", s);
|
||||
else
|
||||
pw_log_warn("server %p: security label error: %m", s);
|
||||
} else {
|
||||
/* buffer is not null terminated, must use length explicitly */
|
||||
pw_properties_setf(props, PW_KEY_SEC_LABEL, "%.*s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue