From f1d60d6009d989edeaba608bb21c61811865de67 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 19 Aug 2019 12:31:38 +0300 Subject: [PATCH] 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. --- src/modules/module-protocol-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c index 8bba3abc3..e204a8b77 100644 --- a/src/modules/module-protocol-native.c +++ b/src/modules/module-protocol-native.c @@ -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); }