Message ID | 20200319100529.31509-8-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRB6MHZXZQKGQEDOUDQPQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::539; helo=mail-ed1-x539.google.com; envelope-from=swupdate+bncbcxploxj6ikrb6mhzxzqkgqedoudqpq@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=ktmycRuq; dkim-atps=neutral Received: from mail-ed1-x539.google.com (mail-ed1-x539.google.com [IPv6:2a00:1450:4864:20::539]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48jjGP2hD5z9sSG for <incoming@patchwork.ozlabs.org>; Thu, 19 Mar 2020 21:05:49 +1100 (AEDT) Received: by mail-ed1-x539.google.com with SMTP id ce13sf1478206edb.11 for <incoming@patchwork.ozlabs.org>; Thu, 19 Mar 2020 03:05:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584612346; cv=pass; d=google.com; s=arc-20160816; b=ar7ptVt565S3AVczdYoGR0/LPYoCfN04xdidphb+YvAibcoM5W5F8ESA6qQsA5WNzm Em6D8EnrHQAqDyGAmlJuz847GVyDfjZwzqbF1fT+ne+/vSEMVqo7zTYl5xDBsgLXo0XI wTGQP1FetW3/W2+diKxC38oM4Pd6stGSLtYzZ91CQPkuXRG5OQMTAIwAwfrXOrLdwUWO BwpDJOB22en7NXkiWvfjz3YcMIopYDA9uB8O/hMFnnRI3iR22jD+ZYN0VpxVRFy7W3h5 FUPxb9Tg8GOeepl1Xl/rUjUw4y5qEpRlPaHRhNJvygS/IUcIAGMqjfpsR9HYZf7u+sXg ckmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=x70WgULVaxunPM1ZuaB24J4S3XUani5gJvPArwzEa7I=; b=npa3Kzx/dXEfVl1by5H5YIjkQBVMYNW5jtTwB65MGYfMBElQOGUWhExqis3cRGm60L EXjt+9eBKF7/Q32WuB3QYG1UO2c7XRUeNooCv2+T2mKmHpBF0dEKBvRDa0fpNCDrrDyS LMhX8qmCn47AIJ/mdA5n+GXZJ4Idd9SYdRebyQ2R13YLkZ6l2jRu+bKiBoGKb28l6Mtd aITiMp3MbYaVA2PV2VwPHkuQPh4rwVjKLBws0rq5JIhd9OVHLCRtRlsYq4ucM0LFXHD1 hv83hlc84NNF2lLXPEqZSEWayqrdcvfQBneA3nJGorBh0w7qU4z0ZHYxlYI1OhOy9mFD NOTA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=x70WgULVaxunPM1ZuaB24J4S3XUani5gJvPArwzEa7I=; b=ktmycRuqLkA7gZJUWPUmwqskS9Qcw+Rs5mGE0bpYaoiuflhC8GNboAowLLgEAMuKuZ ag5BVt7vO0PiS+9uxQCQgP4zikwqroakbIRAIbVzYYXTVnK+mQLwPigN9AuJXQ7KxfD+ mWiI53t9fmgxEoeOQzgeKcTLpHM3uKtNDppXIORIf8+kSkAr1EznW/twTT4N7J5XLPVR fzes6ldQ2rK05quOsQE1lc2N0kFG6DdbxfmvhrGs1fzds/3XQfn/HmSbOG0u4AeEB8Mn V+D7rGthEREkDVaTrXgPDXGj4lKsYHc3Jlcr1/h3V4hkScnuoz2bDOkItE7ui5I3dMCW o28w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=x70WgULVaxunPM1ZuaB24J4S3XUani5gJvPArwzEa7I=; b=SMsuHvFWWmyw4c4dOeiit6Uvefi5eTE8TZbQVKMMq82bL1wMHBE4FGDNJQC5LkWqO2 k+PF5bXM8j8duCbUtNCXwgIOwzBWvThLktgyndXWw+fXik0wrjADuxvhYEWzh1OaePKW 4vaREvTdRCJhq6AT8UlQ/PwLRym6Ig+Xv5ndT4s33hMIFPjn6346QNYJ3N0jt3sFZOgN eFjZYrMPVNuXnuRgJK6HMsqomX1ULpwNe1BxHoWffrZIup2pzKM1u88a/V/gdqFoczqn cWz1bpi7oIf05yav/dmmcbgR8Ffh7UMcNLmoLQ6mJJMl0IkM8AJmn8RGcDheH8lFufkh 90yA== Sender: swupdate@googlegroups.com X-Gm-Message-State: ANhLgQ3qo40Q35LPxjmBBbbBLHyr8TwumsQXa3emjiL/Ojb2FqxWwCcW 5zYZ6Kcc1h56Gq1zvxmvhcc= X-Google-Smtp-Source: ADFU+vu6D++rVRSzffj+sbU7GsPWpxmiii1ejKC0Pchura37Cg3daE+slwNYkjIyi7XbptMD6bh3CQ== X-Received: by 2002:a17:906:698d:: with SMTP id i13mr2341689ejr.225.1584612346099; Thu, 19 Mar 2020 03:05:46 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a50:99d5:: with SMTP id n21ls924744edb.10.gmail; Thu, 19 Mar 2020 03:05:45 -0700 (PDT) X-Received: by 2002:aa7:c9cb:: with SMTP id i11mr1929695edt.320.1584612345309; Thu, 19 Mar 2020 03:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584612345; cv=none; d=google.com; s=arc-20160816; b=otXAeQfLuWQcQ8AnJ8w4U8YIkTlEZP5sT3NRIqDZK89Up/VZyXcU4QRrnvTUJ9aGh6 jDOyWznCQ+Qgbt9xAR3cbGqJBowH7+Ita5PKngnduxDZ5REaZ2HoJIiK9aMaEEITJV0g JmlSdhEe9NqCSu0F+r6uLwmufWYACIReux4V70oZMyYIl2JEQuGS8CNfUqF5UooAqxn6 2/CJCyLg5Ly6x35PSi6cci9C7kAan//z+nkj8gwuQVftbZITu7YjpOpgXgvj6CLwut2x h7a0W24L4C84GpzrWJCi0lXeAl0JnyOJNzfANeoh3jvlwlthi1jxF2ZR4adPn4sfpr43 wa5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=vko0/Zg4WVnaDbVlE3Qqb3k1yk3kKfL/kMqoMghBBvc=; b=UQCjviv/fFsj6eYxlnugoix1Jz92j+X687SzdL683DlYn/6w4p8fdLo9S7bKiU1D7P 0gbl/rXLd7FumvxJ9vERqKAJYQ1k6leYVOH9uEOl0JHaIGCmDN7+1ExvG8AHvmURlNhw K3reIZjD7PjxDcJATIAzv6XlPFNqMqOLTNI59lKM1um1P2EefL7bm+uSLg9UmzhICZvU qbCKFjYc9yjWJ+byHkotHc+QmejHkGUtRt705BsOuC6eJF/5RGwP6O2V0Mhr2Eka2YLl fMbjLfZ5ud39Rclet3ZLma/uhnb3vuBg2BT/n3BJnS6ZtV2Ac8+3BYZ2EdFFn7wxUVHt SUqA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id k9si62403eds.1.2020.03.19.03.05.45 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2020 03:05:45 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48jjGK0KcRz1rspk; Thu, 19 Mar 2020 11:05:45 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48jjGK04RBz1qrG1; Thu, 19 Mar 2020 11:05:45 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ey6OdH_lKIeq; Thu, 19 Mar 2020 11:05:44 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 19 Mar 2020 11:05:44 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id C0B264540462; Thu, 19 Mar 2020 11:05:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id WDYuvhOsbmS9; Thu, 19 Mar 2020 11:05:42 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [IPv6:2001:a61:618c:c001:f5f8:cefb:b7cd:cb5]) by babic.homelinux.org (Postfix) with ESMTP id 8238E45409B4; Thu, 19 Mar 2020 11:05:32 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 7/7] IPC: do not overwrite message type Date: Thu, 19 Mar 2020 11:05:29 +0100 Message-Id: <20200319100529.31509-8-sbabic@denx.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200319100529.31509-1-sbabic@denx.de> References: <20200319100529.31509-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact 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>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Extend IPC to change AES Key
|
expand
|
diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c index 382f1d0..d5dd918 100644 --- a/ipc/network_ipc.c +++ b/ipc/network_ipc.c @@ -297,7 +297,6 @@ int ipc_send_cmd(ipc_message *msg) /* TODO: Check source type */ msg->magic = IPC_MAGIC; - msg->type = SWUPDATE_SUBPROCESS; ret = write(connfd, msg, sizeof(*msg)); if (ret != sizeof(*msg)) { close(connfd);
Up now commands can be sent to a SWUpdate subprocess only. This will change and additional commands can be sent to rule SWUpdate at runtime. Remove the hardcoded message type in ipc_send_cmd(), that can be reused to send any IPC command to SWUpdate. Signed-off-by: Stefano Babic <sbabic@denx.de> --- ipc/network_ipc.c | 1 - 1 file changed, 1 deletion(-)