protocol-native: downgrade getsockopt SO_PEERSEC error to warning

Getting SO_PEERSEC on distributions that do not use a LSM by default,
results always in a "protocol error", which is just annoying and not
a real problem for pipewire's operation.
This commit is contained in:
George Kiagiadakis 2019-08-19 12:31:38 +03:00 committed by Wim Taymans
parent 9799b0e679
commit f1d60d6009

View file

@ -277,7 +277,7 @@ static struct pw_client *client_new(struct server *s, int fd)
len = sizeof(buffer);
if (getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buffer, &len) < 0) {
pw_log_error("server %p: no peersec: %m", s);
pw_log_warn("server %p: no peersec: %m", s);
} else {
pw_properties_setf(props, PW_KEY_SEC_LABEL, "%s", buffer);
}