From patchwork Thu Oct 31 10:55:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178156 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2649558ill; Thu, 31 Oct 2019 03:55:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyACvh0oEBZrtEyPZOKG8RHsIyhj2x9nAdPpIW2iwsVV+dUyqEpzR8DnvgIdc3uhVBqA3Uw X-Received: by 2002:aa7:9639:: with SMTP id r25mr5707714pfg.17.1572519326040; Thu, 31 Oct 2019 03:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519326; cv=none; d=google.com; s=arc-20160816; b=LRoEPlvGuY9QQZcWtKsqWT4woID7J1diGkU6zo/QwN+a0nCxQjmknt4iBgYcOle9St Vj91bebR6nZ6+S8B7fAFChrwYVxTNloGFmmraNet3UYMrasX4k4Npnj+bkJiKLh0LpZ7 NuI+1307/N6DISA8Ut8u7A2tS09ML64/MtUpp6ZHlUv7Lr/DPGEW7pJ8QQo+o4ZRvN8F jKbx59h/sb8/Hjt5qNeojBXVVXMFAV2WUf0pEiNgpy7fQgWWKGS1TPEVrd+6qyS8vKVy Yw0ajDXgDtAQgvKbv078MASHn+IUWh9a/swnKJRG75zmvnUdVfdAPKK0SH404y+9CNUP 9Eaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=zPOyqX+MLikLIivO0/ebDy3+iDlcfmOy0cGbkv51wNg=; b=HcTbXRECX31vNK8JL6e7jd8RjuFcXihNmtLABffLd6GBxya64VY/l+bvqHClZ/jIMt jjRqhqCZ6osmysSH1pU9y9R4k3d3En48m5zUpJkSJBZadJF8CiemK9A5YuARWfJgniqf dXCpWoWKeh3yPsEp6Jx+pFTVrgXI+1jv2wrX2iqQQzENEJjYGO9X4rZGjat3NUFZuh3l ttwESSxcYer7KpuJc9g9taowooNjUYsvZ9MuYrwJlcrNJI0J+ce90bD2bDwmi/eP58gx m6p/Z6ThLMSXL86xbfXOVEKKo+MHe0jCTszMglHNA1tXhiyCZbTrgd48NZr2pm0XuBqn kxwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QA06nlKR; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 78si7792289pfx.234.2019.10.31.03.55.24; Thu, 31 Oct 2019 03:55:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QA06nlKR; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1E2527F959; Thu, 31 Oct 2019 10:55:23 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 8BD5E7F8C1 for ; Thu, 31 Oct 2019 10:55:22 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id c12so870825wml.4 for ; Thu, 31 Oct 2019 03:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=u+xmfLn5oSmPLyjMQ4qjxaQjFxUpZibM+7ZmYgryLq4=; b=QA06nlKRI0DN0ajPvlGyLYgXw+ezVzqrOZ6L3so1SV1krdiB2xML/g9nLVj/7VAOYx m94beTz25mOVQvJzowbvz5CsamY+wvAsSGujxqb0oM0vclLrf0M6ddc61gFHzSlELhq/ 9URStoZ285QOzR0qiTeuNeRNJ3o4swKF+iBWiERhEGrZRrmCZyfBpBsCyjimmG6dLXfg ucgGo+f40929UVych3WeU+tjc2p3H7gwkN7hSwQtiS7lZ6Ti+Y3z0TATIc6OAi6aXlbO uGkcDs+fFpdyaYYtmB1T8/c+eDGnABjtjoqRBzaa/Lxh3n6aAFLCaVQRHG826Fmiwh1k 73vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=u+xmfLn5oSmPLyjMQ4qjxaQjFxUpZibM+7ZmYgryLq4=; b=k7qZFr5VckU14WJpHpZyHG/SADbyoqQEBP5FBnmTaKbuyKZ8YL2QXaMsPotTxOdQLp PH1YWZUxsiPetQXmecpmtKj5m12IgvrEa3E0h8P5JhP6UckEvKuKxJ14Dka7ZQOsod7W I1ZHv5abluGbK0DTtYnN1ZbfWlWniB6A/NEvIB/h3Xbyygxiw2QUrdO2TmZgnMA9nVHr AwYbOa5yCqUbTpecHBh+KTLQSvrkA2RM7ZC2gmnDuUwSFgMNZV1Tk3fxYiyE+7dWQY3/ s3tKoZLsOFy8Yi7cDR3tkwSTenN13Yura9op/NBWxXXx1Jd2nSF72Z90AKBXryQvr960 PhZg== X-Gm-Message-State: APjAAAXXnYWOv5+Xjkxmu9sM0FUR/cngIoKfS3p+SNCfz0uS2lVch5YL vdKHM6lV8Ezvch/WVARN/Lv5Vjyijj0= X-Received: by 2002:a7b:cb89:: with SMTP id m9mr2598720wmi.141.1572519322996; Thu, 31 Oct 2019 03:55:22 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:22 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:12 +0000 Message-Id: <20191031105518.7716-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/7] qemu-helper-native: add missing option to getopt() call X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Noticed by -Wall. Signed-off-by: Ross Burton --- meta/recipes-devtools/qemu/qemu-helper/tunctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c index 16e24a2add6..fc00e997891 100644 --- a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c +++ b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c @@ -41,7 +41,7 @@ int main(int argc, char **argv) int tap_fd, opt, delete = 0, brief = 0; char *tun = "", *file = "/dev/net/tun", *name = argv[0], *end; - while((opt = getopt(argc, argv, "bd:f:t:u:g:")) > 0){ + while((opt = getopt(argc, argv, "bd:f:t:u:g:h")) > 0){ switch(opt) { case 'b': brief = 1; From patchwork Thu Oct 31 10:55:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178157 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2649634ill; Thu, 31 Oct 2019 03:55:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwolxOIL1rYkWXBJqVIf9KctyW4tgSKCtxuWwkQsBednfEx7ZNO4x9psnMfeugXHX3XIVKi X-Received: by 2002:a17:90a:9416:: with SMTP id r22mr6584014pjo.20.1572519329866; Thu, 31 Oct 2019 03:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519329; cv=none; d=google.com; s=arc-20160816; b=a/tbQbyt/8T9jqOMAw+V/va0b1x67ZSSI60B+2xaFSxuQSOXjUzxfXkBEONBcHB9Y5 d2HXn1j2M6WKxco2ve8f3M7JVXSMcp+m0YduXkkXX12maCHuDF6H+82oEZIwj+yW8gCY sll2wAYGSGKDCE+uwb/woB54KCTTPZK++IxLRs8jgTlM4AFBva41hf71bilWMx10wyiS usdnKYwPnFaOM90nR3Yzr52yhlciCyYxD/R1KwIavooCksjHLP4RSyRSWoqK7A7C30AF gwUSssujbl+nmHCFPU4cfdQbLtxjMuqvgRMCQ2XhoxB04tlOIQrPfIR4qx+LaAJCSXCe SIpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=f8oXjCcwQueAHMBg+kMq3JYhsclECrtpnROjVsH3ZJM=; b=ktXMuxPU3PyISqXE/kXEmotJrQT/Y4v/WIKrEgupl7IJ1p0Zz0YE3wgJQZmYipZpBz DzPZqBvAvy6Z0LM59jA+LrL5dZm4R5E3WlDdzUcNYrYweElww57i0llbqfzrbeFwfhrl STTKshv2dez+83cIYN1Iwl+EL87hGZupO7DO9MnPIRx9FuDbPHZA98btOtyOqDo2/fAK momE6djODUbB4SDlLmvEOGBo5PxsLmDjKZx2jXIhA5ygkPwsfTwA1KEHDiUsU7GqxAk6 hl9OlOaVh/zIZoQEcQeWxA7yKaXVwXMLFtx2uHlBaw8x8fpG+lEpw5xRp5bLFe0K6RDM xSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=BiDlEhhk; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y23si336433pjp.28.2019.10.31.03.55.29; Thu, 31 Oct 2019 03:55:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=BiDlEhhk; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 99A527F96F; Thu, 31 Oct 2019 10:55:25 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mail.openembedded.org (Postfix) with ESMTP id 8219A7F965 for ; Thu, 31 Oct 2019 10:55:23 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id n7so5413213wmc.3 for ; Thu, 31 Oct 2019 03:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=EWmHsnU7wwAIh3zRbo8Aft+cNEc9AwU3nG0YwA21Htw=; b=BiDlEhhk9J0sK+Hoy6scAFNlwn2+U/o7zKaE0bipyMR6jj83Rrf7V088Kf90fULRr7 QIi8drJu5UgpnhyhGjv4ZTuFEQkWO5wWTi4IspDKNWYPnCrcZVzK8wnhZzLjDF2D+NlZ JVOb8DuKQifUFEs4VHrwTcDr9R/hnicnvt2Sur2NYwE4IleaAMg877piOqQinOT1fBeN c+d4trXJ1kwWiZuDKYEX2PgnKZ9iK7rJaSwbar6bEiTQELBTd7xOi4GNpTG6EW3cYEKJ qveOXa72sJW3gzw9LWjKuH6bxXK6N8+h8OoUZLqycoWypNCnJbleFxUeEga3sYdswrX4 dyRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EWmHsnU7wwAIh3zRbo8Aft+cNEc9AwU3nG0YwA21Htw=; b=qBOriCK0aM+TU8x0TCJVcN0zMaDSB3ZWCPVa23bgJPN3bNCJiqSWdZYTC6Zk3zKKEE fTv+dCW7nQzlhBjrUjboqGRJlmfN2RuotfRUrA9AA8FGW/TNV27L2oNkCetAub4VkyaP leYXLGd8qml6UkOMWzkjchoDxT88SuLI/zf/ivGmHhq7ZXcExJ3aXBS+LXAweCF8cAIz twGhZei8/Fp8jz/RIav4goqy1vFwfQjMSokJbS23m7w8eoIp+TW85vOx+IoulWKeJOYv hZ+Xkcgd9RfPlrRAN4aiRH8rlhRsgdsHRQJlr0N6xxP4AUOfLLv3jIyd5gmZ71/qhrsa 3UqQ== X-Gm-Message-State: APjAAAVW4Ok4IXHPMsU1jPR9sg5w7T76HjSrsXKwinGt/OlJUncee3yu zTQytlfIae0u+UhleHtbT+NWyf1svKk= X-Received: by 2002:a1c:a78b:: with SMTP id q133mr4466338wme.115.1572519323869; Thu, 31 Oct 2019 03:55:23 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:23 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:13 +0000 Message-Id: <20191031105518.7716-2-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/7] qemu-helper-native: showing help shouldn't be an error X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Displaying a help message if help was requested isn't an error. Signed-off-by: Ross Burton --- meta/recipes-devtools/qemu/qemu-helper/tunctl.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c index fc00e997891..d745dd06cb4 100644 --- a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c +++ b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c @@ -19,7 +19,7 @@ #define TUNSETGROUP _IOW('T', 206, int) #endif -static void Usage(char *name) +static void Usage(char *name, int status) { fprintf(stderr, "Create: %s [-b] [-u owner] [-g group] [-t device-name] " "[-f tun-clone-device]\n", name); @@ -28,7 +28,7 @@ static void Usage(char *name) fprintf(stderr, "The default tun clone device is /dev/net/tun - some systems" " use\n/dev/misc/net/tun instead\n\n"); fprintf(stderr, "-b will result in brief output (just the device name)\n"); - exit(1); + exit(status); } int main(int argc, char **argv) @@ -63,7 +63,7 @@ int main(int argc, char **argv) if(*end != '\0'){ fprintf(stderr, "'%s' is neither a username nor a numeric uid.\n", optarg); - Usage(name); + Usage(name, 1); } break; case 'g': @@ -76,7 +76,7 @@ int main(int argc, char **argv) if(*end != '\0'){ fprintf(stderr, "'%s' is neither a groupname nor a numeric group.\n", optarg); - Usage(name); + Usage(name, 1); } break; @@ -84,8 +84,10 @@ int main(int argc, char **argv) tun = optarg; break; case 'h': + Usage(name, 0); + break; default: - Usage(name); + Usage(name, 1); } } @@ -93,7 +95,7 @@ int main(int argc, char **argv) argc -= optind; if(argc > 0) - Usage(name); + Usage(name, 1); if((tap_fd = open(file, O_RDWR)) < 0){ fprintf(stderr, "Failed to open '%s' : ", file); From patchwork Thu Oct 31 10:55:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178158 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2649761ill; Thu, 31 Oct 2019 03:55:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+Hmr9GtfaCa0oTTXlKZIE2Zbw7z4gWI5t6Brth6wZahtQ7LWmXzj9QppEfeHPucQHz0k1 X-Received: by 2002:a63:f10a:: with SMTP id f10mr6007203pgi.168.1572519336269; Thu, 31 Oct 2019 03:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519336; cv=none; d=google.com; s=arc-20160816; b=CX3BNs3NCuM21Dh0NVmepb/R42maG1qPfcd/cB8gRglhb0o+gPvDuLy09Cej+i2Qb+ OpRilcKUA8aQeDYl5YP4EGvcm1+6EfxopjlJ0mxYu3KF1KpmTIvJx92dfvcXkf/sc3ak UWvQvlzaDh5TodbyUhf8WyMlczAoczk4qndLO5B6A8y3v7YWu6nbeMfaZbULZgy3cmzg Sv+GwKLW6HkqpGEFaw8tRomaPVfzd/ps+1sehwvN7qpUpanaRq+vxTj7LmK70Naz/QmN H7uaQSlvsKnBgNAVuMBdMCGSkDSm5y7njDok4B8MK4dk2xNXnvbGpTUiVw5899m7syp8 AmxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=6ZeRHZglBcrz09kUf2INoKEoPpdc3H6CxS8/eTp5Af4=; b=GXv3LtBSZ2H4VdGtKR/T8E28XQqy0uYQC7PdASbPVc1yWlGpM5w77q4CLG/M80VPuk 95xbJQV0057BFh76Natxq1smprgC49kiOoBCWQMEbiBcFhmtisay47RTak1C1xn7RzyW ECoTsIwP/xV2vO2CCoOYLg2jZhnPD9ArWHbHB1xhHZ9Q+ihBzoDjXK9lX4hjVgz0lAXZ nM0NdDki0iiJX4GlmTzf4/RaCriwPqTy29B8P7Hq4KklcRWA4Jhs/ZyMfilEuWxxGrYK TpTDvlZ6XE+M8mrcZKeOKF3e0mIb0yY3IFsCTANsPSOAWFZ42J+XC1xu+kWbNUDjtshF vNFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=rqTIOTr2; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d28si6812144pgm.363.2019.10.31.03.55.35; Thu, 31 Oct 2019 03:55:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=rqTIOTr2; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 05ADF7F98F; Thu, 31 Oct 2019 10:55:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 28B657F96B for ; Thu, 31 Oct 2019 10:55:24 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id q70so5425618wme.1 for ; Thu, 31 Oct 2019 03:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=H36xQDjJ+hLGMocRiZomLYtnSKu0iufCHD0IkuA6Y9A=; b=rqTIOTr2yyOrRyvAgAKRR/7+WN6YTKuKo4Cs3T16UuF5BG7U6KeOPaExX8X8kjnYGY vhKgMoDz7VeElhGqztdP57HHD576yY7AIUUnZ9C6VzmushbD4BaE3OYNBUW3vlwey2t8 J0s4wfd8KoOG3rWGjfILaOHwirP9qsx+B/CAYxbGAYDFniUSgQ0zyszUzs1dDO6xbXp/ dq3B6yaOpDzN25kYhQ5KYu7Zd0tYUOiR2ieofnOY3qgyKQEB/JNphZkwgtOu8ZkgmqoZ c6iChe+cQTQBfjG/SsCib4TZrQ3fkTFTE6UzdMRUmPoCl3iQA3JO7Bwl7OFMwAAiSaIO JqJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H36xQDjJ+hLGMocRiZomLYtnSKu0iufCHD0IkuA6Y9A=; b=Spk32LfnfjYXsk8nX6VioGG6jDGyde4Kq75EFWAzno9gL8tQ1QZqMDKu8vnreNFXrK L0TxqDdFMOu3+UMx57NXTaSbv5Clvei8WJXJ5xyfEx844N3oVjYjDxynbmsgib2YfOsr TrxNqA81ox/dsaatKrhTS37mMmPmH4N5ZZL8ttvop90kU9mCQjSkmWtlmWs5pL6aqc1/ X5MhUvUFpTsl4rcoostaVTFc1mqDsD1gq6S5UpJ4I7nYkwNq7L5cAnjgiixij0yuD3Wf kEcX4Cg+L0CGe0TzGI+C7ARNWzz/jnV3XJVFdXU4S4MRYVNsqiODaL/lGS1Wa6XNofzb Wmgw== X-Gm-Message-State: APjAAAWwCpa3+EFZa+QRHD7wpfyTNhw7HpSM6IXb5hEQBLZFpRJ0KkER Bw+Fw+m0bHrT+7pley+ScT4Ytv74aVE= X-Received: by 2002:a1c:4606:: with SMTP id t6mr4297950wma.73.1572519324772; Thu, 31 Oct 2019 03:55:24 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:24 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:14 +0000 Message-Id: <20191031105518.7716-3-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 3/7] qemu-helper-native: pass compiler flags X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Pass all of the compiler and linker flags so the build is correctly configured. Signed-off-by: Ross Burton --- meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb b/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb index d9d9da0fade..372eebd8864 100644 --- a/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb +++ b/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb @@ -12,7 +12,7 @@ S = "${WORKDIR}" inherit native do_compile() { - ${CC} tunctl.c -o tunctl + ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl } do_install() { From patchwork Thu Oct 31 10:55:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178159 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2649885ill; Thu, 31 Oct 2019 03:55:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDyPbhPz3z1kqQDBVeIxjhZ0U9DYH6QgAdWkuGIabxHtiZLMFQ+T8mF348X7+OfsLS+y9y X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr5730605plm.149.1572519344096; Thu, 31 Oct 2019 03:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519344; cv=none; d=google.com; s=arc-20160816; b=ZO7KiVjunO2h6y07PodI6TYxRaRdxpHvlRDpjr7WGFgkefBsoVNmLxG+s4a4LIf/y7 2R6FHniKKx5mE+L+R2Jm8Zqa6yu6Nz9lqoSQIyQYzM2XNTMSOqjDXuGCVMW50fn7p/Pz Y+el5cwtN8cA+S+Pz3dCOC8sJQGmQ5LHz0TsgqltlqgQG44OCZt6uw9vKcSrGeRNFAzf BKUo5E8eESBcmlZO+hif0YLNcm0HDOTOCvWQuno75lq5LXHEdqHJHxfR36XKDdaA617Y VzkCjxRMSByKfFWBUQM9gWpCcCqFmH8TTQ2QfOZbEFPc8rw7zg1sS/RG7BcdesEcvAH5 d7QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=Rn3yyXlX0WjNhio2zZStW3cOH9p4NJRmupFsj3slNYc=; b=cfgFz5yPsGCB25VuqJTGzRWGkxX3b0S8TEeKNry8H2zuHjcKMneVeQ902S0XY0UOnx 4RBY0edZdrIEbql5/wMybddI+4AufOasgiWzRi4t+dF+AL4Icuf20aaLmL/cjFKfKby1 Resyijtbs6syMlVOM+he4N9woy9tfAVWmLvDA1Cucn/WGzdfu2LM7TlHuf1GCF7BRUgo ENauK0eAciSFftISEy6Vo0EqlhbDk3L7rOcoFPuyFGKZYDycn5S/apvOEHi1avR6O/4C EWP4ZVqWj/sjmQzaWUxnapwlclmqMPn59cWQMFnWtCaS7d7DSSny3TGWB2DQWq4fBTey 9QJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Y+9XfQM0; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id w3si6710878pjr.29.2019.10.31.03.55.43; Thu, 31 Oct 2019 03:55:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Y+9XfQM0; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id CBAFF7F977; Thu, 31 Oct 2019 10:55:32 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mail.openembedded.org (Postfix) with ESMTP id 276747F8C1 for ; Thu, 31 Oct 2019 10:55:25 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id a15so5695075wrf.9 for ; Thu, 31 Oct 2019 03:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=8fIwJOX0fsnlGI01nmYMGTosD7a5R94DneBtFy6+O1Q=; b=Y+9XfQM0Tj5XXIjLZUcAW9+HhimTWHavM8nxEy01VKxhwWosQcdixqkfmGLTXUNDZ6 Own2SFIDM0O8GLZ6GXgwKvOHniIOFveYRXLMrtt8JjZZpd/Mo0BnIBpWzIc1vin8NKpc sU/OUSFhYk0v0IiC3NFPm9HIz4XFOgLhuz6HtNfZqJEuxWFlkzliD5F43lFoUDFU+YUU EEJnZ/tVFuTj+ILbE+lHSC7oi8PYF2Zrk2QJj6fJPXwSURaDhnWKs0h6NLIGapf00Ujn uPWlDX/nPkvwfXJng0V+6wUzv+DJw35qJ8UH71ZR3zSaJ3cX7b04VJXxrSfNI9e1oKK8 20UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8fIwJOX0fsnlGI01nmYMGTosD7a5R94DneBtFy6+O1Q=; b=dHMCU8LgW2z7v5ANEqc/vY/EkQAKaqre2Vwmlw0JcXUKVXZ7XBfo6ZFNTdhSaaUdJL qNOuv4b83wUfhgrUqzyBj3OoQpXHvKr9nZCaIcwRXt3V6JIaPXlbNVZe9LFnIGjVZ2EV gz5Lh8NtzHu6DoW10FWLvICC5+N1w65kvVuuMs9Bg6RDA5BYehf/k4JcsYJOqgpF+ZpK 9TWTbr47LrxHOfp/5qI3aXkdHwYylA39nVpl8ok9k5jAJvGw49GI1kSWS7qFaW+CX0Tw KzpphzQg5lul3j78U6ssSfNEl1p5e7P25trFsPlrmIDrEKmnAlN+EuK5c+PAqzA7r49b SRbA== X-Gm-Message-State: APjAAAXlrdIyS7nwopoa2kX0jhBm0S5WWFdONuQyhNTIPINj61fcMsBu o380s231H4jfMafAd3+I/fw2gdmTW5w= X-Received: by 2002:adf:ee03:: with SMTP id y3mr4862276wrn.116.1572519325741; Thu, 31 Oct 2019 03:55:25 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:25 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:15 +0000 Message-Id: <20191031105518.7716-4-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 4/7] oeqa/selftest: add test for oe-run-native X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org A small test to verify that oe-run-native is correctly working. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/cases/oescripts.py | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index c169885cf32..80d8b2c4cca 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py @@ -121,3 +121,9 @@ class OEGitproxyTests(OESelftestTestCase): if dash is None: self.skipTest("No \"dash\" found on test system.") self.run_oegitproxy(custom_shell=dash) + +class OeRunNativeTest(OESelftestTestCase): + def test_oe_run_native(self): + bitbake("qemu-helper-native -c addto_recipe_sysroot") + result = runCmd("oe-run-native qemu-helper-native tunctl -h") + self.assertIn("Delete: tunctl -d device-name [-f tun-clone-device]", result.output) From patchwork Thu Oct 31 10:55:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178160 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2650028ill; Thu, 31 Oct 2019 03:55:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy09fyWBrU2gmrFUnLMoA5aDr7szX88KDMxTHuLGYEnPI1+d8/+aoSRoAkjG4EJEQX1XduO X-Received: by 2002:a62:1d8e:: with SMTP id d136mr5864260pfd.49.1572519351269; Thu, 31 Oct 2019 03:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519351; cv=none; d=google.com; s=arc-20160816; b=zFjFIGHr7ia0i7kr1lUapbkPJOcvVeA1VowLDqhcHTzBUV/8tDRKZoa7attXFOyWey FIGUqmrra++V3r3867zWXZepn2xZkYvwZFO4diBTaC+iYQK7isEuScxGyOAPf6OpAiaG dzKlJeXdcPrdNvfAqW3fSuBTpsooque2JRGEEEo1jTBTwuieW3aLcjt6wzC3aJP/rr0g +uRkA86yEhRPKB2RafEK2dSl0P7rrbeT8xQBUHpshH5GKp0vBwsLprBNYscPOs1zxDDq pvWbMTh6CBFSF7Fi1JYf6UKfs+B1tAOfC6K6VURxsauLEooZ+KHD5wCTV73QaribjLvH UcgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=SdmMfmAuqbgp/tKBc1rumDNAHePH6VccPP9f/SZ5BdU=; b=fIDGy83Ryv29Qg814z8/UGY4/5k1WhYNeL2F7jSPded5KvA0oMLMG0ORxXDKyoV66D N0L1RzAwNwygmrNlX65nG8Pjs0aOd5w4PsBT23dkD+BKedBBuX56Ut6p/wX1G+C492qW wKritlX9zVKBgCHIxH6EYZKw/DdtZUad7MCI++Q2nd/qUEp8LAyq2wJt87yU4TwMPYGY nfzFd2Yvo2EU0oQ0gn4gycdEdflDkwRlFkOgYt+KLTfoH4FkhYqcBtgptgA/kRM+MBnH NlOaYcA5crToE/LqnQP6gF5Qz/ySjA22B7PfxAx4iUPtgMTi6RFgO6Jgkt/qGxk1WKwg qhqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=PEiqKoB1; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h10si6694433pgj.389.2019.10.31.03.55.50; Thu, 31 Oct 2019 03:55:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=PEiqKoB1; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 64B1C7F9A3; Thu, 31 Oct 2019 10:55:34 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mail.openembedded.org (Postfix) with ESMTP id 0A47A7F98A for ; Thu, 31 Oct 2019 10:55:25 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id a11so5702377wra.6 for ; Thu, 31 Oct 2019 03:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=CHed2K/xvif/a9juZRNkCCnFxAJfAH/ImacyLYmW9zU=; b=PEiqKoB1izj4G34qMoEyzZUyj8I/xr6cxja1fsi/Xd2IwkT3hRh178FlJF+oEkANPs SQxSnz9i+G4ROYW0fCvZh/WnyDuqH2k/ChP1WaETdEk5N9PJjipgCE7W35SHRrHwfEHo 38pXkfQ/tfLUJppqhU1hFBMN8+phh3cAVxs0ajLd76qFp+fkYFqLkQtJYoJVixW7jEHA khkNYzKNFg9Yj8JrZyefsHDxI+QVQLTkJZs2ILruAqBCtMw9fWUbnESN3/QtZcF76NyQ 71Fcx2ROOxUGzZ0AWexQJAA7TG3/ZghulK/mbZ0wPvr+ygMeyvutUL5OijGZVla6Lm+I b7FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CHed2K/xvif/a9juZRNkCCnFxAJfAH/ImacyLYmW9zU=; b=PzvcS6AfoKw3abwAi0cySB53v0TvIk9nZ2ruiif30OE/WLUVV2d2RSj0QL9ilBlTRA woRVTzGjE3f5YKkahvucBJfk250CJd4j1Pu2Efj4oV6m5MqKJbisi+XkSKFK5aZqf2Dm 8fY2hTqtwXqStnCY06spYFjii/tW5fSTxd2AKIHrStaBnHO6Hi91D2aWka9+UJ+Y2uPb mY2ImhNqstmdTVPafiO9du5cwCNQhq5wT6auP6kjIX831owadxh9ZL2m7DI2+FwehAKy lppo6mHaMm3Px28KxZGOu/0PX/HCAqoIEE4ENu+zu30wzoecTrwY861idPNsM6tGH048 BsGQ== X-Gm-Message-State: APjAAAWODjVCjY7dwOLFVdCgbXpd9CqpQF8CcPytYIKPUqLe0luPJNYF s2YY4UaQ9yS2CG9hxZfDnpRPDXd4Sr0= X-Received: by 2002:a5d:6747:: with SMTP id l7mr4783816wrw.328.1572519326490; Thu, 31 Oct 2019 03:55:26 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:26 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:16 +0000 Message-Id: <20191031105518.7716-5-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 5/7] squashfs-tools: remove redundant source checksums X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org oe-core e37a1ecc stopped downloading a LZMA tarball, but the checksums were not removed at the same time. Signed-off-by: Ross Burton --- meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb | 2 -- 1 file changed, 2 deletions(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb index 53d37872710..0e1be6bc1ff 100644 --- a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb +++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb @@ -9,8 +9,6 @@ PV = "4.4" SRCREV = "52eb4c279cd283ed9802dd1ceb686560b22ffb67" SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \ " -SRC_URI[lzma.md5sum] = "29d5ffd03a5a3e51aef6a74e9eafb759" -SRC_URI[lzma.sha256sum] = "c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e0880aa0fa1e" S = "${WORKDIR}/git/squashfs-tools" From patchwork Thu Oct 31 10:55:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178161 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2650173ill; Thu, 31 Oct 2019 03:55:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiZ1MuH8gP905ehn4mpIFWoVatDU7U8Wpr91ijQZuTE0LGQKv6Om2y78edRUreFBjeGgwx X-Received: by 2002:a17:90a:280e:: with SMTP id e14mr6389508pjd.135.1572519358287; Thu, 31 Oct 2019 03:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519358; cv=none; d=google.com; s=arc-20160816; b=ystum06SLEk1a0AYRcAZKk2K0RlcYaoDwVgxcJUG0hqByKHuNtUefXc4hN59sUgPaO WO1nGXu9vi5Kw0WFkUifFCgluc2z8ltmEyY0Cib2yn08zAUso6yK34UFxnxIUkT67CD/ g0Snk46c7HIGiDq1ZANJnbk16Ty11z+TWfp8SwDsEwfl7SyeGzP9Xxe96XKSNx0H2KxG DEIEErKwcnhUiCG2OAgBtC6hyqZ4ayjb+a9hzpKi7XZpfCFALQIv5ezD8B77QZmykkib i1kzsqdda5w0Got1Kho4neVl7FIcOhGESWW8pRJVG2hdYcodwvRBwuu8plfMepBK/euI gDhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=8oaR7yp6f9uGikva8UW1Zh9ci72t6cqaMzSb2hv7QRQ=; b=CY6UOXdQEvurUpqC7Vlpk5wiw8KkffPw/0FchMKRHImOxukoR8BxxjvIAlUpw6hyRI YJOfZt/S5/HcyhE/FVqcv3kAWpTz3cNM4RmZOl2h8/0mcxMlvsfjQp5gy3J7h3pxJ3PQ QDlDOQ34Coo1+Y3306X5Hiz5SgRdSj3lALNhTcfBh44Fgf+z0yVrAWFJvCoUCSGDt+nR T1LGgY3KYKVAY9yinP162bas+WdE6Jhmd6l32vKk02g7czfe4gH+yrRB6TykwBQC5RUu MEW98YR6JmgsnZZjNKUPKijQwKSBJexKGssQK74UC/gsEpcOybXOGMlwZOM3avh4oj0w q8aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=IRlMKhRJ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id v2si6710579pgl.21.2019.10.31.03.55.57; Thu, 31 Oct 2019 03:55:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=IRlMKhRJ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 915387F9B3; Thu, 31 Oct 2019 10:55:35 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mail.openembedded.org (Postfix) with ESMTP id 149377F990 for ; Thu, 31 Oct 2019 10:55:26 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id w9so5388068wmm.5 for ; Thu, 31 Oct 2019 03:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=1DTrSVj5HgaUQWs4Kn10QaGiPPH7WpZTUo8kHiiHym8=; b=IRlMKhRJ+6nTqdZ68nm1jel8gx1kOyZQZ5NgO2iFPe4Y7C3t5aF9bZYjZ1WoU8GzSk Y+IWaZktZprYzpnlvenArxmhSVmrJ9QDwHarhRDB6t7xZjwxUNFtxVQL05o1hLwrFWAY IPwqfSKw081lQoIYhiIlpyXfKfMLv6zdM9Z8lyY/RbK745u42yU0Rj2ijw7WmOaYjCzi A+5+bS5tiVnSbb1e13WqanzxAhbnIHJyvgXdj7bpAyi5/I6Jsk3oXqqBvQjnfwacHu6d R4voWIifHqxo16ofuQ2kvFS3u8XESmnKFzpwR899NEhnX0XLZCzR3fo76sIeJPmRvKbC Cz8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1DTrSVj5HgaUQWs4Kn10QaGiPPH7WpZTUo8kHiiHym8=; b=jcRlBQi6JbFFw88SDqIBkXrvfEmJ9PJtMmJhMYBmxR/TUt7Lkub+R+fTheHUrrR2If v2iJ5BNtKaw5LfvglvjKsIM/cfjfdMdgo3W5synqQKSY9mfYrORgZivqpD9576gKQmQf M8gPX53Lj+mOqJYbD/Ujr1BPpuYIaNXfQT6q0Ul51i2wA+99TCeN8SyFPTcP0TSxiUzC gSwBvaCr3XVdYGgLexIfsueEdkrE1y+3gnzIV+dWtg0izfBX+3XSxSYSLcB6ag4pSJ+6 YQJ6SxfT5u1W0yx2226YXmziS8NDsMEkkqDAxdWjp7ONVF35vIO9REFZ8iHttk1RSLoe 3CoA== X-Gm-Message-State: APjAAAU0rRhbXaQuqL3lG3YwM3rnnHQmbgalZYHrL1aEYSn2kV7Q8+Wm cMGC+VverM+80C3Q8VCpmJXK16+ANnA= X-Received: by 2002:a05:600c:295:: with SMTP id 21mr4336760wmk.43.1572519327264; Thu, 31 Oct 2019 03:55:27 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:26 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:17 +0000 Message-Id: <20191031105518.7716-6-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 6/7] squashfs-tools: clean up compile/install tasks X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org The makefile can do the right thing now. Signed-off-by: Ross Burton --- .../recipes-devtools/squashfs-tools/squashfs-tools_git.bb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb index 0e1be6bc1ff..4fd33f80482 100644 --- a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb +++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb @@ -28,13 +28,11 @@ PACKAGECONFIG[zstd] = "ZSTD_SUPPORT=1,ZSTD_SUPPORT=0,zstd" PACKAGECONFIG[reproducible] = "REPRODUCIBLE_DEFAULT=1,REPRODUCIBLE_DEFAULT=0," do_compile() { - oe_runmake mksquashfs unsquashfs + oe_runmake all } -do_install () { - install -d ${D}${sbindir} - install -m 0755 mksquashfs ${D}${sbindir}/ - install -m 0755 unsquashfs ${D}${sbindir}/ +do_install() { + oe_runmake install INSTALL_DIR=${D}${sbindir} } ARM_INSTRUCTION_SET_armv4 = "arm" From patchwork Thu Oct 31 10:55:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178162 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2650300ill; Thu, 31 Oct 2019 03:56:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8mOH2YIcdkI1Upmxp4ZDAEEdP5S1xih28s6GLIT0E9jmvWcxgG1qRFg/s5ja3xNx0wfId X-Received: by 2002:a17:90a:a882:: with SMTP id h2mr6479790pjq.1.1572519365788; Thu, 31 Oct 2019 03:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519365; cv=none; d=google.com; s=arc-20160816; b=CkTlE0F/frGO9VgrwcS8fKU+5eO/9BDUxJV8knPnHQ7llC1ZjkFtTMiCzzJ4Q2h36z M9vQGR1elqTBPBtT6weQGRGQgFz2d6gB6L+RecQcnC6QXU+AFTbr/PXTeKzO1I5GBpzL 9X5Dz27DLGycuaCz4vpWHJzxWCp0YQNMxXyM4hWYfEnIPcxgBpvJu7ltDLKDoajkmLKL cmCasz/HXr0x7THdvO9laI8FEGHV+dy4RiDO9wjpwOT2PNnWnsjFTE3YeQ7GBy6GSO3G pWz6FTROBZN4b6o1UjQ6XTnwIa3Tax8nSy0/V9Duok+esuQCJFqCV/yR5nFGiG7S0TUX YnhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=cL+pU8s3wUv/AOrIcXP+vcPtFAp3mNgjxYB0/jvCggU=; b=b4Qv9lFsrVZ+3psAALfJbO/t279MpXQpfJP9Ee236KmN5wowvS4x3FlfMzMrehg0Ay comUl65XM75OGJfSKrLqnHYB0yTv4orDch+tNh8057+LWmKoGZdJ6euya0Bk4YOuY57U QQbXPGe/0tXjzQ8AB/yo8I+pZ/jj5TqMD6RTo8YyZUYKBQAcOMrbkJad/rp9HyaPGlTm O4I2vgrnFNlmmAg9Dl1hHToENiaAW6M1JVkOlLgmbRUFZ+8X0hub8oN3nBM53A4dH22M QRLyQk/fe9xn+5C48F5oFe6uDOHbMa5ZcK8k3LSNjZQUb1R+HAT1lC0pKHaVuvSJD/B6 WR6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=0OguhsHp; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t21si7269606pfh.172.2019.10.31.03.56.05; Thu, 31 Oct 2019 03:56:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=0OguhsHp; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B81307F9B7; Thu, 31 Oct 2019 10:55:36 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mail.openembedded.org (Postfix) with ESMTP id 194FC7F998 for ; Thu, 31 Oct 2019 10:55:27 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id n1so5698634wra.10 for ; Thu, 31 Oct 2019 03:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=FbpZt+fDiBlObbEAE4xzXW7EXh0fMzrIhQYIu7wjOjs=; b=0OguhsHpNJ3xy02xE6QpjpuNtBR5qlB5XXfhEQQLo4kqO152MBGC6ezyU4GoFxT9qX 1z/KQCLU4IiYYszOJDzQCCb7V8ZPCEWOVGv+rSdYDxsvuhMUcUqDFtY18HH3Ww1Vb+ki mcW64zrXFhoy1LvxjOoXEFKk25wQoGbd3M75zlYZIMzsygiKOKg69I74icr/5/m/jxDT P6vCnSxizJJ9HQToEWeVSixkuaZyI5yFxeAJ8Yst6nc7msrp7NxzYdquCx0DTrQPpjBR 1G9HsFoHZsjtQi/xTLLCDsZ3vWm58lol8Mb5JTomFgWmiZu4p1RZ1/uZWM/z6rdCxvJY gkYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FbpZt+fDiBlObbEAE4xzXW7EXh0fMzrIhQYIu7wjOjs=; b=lR3vhy+rYHtbpLRanklvSoh+PcwrGHXaFa2tePfZlBXZ5C5u2k5I26sqSi25tY3vmR VqhsBC26VBCnjol74X3ORbO3HC6QU9km2MxVXLKL0spEljRHAkOIcWT53KpqOb7ERM1t dnhR+xpX/007CCxQkZBAg8XLU2F6Vww9XnPASosKsv8nSvVgOyC1fxm3NVhI74a2fy85 Vvlcp90Us/HgTWvhIagP/DAb8vF502ASYjMxoyur24mmyTClqCpw79juGNhHwSEsoKUf IASFuWWfi+8FXghRF14DLkKU0X4B/o1LrZWnFCA/eTarxsDCBOeptEjBstI7yHISl0Yu Mwjg== X-Gm-Message-State: APjAAAV7PXMipdUEzKnI8AowUuTpaKv2sfvPV8jL8KSd+UhrDTQiuUKT vjdhxXAGQT1Wr1HujZx9fvgGrq3okNg= X-Received: by 2002:a5d:6104:: with SMTP id v4mr4718764wrt.36.1572519328280; Thu, 31 Oct 2019 03:55:28 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l4sm2836496wml.33.2019.10.31.03.55.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 03:55:27 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 31 Oct 2019 10:55:18 +0000 Message-Id: <20191031105518.7716-7-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031105518.7716-1-ross.burton@intel.com> References: <20191031105518.7716-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 7/7] wpa-supplicant: fix CVE-2019-16275 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- ...re-management-frame-from-unexpected-.patch | 82 +++++++++++++++++++ .../wpa-supplicant/wpa-supplicant_2.9.bb | 1 + 2 files changed, 83 insertions(+) create mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-AP-Silently-ignore-management-frame-from-unexpected-.patch -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-AP-Silently-ignore-management-frame-from-unexpected-.patch b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-AP-Silently-ignore-management-frame-from-unexpected-.patch new file mode 100644 index 00000000000..7b0713cf6d7 --- /dev/null +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-AP-Silently-ignore-management-frame-from-unexpected-.patch @@ -0,0 +1,82 @@ +hostapd before 2.10 and wpa_supplicant before 2.10 allow an incorrect indication +of disconnection in certain situations because source address validation is +mishandled. This is a denial of service that should have been prevented by PMF +(aka management frame protection). The attacker must send a crafted 802.11 frame +from a location that is within the 802.11 communications range. + +CVE: CVE-2019-16275 +Upstream-Status: Backport +Signed-off-by: Ross Burton + +From 8c07fa9eda13e835f3f968b2e1c9a8be3a851ff9 Mon Sep 17 00:00:00 2001 +From: Jouni Malinen +Date: Thu, 29 Aug 2019 11:52:04 +0300 +Subject: [PATCH] AP: Silently ignore management frame from unexpected source + address + +Do not process any received Management frames with unexpected/invalid SA +so that we do not add any state for unexpected STA addresses or end up +sending out frames to unexpected destination. This prevents unexpected +sequences where an unprotected frame might end up causing the AP to send +out a response to another device and that other device processing the +unexpected response. + +In particular, this prevents some potential denial of service cases +where the unexpected response frame from the AP might result in a +connected station dropping its association. + +Signed-off-by: Jouni Malinen +--- + src/ap/drv_callbacks.c | 13 +++++++++++++ + src/ap/ieee802_11.c | 12 ++++++++++++ + 2 files changed, 25 insertions(+) + +diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c +index 31587685fe3b..34ca379edc3d 100644 +--- a/src/ap/drv_callbacks.c ++++ b/src/ap/drv_callbacks.c +@@ -131,6 +131,19 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, + "hostapd_notif_assoc: Skip event with no address"); + return -1; + } ++ ++ if (is_multicast_ether_addr(addr) || ++ is_zero_ether_addr(addr) || ++ os_memcmp(addr, hapd->own_addr, ETH_ALEN) == 0) { ++ /* Do not process any frames with unexpected/invalid SA so that ++ * we do not add any state for unexpected STA addresses or end ++ * up sending out frames to unexpected destination. */ ++ wpa_printf(MSG_DEBUG, "%s: Invalid SA=" MACSTR ++ " in received indication - ignore this indication silently", ++ __func__, MAC2STR(addr)); ++ return 0; ++ } ++ + random_add_randomness(addr, ETH_ALEN); + + hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, +diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c +index c85a28db44b7..e7065372e158 100644 +--- a/src/ap/ieee802_11.c ++++ b/src/ap/ieee802_11.c +@@ -4626,6 +4626,18 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len, + fc = le_to_host16(mgmt->frame_control); + stype = WLAN_FC_GET_STYPE(fc); + ++ if (is_multicast_ether_addr(mgmt->sa) || ++ is_zero_ether_addr(mgmt->sa) || ++ os_memcmp(mgmt->sa, hapd->own_addr, ETH_ALEN) == 0) { ++ /* Do not process any frames with unexpected/invalid SA so that ++ * we do not add any state for unexpected STA addresses or end ++ * up sending out frames to unexpected destination. */ ++ wpa_printf(MSG_DEBUG, "MGMT: Invalid SA=" MACSTR ++ " in received frame - ignore this frame silently", ++ MAC2STR(mgmt->sa)); ++ return 0; ++ } ++ + if (stype == WLAN_FC_STYPE_BEACON) { + handle_beacon(hapd, mgmt, len, fi); + return 1; +-- +2.20.1 diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb index ad9e6ea4be1..3e92427bb0b 100644 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb @@ -25,6 +25,7 @@ SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz \ file://wpa_supplicant.conf-sane \ file://99_wpa_supplicant \ file://0001-replace-systemd-install-Alias-with-WantedBy.patch \ + file://0001-AP-Silently-ignore-management-frame-from-unexpected-.patch \ " SRC_URI[md5sum] = "2d2958c782576dc9901092fbfecb4190" SRC_URI[sha256sum] = "fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17"