{"id":810998,"url":"http://patchwork.ozlabs.org/api/patches/810998/?format=json","web_url":"http://patchwork.ozlabs.org/project/swupdate/patch/20170907122454.24183-3-christian.storm@siemens.com/","project":{"id":58,"url":"http://patchwork.ozlabs.org/api/projects/58/?format=json","name":"swupdate development","link_name":"swupdate","list_id":"swupdate.googlegroups.com","list_email":"swupdate@googlegroups.com","web_url":"https://github.com/sbabic/swupdate","scm_url":"git://github.com/sbabic/swupdate","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170907122454.24183-3-christian.storm@siemens.com>","list_archive_url":null,"date":"2017-09-07T12:24:51","name":"[v2,3/6] socket split: adapt remote handler","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"c119f6b45814568397fa4d4b0c040d587f4dd62a","submitter":{"id":72180,"url":"http://patchwork.ozlabs.org/api/people/72180/?format=json","name":"Storm, Christian","email":"christian.storm@siemens.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/swupdate/patch/20170907122454.24183-3-christian.storm@siemens.com/mbox/","series":[{"id":1993,"url":"http://patchwork.ozlabs.org/api/series/1993/?format=json","web_url":"http://patchwork.ozlabs.org/project/swupdate/list/?series=1993","date":"2017-09-07T12:24:51","name":null,"version":2,"mbox":"http://patchwork.ozlabs.org/series/1993/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810998/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810998/checks/","tags":{},"related":[],"headers":{"Return-Path":"<swupdate+bncBDD6BWV65QPBBOPWYTGQKGQEBXJK6VQ@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:4010:c07::23e;\n\thelo=mail-lf0-x23e.google.com;\n\tenvelope-from=swupdate+bncbdd6bwv65qpbbopwytgqkgqebxjk6vq@googlegroups.com;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"PhiDUT9y\"; dkim-atps=neutral"],"Received":["from mail-lf0-x23e.google.com (mail-lf0-x23e.google.com\n\t[IPv6:2a00:1450:4010:c07::23e])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xp08Y39GKz9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 22:27:40 +1000 (AEST)","by mail-lf0-x23e.google.com with SMTP id c82sf729163lfc.13\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 07 Sep 2017 05:27:40 -0700 (PDT)","by 10.25.198.16 with SMTP id w16ls42200lff.24.gmail; Thu, 07 Sep\n\t2017 05:27:37 -0700 (PDT)","from david.siemens.de (david.siemens.de. [192.35.17.14])\n\tby gmr-mx.google.com with ESMTPS id\n\ta20si17691wma.7.2017.09.07.05.27.37 for <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 07 Sep 2017 05:27:37 -0700 (PDT)","from mail3.siemens.de (mail3.siemens.de [139.25.208.14])\n\tby david.siemens.de (8.15.2/8.15.2) with ESMTPS id v87CRaFA000897\n\t(version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)\n\tfor <swupdate@googlegroups.com>; Thu, 7 Sep 2017 14:27:36 +0200","from MD1KR9XC.ad001.siemens.net ([139.25.69.251])\n\tby mail3.siemens.de (8.15.2/8.15.2) with ESMTP id v87CRau9019931;\n\tThu, 7 Sep 2017 14:27:36 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1504787257; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=fgNOG/HrCfDCB/kpfSbrzHGgJovAMU/f2OD9bnkfLR2w62W8ERtm5wye7F4sokro2r\n\tncNuKvFn0lpHKAi1Fgjw/I0IJq4dazv/p2ehkxvIKsvrEMm605oixbdRUyh5yCPudP6S\n\ti2yZm5xnMZOs9ozL7o2RHA2mhBTkYjdrP+85ZfJlz4u6HmnOhQWDarSx8xAYJguxekEu\n\tvk0xrEIcgrho/lTXidA0XjLYDjFPTImzuqg8nNjbI2bTwBChNnXKiS7Vo5cD6Yc2ymQR\n\taHjzGTW7Q15zXzzhsL5yF97ICoECtcK+F6ZtrWfkRmbgTS2h4BoG5mFcDQqQ31XPuOKO\n\ttfzQ==","i=1; a=rsa-sha256; t=1504787257; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=zb76FaVk4zgo6t2o+Mxzl/ETGithtcXz11aF7pj8+qXTR9IohQFSJl/pg2iXmaO1o6\n\tdA9YNacR6G8UvkciVwlf5cRtdzxuEvCROKGGQ232F+5Q+JmNfTB7XOqw++gtVBiq0kwh\n\tkmUER5n31K6uC3el/2cV8dWpUh7C/rNN2/bJKroeV6eblOg/KocMBF/6G2RrhBfrZ//X\n\t0Dz+QhHajSlbpgtNiFcP+k04v4+qeSJEiXhuCuSWqRrz8qs6hodk1D+Y7r9f2n7PZ0xI\n\t9tNL8Aq2h3vxmewu+KwlEgGw661f5AfkD1uE0FZe3s/rMg4QXxcsVpgTXwiuAy7pvzi8\n\tp1ww=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:references:in-reply-to:message-id\n\t:date:subject:cc:to:from:arc-authentication-results\n\t:arc-message-signature:mime-version:sender:dkim-signature\n\t:arc-authentication-results;\n\tbh=Afe+IlVDiZMfAGRuBlW9ljOk90qPwkYvqKsMGdB3Fj8=;\n\tb=nC564e2RNZfgVqTQ8KEcAmZot9v5KJYcPAzhjBNJ7acxoMRq90o9LzEp7soUJWkXy7\n\tAyCvQj2yrEp7drfMBykkGWz5/jNoVbShELAMrVdrTnDU4yd4ZVZCCEH6liQOax7HPgEt\n\tjDP4BfGZsPWxxFDun5FeO/lhgrRkJgavEh8mz2qUbzdCBZJ/CiQ8NimK9OBzXNwJsgyd\n\tDItjasjf9a0Rvd0E/iaOE8tdJX2hOOALf/GwGZr442FJb8qTfKAUiuwOP0l8yg+Qfk3T\n\t5Q8eHFz3LvawwFKtp+0q6eTGn3rpu5toPYN5KcTev5CcKh/I5aObx3U1+w8bDa/5yq9n\n\t1Rtw==","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=references:in-reply-to:message-id:date:subject:cc:to:from\n\t:arc-authentication-results;\n\tbh=M7iKH3KikGRr+K51Nrig5JFsJXBhEhj4/ZCcXuuGIjI=;\n\tb=Qp0B3TTL2ONSZxHAIEh4kiibd6G/K5cK53HZIFtBKQs8Sy+tj2vK7CD8w8u6lWquP3\n\tOnzzkvTlqHkBuVmpNFjvT5xiyEeLMcP2OxH+nS57ezuXldyJselsUSTWdXFk60fNmm7p\n\tXSlC1Sz2n6dKoJzWSQSb6d4edbVPqbLqWdEpW+nl9AYRRIDms1q6G+hOYp5rpluv27ge\n\tzL6aKCfQVGUpt8UFTvyC0HDKVqjnoF10OqPHggWFfouoqQJLRX1Q42K7jD4ZEkz4LBYZ\n\tmB4NFKdKKqNqTq8embXmYuUHJ5NJMd9aRshCW1ASlDbd06Kav6T/f9AbDLJGxPbEfCC0\n\t5ysQ=="],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n\tspf=neutral (google.com: 192.35.17.14 is neither permitted nor denied\n\tby best guess record for domain of\n\tchristian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com","i=1; gmr-mx.google.com;\n\tspf=neutral (google.com: 192.35.17.14 is neither permitted nor denied\n\tby best guess record for domain of\n\tchristian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:x-original-sender:x-original-authentication-results\n\t:precedence:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=Afe+IlVDiZMfAGRuBlW9ljOk90qPwkYvqKsMGdB3Fj8=;\n\tb=PhiDUT9yJxiHhkuqL7eY5o61TWQsnL5Wh6k64D6TMt8IfNVAj0QP4brS5XZtb2Fsq0\n\twckf/GP4TqjZSYIyIZil7oW8t9cQvAAnhEcmiGJKUHctrmU8jWUQ6lrzNsTy8hFYSLFS\n\tk7RNy2Q/KvmBpiyVXU4CU1fQkV/FCmUurhObkvNMdzkGRPZOsI+K9yxytrRYuPXds+ls\n\tb/e+m+2fDlUF/O1hwRFSSwCVROfG5NJO1Gs6GyI47lIMjsLRxcOBCITG3lgCdDd/jkHz\n\tuC02ConBoe6Bos2a21i0UqhI1zpd547xoX2wInKnkFQCP4P3WeuUCfmSU795icZj4tM4\n\tCAqg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:mime-version:from:to:cc:subject:date\n\t:message-id:in-reply-to:references:x-original-sender\n\t:x-original-authentication-results:precedence:mailing-list:list-id\n\t:x-spam-checked-in-group:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=Afe+IlVDiZMfAGRuBlW9ljOk90qPwkYvqKsMGdB3Fj8=;\n\tb=MNHvVH2LE8gij2XWoSWxvl2YsderhrpInihQpCUJ+RXI7Adj84lkeprLw2SuhP5VVf\n\t+y+jV/7+2kvJ/KUOtZzeK/KWCcaB1vj56I3qtpjjRgI+AAT7/VNBxo89p0ongZx5uV7R\n\t2fWfLvj0gBHSY9U/SXgJnsFFPKTZDMaGlc4ISbyhsV99bEFxXED3ah3eLOOVVLeVbsRr\n\tcuk9wk0IetZOinBL+Et2NA31DOJKLtyobLrmqDLqb+4llDYgKWpxvxGElhXFxoDMGKMX\n\t6eXFHrPJaE1ncAQMYcMimTbbBRGvdLadcfb6IK/1zxlUWT/3xwQBy1eWROR9l8MzM3Jz\n\t8cOw==","Sender":"swupdate@googlegroups.com","X-Gm-Message-State":"AHPjjUg0jxmOuVieJROvhe9rnUkW9xYV0UOGUvBKFiCJWEReUWR2S46m\n\tvWSrExEVIwzu1w==","X-Google-Smtp-Source":"AOwi7QCAtKhsnonLpdtznCOH/kUeU28gLe2Evmu2njK5Ny8bofTgRNJtGRpcRos5sTgFPaqCyD0LYg==","X-Received":["by 10.25.80.67 with SMTP id z3mr3625lfj.18.1504787257732;\n\tThu, 07 Sep 2017 05:27:37 -0700 (PDT)","by 10.46.82.12 with SMTP id g12mr204385ljb.24.1504787257291;\n\tThu, 07 Sep 2017 05:27:37 -0700 (PDT)"],"MIME-Version":"1.0","X-BeenThere":"swupdate@googlegroups.com","Received-SPF":"neutral (google.com: 192.35.17.14 is neither permitted nor\n\tdenied by best guess record for domain of\n\tchristian.storm@siemens.com) client-ip=192.35.17.14; ","From":"Christian Storm <christian.storm@siemens.com>","To":"swupdate@googlegroups.com","Cc":"Christian Storm <christian.storm@siemens.com>","Subject":"[swupdate] [PATCH v2 3/6] socket split: adapt remote handler","Date":"Thu,  7 Sep 2017 14:24:51 +0200","Message-Id":"<20170907122454.24183-3-christian.storm@siemens.com>","X-Mailer":"git-send-email 2.14.1","In-Reply-To":"<20170907122454.24183-1-christian.storm@siemens.com>","References":"<20170907122454.24183-1-christian.storm@siemens.com>","X-Original-Sender":"christian.storm@siemens.com","X-Original-Authentication-Results":"gmr-mx.google.com;       spf=neutral\n\t(google.com: 192.35.17.14 is neither permitted nor denied by best\n\tguess\n\trecord for domain of christian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com","Content-Type":"text/plain; charset=\"UTF-8\"","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n\tcontact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n\t<mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>"},"content":"Make the solely internally used handlers/remote_handler.c\nuse the kconfig setting for SOCKET_REMOTE_HANDLER_DIRECTORY.\nAs TMPDIR is hard-coded to /tmp, this change maintains\nbackwards compatibility.\n\nSigned-off-by: Christian Storm <christian.storm@siemens.com>\n---\n handlers/remote_handler.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/handlers/remote_handler.c b/handlers/remote_handler.c\nindex 663a451..59661c0 100644\n--- a/handlers/remote_handler.c\n+++ b/handlers/remote_handler.c\n@@ -167,7 +167,7 @@ static int install_remote_image(struct img_type *img,\n \tstruct RHmsg RHmessage;\n \tchar bufcmd[80];\n \n-\tlen = strlen(img->type_data) + strlen(TMPDIR) + strlen(\"ipc://\") + 4;\n+\tlen = strlen(img->type_data) + strlen(CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY) + strlen(\"ipc://\") + 4;\n \n \t/*\n \t * Allocate maximum string\n@@ -177,7 +177,7 @@ static int install_remote_image(struct img_type *img,\n \t\tERROR(\"Not enough memory\");\n \t\treturn -ENOMEM;\n \t}\n-\tsnprintf(connect_string, len, \"ipc://%s%s\", TMPDIR,\n+\tsnprintf(connect_string, len, \"ipc://%s%s\", CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY,\n \t\t\timg->type_data);\n \n \tret = zmq_connect(request, connect_string);\n","prefixes":["v2","3/6"]}