various: turn off SO_PASSRIGHTS where fds are not expected

This commit is contained in:
Mike Yuan
2025-06-17 13:16:44 +02:00
parent ed6b7b6ace
commit 85352c095e
7 changed files with 37 additions and 9 deletions
+2
View File
@@ -819,6 +819,8 @@ static int create_socket(const char *askpwdir, char **ret) {
if (r < 0)
return r;
(void) setsockopt_int(fd, SOL_SOCKET, SO_PASSRIGHTS, false);
*ret = TAKE_PTR(path);
return TAKE_FD(fd);
}