From patchwork Tue Jun 7 07:25:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1859 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 07 Jun 2022 17:25:57 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f56.google.com (mail-ej1-f56.google.com [209.85.218.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 257FPuhx032035 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 7 Jun 2022 17:25:57 +0200 Received: by mail-ej1-f56.google.com with SMTP id q5-20020a17090676c500b00704ffb95131sf7998756ejn.8 for ; Tue, 07 Jun 2022 08:25:57 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1654615551; cv=pass; d=google.com; s=arc-20160816; b=wtRnue5cqVUHe28OfFICG4srLBVwd0OnPjE1bXuyxHPeQ7VWQIgEc+dnWNhOcDBUs4 67cq4l57Atrj/beH+GMDd+4beEoUjcnT6+6mMVCReuSwDUe3NijtWv4MXmBDdfuXzadq RWPFG2j4TObeOK5NIset/TcCUIJF6Y7qdM9AQ7f4vFRbmVTP5ChieifXl2Q+3pzVq1+V fHor+O+ca4j+7HaowHkzY+7eLadHQ7edZOdJCFJ5ND4KtN3xt6wPi7Jh4FwJu5HBnU1g 899qonMXW5jiYJ5kQVeAUZtIh7lUH9tEl6iqVTWgXPqQHFo/JGq4b8Bq3z4YjTiBXTQ8 UY4Q== ARC-Message-Signature: i=3; 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=MLCJeDzeNJS2O9laiNSlXQL42w1FqUEUEzdwuqS0GDU=; b=TFNhJM29xvZoeQGHZyD9h2oV7K81t2Rvc516s2P39hraEtCn04CiMslrjCbE8MC7z5 SCaj2inTvLUDu8RsDuuqPcRr+MppUzRddmqXLh+Ll0SE+XZWecaQRavZPSpksWEX3UDt GFhjsacNumc0XvTsiPTu0qaEMQSpBd1b45JmTN/Y4lEAF45+peRluCMyfPN4TC2Fxc2a YKGC55yBn7NZDjXTRvCkFEz8sq6qK16mdizUG6S4JnfsjaFRs4EDdCil/N7lS8KFqJpE PVR64hHvVva3ohA5EkKPta9hrbkL9RQWhbZqce66UFweegsIroAPidy/Hxa6UsdWuq1O ac2A== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=pygENnHj; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 2a01:111:f400:7e1a::601 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=MLCJeDzeNJS2O9laiNSlXQL42w1FqUEUEzdwuqS0GDU=; b=lX8cmdaD+hOoIPCT0r4R6LYsK2v1FMr/HhpG61LOjwBR3+UPfB4x3jqfCougV2LXT2 aUQC22F8miw5aC+/4A2M+eQlzAEkIHqvYtzzWJ/HrIR5WuO5eNVwxre42RVhcPFn8kwb qdAalBFGT5zYSf5tMI4+yqSGYbIhMbywC1gOuvc8oBb0bCUXnHRDUpv+3UdZVgUYyYZA o7S0UJxxvlpLU+GT6/O8vWbhe0kou43K2FNMwzL2OSYf06FdBBjKoiCRyecu8UKNtE7d p8Dl4RQ8XYVsivrG9yvBPuwgkKvT+/tgHg1QeZlOPDeF6JRPLh0q6GwZkmzvAs5Drhjy 57Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=MLCJeDzeNJS2O9laiNSlXQL42w1FqUEUEzdwuqS0GDU=; b=y0792uucGJgMAUm6FtCBSka3oWqDW4Zg6GcwND5A9ncpRfBLirowppFuL7yh4M7C85 Pacf7TXqNqyk6n9xIzoCF3DxlWcCBY5qnsb6Zhx/GMvPgW11S11IXjqJrRUuM1qLv7M6 ZfSgP1rfxEoltDEUpXzoNYKIV42n++mPt22PJwUCOjgjyQsFo+EviSpPnXVeUh2jd/NM 0FfxYPuCWe1ZHC+yPLnLqWF7XUXw9T7VmR5YBeS+5FdaDrHKeuwWMyMg7b9o+5yQPaqj KfLzteh8gIegJ9+WtD9nyVrDth54jqQO3+jJ3HM7a07WxpekDsTEsF9Bak5qfqdRW1XP nBQA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM5336De0uK5SnC2xFLBuwH5d6Ix64q9OhLIaxetxWrGdrriZXtxPe nMKRMRJKp3Qnb/U4ggFwPIk= X-Google-Smtp-Source: ABdhPJwWFtnfs2deeG3cD6CgpFMST4R7MUErvsxUDFDeSqBqmvNM0NhAi/03sKY4UMVdSaiEb9d0gw== X-Received: by 2002:a17:907:7f9f:b0:711:c9d7:c44e with SMTP id qk31-20020a1709077f9f00b00711c9d7c44emr12234397ejc.142.1654615551179; Tue, 07 Jun 2022 08:25:51 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:907:97c4:b0:711:d2c2:9fa4 with SMTP id js4-20020a17090797c400b00711d2c29fa4ls1171102ejc.9.gmail; Tue, 07 Jun 2022 08:25:50 -0700 (PDT) X-Received: by 2002:a17:907:7747:b0:6f3:ead4:abcb with SMTP id kx7-20020a170907774700b006f3ead4abcbmr26801569ejc.296.1654615550214; Tue, 07 Jun 2022 08:25:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654615550; cv=pass; d=google.com; s=arc-20160816; b=iRlY9Yz6KjS/vjyqeGoxuLLbC5axCcHvq5q8jcbBQiNIwFhmqRGRT4kWbBxkZY/gTA TPqkz8PtWT67g5YWnO0ffO5PVIZ5uiISfx6Qb/fdr77ze/aVKgKcqgffsYhq+DosWo0r 5basXr1KMTs7z3zf7aWbWV0D8eKQ36T5qvdGNp1/RwWdye64rqYW0wvALITrSbg20K4k 7kV26ru6JVeLja40qBbjzwRlWZkopLbPoDvpOUkXnubxq4cNw8zJtwCYT5KkBStzi56i j084Sy9jQ4aUm6xho6SkhWOhkQf9UYnzULqzE1zGGz3opLpeQKVGsXeh2u0qtFvURHNi Z8Zg== ARC-Message-Signature: i=2; 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:dkim-signature; bh=VDUjzcLkIbXd6Hau780nYX/Q15jeIHXWrfqlQrasTqs=; b=mogEzJPs9a0ThLIpS17NrKrO2tSmlZUngjHQITqXHyzKNLZbs/07O3396Uu4RTlI+c 60gjcuQ1XYSZH/H4gvBCAH9xYogTRuLX/uckDY30CAyML8T+a4vKx9wxKAAI1nI8nQUq /4lBgAsIiINguE8T+dtGl4nNjO4a/aMlx1256yPY9TkM9BBn2LW/WQzQWm1cQ/jIxWXt g9b0iellIeTnGi409nymaVVP2yS3wNCmzcBFiZ4KPrEuA3ihV9O9eA1LPsXV0QVQAg46 KSWmOfEwWSP7r4tW0nKft53OBvz48StEy20rHVo1O7TdMcWXTqUO2wy1AjLdHJR14Bh4 SVRw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=pygENnHj; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 2a01:111:f400:7e1a::601 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20601.outbound.protection.outlook.com. [2a01:111:f400:7e1a::601]) by gmr-mx.google.com with ESMTPS id e41-20020a056402332900b0042b8a96e45asi729400eda.1.2022.06.07.08.25.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2022 08:25:50 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 2a01:111:f400:7e1a::601 as permitted sender) client-ip=2a01:111:f400:7e1a::601; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GLjfvKRUNML2Xx8LZSue7E1MkUR12fqfiALg04YFZ1J4GWXv7+nK7kSRDsqKvhiXERnwiBl7EtoM7Zkpxd31lLOMrTzVwmnKiQuHgLKaV814eztdy84iunAIZ27gW4bhKMy47fmBi0wtU9oqoeikPJpyWCI10YyzeHGrZF6TsdbVdaTUhp1VdNrusvX01cTUSyUmg0Gm0L8lkpQNZNmVQ17TvEee0cxtGLh9ORnd2dt+fPUn8Pyh4dgkeHUHklcs3rEQZ7/L7Pi0SmUxktiGvVMlhNqISC6Cal+SRKErgAHchfFlSGQ8T5F0f07IA0JaeM929oJ5FvMtwfdnhAzo1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VDUjzcLkIbXd6Hau780nYX/Q15jeIHXWrfqlQrasTqs=; b=fHFMSrZFrDu5WLXKRcsYLImNuzIgTwMp096wyjlbkSrgSfyEhlkWTI69DpeAOr4k4xlEVuQ2/RAjAvgrz600EqgeG9NDj67Jd+wyd0O89FpgSmaTEnSTLztOAJOnDWoTNnzVni2bpPf6EywRW1TVDH8+tRNTFPYrr3O/nJbqdjH/Y3NuDEifrjXGIjf77jByK+IJp8CnFZj+A1qlPLChogiPkrt/ZtzMcrJdvKSOWGnZ7tRBXQUEnDjs7aIFpJOSoajQsrf5LEDrB9hH6AO6jXhNkJFyimr77wR6V3A3J8YiR9YHE60hfX/dMCoYPZl/N8MTdnEJzvwVVi8NSV7k4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.71) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from AS9PR06CA0303.eurprd06.prod.outlook.com (2603:10a6:20b:45b::10) by DB9PR10MB5259.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:33b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.19; Tue, 7 Jun 2022 15:25:49 +0000 Received: from VE1EUR01FT006.eop-EUR01.prod.protection.outlook.com (2603:10a6:20b:45b:cafe::fe) by AS9PR06CA0303.outlook.office365.com (2603:10a6:20b:45b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12 via Frontend Transport; Tue, 7 Jun 2022 15:25:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.71) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.71 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.71; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.71) by VE1EUR01FT006.mail.protection.outlook.com (10.152.2.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13 via Frontend Transport; Tue, 7 Jun 2022 15:25:49 +0000 Received: from DEMCHDC89XA.ad011.siemens.net (139.25.226.103) by DEMCHDC9SKA.ad011.siemens.net (194.138.21.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 7 Jun 2022 17:25:48 +0200 Received: from random.ppmd.siemens.net (139.25.68.25) by DEMCHDC89XA.ad011.siemens.net (139.25.226.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.24; Tue, 7 Jun 2022 17:25:48 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt Subject: [FYI 1/2] bitbake: no user namespace in disable_network Date: Tue, 7 Jun 2022 17:25:30 +0200 Message-ID: <20220607152531.3498370-2-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220607152531.3498370-1-adriaan.schmidt@siemens.com> References: <20220607152531.3498370-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC89XA.ad011.siemens.net (139.25.226.103) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-AS-Result: No-10--9.558900-8.000000 X-TMASE-MatchedRID: adP96OFoHOT6VcWtLcBnKZscC5DV1Se5YlldA0POS1J/OBWacv+iVQoX SOLC5a44n0rL9iE2gT9PH2OEh/+ebADPEldym8HPElOOOz3JPpijxYyRBa/qJShNCXvA0fw+DV8 DVAd6AO/dB/CxWTRRu92KvEVWmYr1xq7kpcu3dfuqzmWHXpnfuaHG6OsDoPXwWRp+ERoKIXOrNm Mmu8GPTQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--9.558900-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-SNTS-SMTP: B24385EBB13374193CE719C69090EF8805FEBF60FCF61ED736CECFC6639343402000:8 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 608fde8b-1b7f-4f0d-e49a-08da489a002e X-MS-TrafficTypeDiagnostic: DB9PR10MB5259:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qCMKsh7nPQcGNXZweeGT/q/48pLbJkXUW5ID2ANNvy0ZHbx4ChzL1xim34T+HrF73gmZEh27XjrUKAHMKvTRTXRp1s4VCHPx+5i6TSC3oNz/w41dkFYBbLtxKBitbjjBi/GKLbLmvHuM1O0tPG5CJciNcD8DWmNrVeP0nKBunuSBjpw7WxjjNQ+mgzYDqDIlhHBg2BN0nLflPu5qa9rVCIyMdLF9HNWjm6KJcY8d0tCiBetI8nD86s8a2uih4ocy+kvZV2TQZFN7ceBxOKS/seARvnhYQaJ8SHlKHnmmanKQMlA4E3t8Vm+r5ALdBBTns5t7l9HTkB3WEvzAPlc3TKVDWQtahdKRGQRY24pzgTwbFi1a+X/E4qgGHTRiSD/j0T8p8DSHl5joZvsqqvQ44Oth6WZAjfFrE/bPbStE9VPjwrOfgwxyA7DrordSSLfFySLL6oQD7S5SwVZF3F3UuEm5towFdpJdyb7SQ4+SYR6eAuhL2swOQ4RdRgX1+auMiDLLSt/VTsUfA4zaMOVmNfBWE1KctsrKn1WEOBUNjy8FZcN0taC9wFyVRGRTKeX2jYEEUu49DIpu5gYgJqlPqf6KvRmq2vrF8BGEXIRg4nkz++12ou+JIFZDj72YLEvceIcDbZejvaEP+uVP9q9dj3ic7IyzSLq5y43Mfj76GzoxKQQA2J/Jdv7ZH1K67w3EY2zDUkYRca1CtBPNYx59aQ== X-Forefront-Antispam-Report: CIP:194.138.21.71; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(4744005)(1076003)(86362001)(82310400005)(40460700003)(508600001)(26005)(5660300002)(36860700001)(8936002)(83380400001)(4326008)(70586007)(6666004)(8676002)(70206006)(82960400001)(2906002)(6916009)(81166007)(36756003)(316002)(356005)(47076005)(336012)(16526019)(186003)(2616005)(107886003)(956004)(44832011)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2022 15:25:49.0958 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 608fde8b-1b7f-4f0d-e49a-08da489a002e X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.71]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT006.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB5259 X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=pygENnHj; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 2a01:111:f400:7e1a::601 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX Signed-off-by: Adriaan Schmidt --- bitbake/lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index d11da97..05adb41 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -1618,7 +1618,7 @@ def disable_network(uid=None, gid=None): if gid is None: gid = os.getgid() - ret = libc.unshare(CLONE_NEWNET | CLONE_NEWUSER) + ret = libc.unshare(CLONE_NEWNET) if ret != 0: logger.debug("System doesn't suport disabling network without admin privs") return