From patchwork Thu Jun 25 15:36:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "MOESSBAUER, Felix" X-Patchwork-Id: 384 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 25 Jun 2026 17:37:13 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f55.google.com (mail-wm1-f55.google.com [209.85.128.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 65PFbCYM004426 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 25 Jun 2026 17:37:12 +0200 Received: by mail-wm1-f55.google.com with SMTP id 5b1f17b1804b1-4924314568csf22331205e9.3 for ; Thu, 25 Jun 2026 08:37:12 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1782401827; cv=pass; d=google.com; s=arc-20260327; b=CWrkPy+TDXTAuAEmVBpOQUHssOE15FGGFcGSvTJoLiigO0KdpkMpjP6LdlZGvlji8q npqnJnvMSzv9V0YzQNO9d2Mm/HvQExut5F9IA93PTTKKyk+/QaarcTUbeggygrwbBu/9 C4SpzkGniNWAqYOmbjrBMkMWrAOisYnJiZKz9Efwz56Y0FrXUEInmLl1+n9SnalzdcBs z9lXfWMRE5Js71H4wjlx7up5qeL9MAf2C49iw4rUwrb3u//A3JMTE2f2tRaqLdVR4DAx 73/+XQ8dG0MScVAipXl03cFdzRrrv/VrLWwmq6WNh4nZf3AZ3nv6/QfLg7FY+gY9lBkY AnpA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:subject:cc:to:from:dkim-signature; bh=LRRAf7sc2O9Wjt4uJ+ZGcpJLdrDpP0qI+LNQZbSN5bY=; fh=Bwae7QPwiZi/PonUN2BhK6EGbcVTatLNf0+EUBF9RFg=; b=GHf4d0fM/WkNgOLTWOIFcOpXk+iMN1L1/TLrdqHdS6yq9W8MFVQDQQreGK19OtAoP/ nNRHh7pTW3WoUJs5cwa2xTc4ZDi8Fd8cXH5Ktq18jIvrOZctqO+ieq/7IDKqrGfz0PQC ZVo0D4k71cszJWlKtTkMDbG506mhIrA7eK2++6j9MmXsMPWooqcmedfNJydgTrHUV5Sn H5/gnBpqyfhju8UQxO2GjI4fSfGqSRi+99friVCqC5DQhGynqpl1jFYIE5BZmFqUD9Fj ZWbO4cx3Cwj86Jl61sT1z6/bfTQ0BPkRiDLN6c9ECX3SfL6r+I7ei1W5LHPJw9GQb64x e9Ww==; darn=isar-build.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=nSTIB41B; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1782401827; x=1783006627; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LRRAf7sc2O9Wjt4uJ+ZGcpJLdrDpP0qI+LNQZbSN5bY=; b=CpG0sggjBRLc9voFaFn/nfnx1dolledmKg3xysEY1ikcXvRhFdH8EOJCyVE7KUZje1 W6ANtHdZiHj+2049gEsemI/MLSvHbtpMkir97gSixBPPuZ4SgdsRNLD/ke3qL79w/Y86 vGYSBXCMlEZEizzETL5auOWvc9i+BiOgnxrFm3c+jl9ixhduHSslWxGp1eKLvnt6qx8T hL7Pile/3a7ZQlP9kyQHSqJl65GPP+SEM/i81UxD8eW+geOWei+TRqoRmm6tTQdmpcVO PmPLfbNrJpOXDZkjS9VLeiUEKePP6qlk9nsj38ZEkBpW/+ML1g5fgUDGj9F3duCpf1Ab v0bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782401827; x=1783006627; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LRRAf7sc2O9Wjt4uJ+ZGcpJLdrDpP0qI+LNQZbSN5bY=; b=Fv0h169OxDu5vT2ThP+fBO8Y0LlChuIBCvnWEgSvYgYiatYzrfX98SZUjxMi+4r//c UHLGcY4uEcnoa82hM8Zihu782WSsAIW5IDJQrF0KM/LJ0SDRYXvUI0jmmg4nJcl53EL/ /Z1wj4sti/DJcpcPvivmzrqdndjlhxAQyXm/52LKRUzR8ZGwxZRkQIQlekMWvIX9L3rJ bSXCJrX1cF9OG2aJRVvKwgNcOdcSIZ4IU9/G9Y27hhltYPr1F7pHFe2XrEuQgPoPfl6T 42ZsoyKa9EPK+0BIvjHOvvgpGze3eyiPN7yzOz1a4DqPbMIes+KbdSSqSlpVLY6xCZlo BPuQ== X-Forwarded-Encrypted: i=3; AFNElJ9eUUAgvmbNWWiNgic6eIy0vNZgvWbK8zk3TVBwi+jWvyquo7OaPU87HyDEYbZm2QVObdqFA9E=@isar-build.org X-Gm-Message-State: AOJu0YzVQTfX8O9Vu78gqKHZjs1f3NeSa1QU+sUUKmeixNPI3fDjNIXo qx4109paGfSxTDGf9I4tO/0TYacNDfLxdinQBYSfR2yBiXyLiDgb2AWA X-Received: by 2002:a7b:c311:0:b0:492:40e2:358d with SMTP id 5b1f17b1804b1-492668642a6mr27611535e9.16.1782401827314; Thu, 25 Jun 2026 08:37:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUe4N7/5mqFKu7LVB91Z4YhFOfUFu7owPJ4K4i/6Ba3i3w==" Received: by 2002:a05:600c:3b95:b0:492:4e18:9e11 with SMTP id 5b1f17b1804b1-4924e189ec3ls19449885e9.2.-pod-prod-05-eu; Thu, 25 Jun 2026 08:37:05 -0700 (PDT) X-Received: by 2002:a05:600c:a55:b0:492:59fe:4a15 with SMTP id 5b1f17b1804b1-4926687e800mr44587645e9.24.1782401825009; Thu, 25 Jun 2026 08:37:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1782401825; cv=pass; d=google.com; s=arc-20260327; b=q8Qmehr6sq8iUvRhowr4az0n/8Z+bYsNrhxtV0YAwqXlER7vgo/8/DcebYSjE01lt3 I411Nxul6Sn+0Xar2FIM2XLMdcDi2D3ayZ8yDJaODYwMo7zJaRVMwIDTanYhUx44dHFo SJ6KZcYN+gY57bih9pQrBk5ha016RtrfzyTl5WYN+CxwNFV91Tn9tuOnzkE2fJ69ANrQ ZBGnfYURqkIFHOOy6TffjfwvsLHCd6B9oKzGOR7BVyYN0/G34e7DkxtkX1IJEXH+PG4h y2wkHIfSqX7ma85RM6spXU4CzrG8NvBUnba2zQ05n+4S2HX07cF1z1HFkFd42vLQKJZg uEBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=mime-version:content-transfer-encoding:message-id:date:subject:cc :to:from:dkim-signature; bh=L+TNVUXNbYQAisNV4zBpddYs+kZoP8ZWY7IHEsA3hok=; fh=WkhL8kaJc+l2wQon1t06Ej3uvBGj9sVhNcE8PaS/XbI=; b=FfQpx4xnCB0UqFOK2Sk1phOyZfW4XcSvYQOJ1mRMe8s2rruiluY8gNnnvMd58k/Z5k h4Gq3AS3EHeUCxvYwFoh4+S+u6s8DSpZmcipQxOy3ocrpvsnk4vOJHImv5MiXgPJciv9 tzT/bWeKOVJl8JkfpXn5JKZk5nFYxa9jnSwrxYsvBv9pclPXa3QiDFjw95m1PzknCpWE gtGRLjT6knRgtnC/qMkWh4ODUsVaKAbGmkDyPqEiegAJ152qFsJVh03okb+DS2j9PacE HrMWGhc8lx5kgFQh3rs7fk5cob+Ru6bVZwtwEu/FzZqMAvxEtBF0xojeglpGcmRmTNJ2 0S6Q==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=nSTIB41B; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100001.outbound.protection.outlook.com. [2a01:111:f403:c201::1]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-49269025193si59135e9.1.2026.06.25.08.37.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2026 08:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) client-ip=2a01:111:f403:c201::1; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GtzHIMF6BEV1X/re0DrHKgjFnvU7hIe89Tr0VmDVO3whIwH1mKWGLqKesulZDXO7hg5EUQZeb6G251TXRcbn0nyP2BA2dGmUyY/ORE2RsjUPUr0pP1Ag2ZYZvPYEaqRTBMRxvEQzyhcchhUCDZhGf3mDAQCTz/092z36CAwKfB9KbG/RY5NEK1KeIpGskdK/aIFK14IaFABkQNryNmUEwCqOPJzjGM6TLOTfQP4eXPaQH9j3q98oaY1efZudHui2jyoNA7heB15cMPRyuDhUATti3baObyPiOzNDYsLwNcvY1DD1fvq0wr8OpRltTfGEuv9xslnuukd03rsZnfp6gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=L+TNVUXNbYQAisNV4zBpddYs+kZoP8ZWY7IHEsA3hok=; b=QTv8bgtVQ/PUuWIjw0MDCHNw+gke0FsRT8/ekTDuigNYfrUO+BKwKAUqelbTf5xAoEo1ZtKUWAl+HnGuTYe7KmQuclQgwBbGK+O3jjQW9qzedo+NgwaGCSO07rhqPgBf3noNzDEYmLxJnzqN4KW/E8BJSSJTBLCb9MPodRo9Wx6aIGx8agtXQKav4QDzD9PDX8EBMb94MRtR8Zvo9n2jtFIm8oH/tfEiKR0R83qAu2cRZsvS6JyfFGPCbct6+7ynOsBD1SK/1xjvMQpBR7qxDpRfBxMO/2bWM7EpmaX/P769uzsB5m4pnyxN0J3lNT2r7WO5BG74m6RQ4hTnYGhDXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:17e::10) by PAWPR10MB8116.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:383::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.14; Thu, 25 Jun 2026 15:37:02 +0000 Received: from AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM ([fe80::c54c:ccd8:ebbf:477c]) by AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM ([fe80::c54c:ccd8:ebbf:477c%5]) with mapi id 15.21.0139.018; Thu, 25 Jun 2026 15:37:02 +0000 X-Patchwork-Original-From: "'Felix Moessbauer' via isar-users" From: "MOESSBAUER, Felix" To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, quirin.gylstorff@siemens.com, Felix Moessbauer Subject: [PATCH v7 00/17] add support to build isar unprivileged Date: Thu, 25 Jun 2026 17:36:34 +0200 Message-ID: <20260625153651.762936-1-felix.moessbauer@siemens.com> X-Mailer: git-send-email 2.53.0 X-ClientProxiedBy: FR2P281CA0147.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:98::12) To AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:17e::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR10MB3956:EE_|PAWPR10MB8116:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b5fd506-cafd-4d0d-c110-08ded2cf9a85 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|10070799003|1800799024|376014|366016|56012099006|11063799006|18002099003|6133799003|55112099003; X-Microsoft-Antispam-Message-Info: QMhK18Srk9dir5lEIHsjXnY5NZkXKfzg9zaN27RjYzLZijVkgjojDDiL7eIHjNcpHmivB5n25mPAoR5xuowQVFjxVKRBhtyfFncaCNxJP2W6iKDrkJ+T4rv8nCFeuyI9idC9n2WOCfLaKNcIpyf9jurwnJvpiGH/lLYtagCmUadVgIvxB6UeJl+VzuptIjg5yPwk2VcMG8yd59t845gZUSm+H8/stILlQnNKvwwmWo6fYQX+Q9y9YPusQQQFj6ATsUBFjDD6z70VFd+RbKZ2RtXj/L2NC8j4/jv0vDVuHPZkuzInmpELCdg3QbSZOUxcsQFRkyWLboF6gjYEKtwIjUb+ccMSFGjeRQy+ZNmHZo8cV4WSWXGLvo+PcC3ozyUo0HEsEHRlZmSo0NgJCYOuWw6EahgSUYsP13r/wXF0n/bySTKbGsQY0WN05cXxYvpuQ+/k1LKqlg2adkyaYcT+mp4LHIXya5JWAKOTb2pYU0hHImO/Dyf3Rdb1wAKCcRoy6iUQQU5Y73KyuaJ/D9tOCSgJCHF5/DnUtPLbJBDJKUcnCwn4tGlzFyn9ZLh17hx9vAUQBAU8A3zp5CHhOVbQdHtXTsfxfeYPKxN1i22QwB7rBYusCo5Y1sWrtG+G3uXL9RaDR7Di6pUxw/RuCyj9n0K9zTuknBjGpmCRdeSbPdw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(10070799003)(1800799024)(376014)(366016)(56012099006)(11063799006)(18002099003)(6133799003)(55112099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: YNSxCRHQ1KeLjYFchiy8oOj28pSdnpPSFb/ciM4usg3rWzlBpl91+sbNan9Yy9z5U15RjgMgxTn+uWbuXm0aqsDxV/KGRZiFDyXrt2t4k3+k2k3IfIiqkiMCGB8Fa14/WQ7erF/lU4Z3JbWbEMMM440vKNfw7wYwO1JYSphd4UNMcjcb+V3XWA1g+Pys28RLlFnpeliGwxdDEd90bpEhIwE3UBVVkayOWBWjfEBhdumJYpfwAxIeFLTm+nvYnK6QkXHKzDGxlvm9OmV4PlF5W4JebvXP4EWr8wvQrUXpLVwXJq6P0u+hr+Ej+yMkA7UER/qzB3Wu0OyV2tNOHIZPX+NjDZAr3/BIkFAOGvkL6WGrFIutmLtX2S1045YdaZdz9gH20nyZp5TKlCQeVPiM8km+FHBsEY4SfMX3RBljQmT8YhTJ4kUklQdAGqtSMDDVWx0uPmjKkOPpXcuwl5Z0jQbs7w7TyoLY7sDx0csuNxDPHn6X1yZLoy7O8PRf8Qr2AQOamtDQi7EkTsxhg02mLGMl4kenT6nm+N0vW8q7AG4g09HgqKHaJONAIvcn8B6tHwBfu5nL27JkRuSpyHf4jE1UAxi+0nVFMMlghDTohldbqA9dhF/k4sPZg2IKcGRtTk1RKxOSCL1auw98m8nLq5fHbrME3BPGehH5TjwrhUG7pIOD5SM48n+quURub1DbGlyhcySUq9PDoRUA1G4vzc9txFhCGnd0Qk5HcJhI613M4PscsZj2r1ZF1gnIBLZMxsgZD7Jno0xr0MYzCFG8/UsZM0NBjOuk085uQnIDLnJNfW171rg8bL5IzGXCbl7gfyPWYcgx8TDlDDpWd/zwKORhYBndIT3e8a+sZQMXjfVQ2YYahzExZ7VyfSH/Vv9ghk6uu/2IGbFEt8iZPVVvwG4Nmaj++NH0KFn7RjczTnustf7c3koG1IzYiJEaPPQ3+POr5hQKn2xfLft3WPz4ncjnnLONOmFQyaIF2Yx1twkv+C4wksbhf/Zs+OAStaX+KqQ+hmykx2GbjYruxU32RjHoUTvJCk4bTV6lYWa05D7/gJEAzxh5tPLKvDG8NJ9G8F4Y5Oz9dMWhSCfnFRR3ydY7Zp9BVAFCL61N9ayqUcnp5I2ft3y22SeoGmARZesK47IdMy00KS4dt7sWo3GxnCZOf6rAVzf40aFcdrRJpm7dhtLR6kwNQ9r9OrtKl+px5XeN9gdp4YuyRYr1FECzefIqHGRjuXZMF7PYnO6pg8nq71PhHy6M0X3xwl8lF7IChMHdSd1SyuuaKtn7Qj/IzxfizcphSrJUexbziuUina8UIkN9kgtzeKmSxz8YWEp4gImg357nGk5zzeMgg4qaat7Hnp/qk3OkJ2Xr66TmjgDHPepSfKUmFUWBDf3apQn0lpDiXxoG8e8zwbvzd7pphriuwgNBM9Z5DIPaQtNQe0qMXP7ieTUCU5rOzlWhEyw4P7XJonvn1mJbAuPfvfHlP/L3Qpf+0qgE6bbn4dCg+0HkMXeZbi3az8HQPQ5YkKsBQkIs1QffEQfNtbvjh2jPHHDz6DP03w0hlrhjJC1nceZsmE7TcLwH4gMqpM6giHt1RUxeJe1Q8I9ieoTPcfXO9m626nUg5QxN78wREQGB6Mr8EuQe+gLAYsnOzI72PSjvlTEnoW0w7VV+l1wdbKlJa4JQszmqur03ocoo041xQZDFJFN33uo8WdUMoRHg41ktI6BWtxCZdzzeyaIHmZ3GK7p1NlWy/Kpj8w7W6M5lqtbmC7adnxj+LDKU79HTAjIpnMzuDwyh X-MS-Exchange-AntiSpam-MessageData-1: u2BaOID7HnDeJNK4mjKc+ilwaxeOsDFPZrQ= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b5fd506-cafd-4d0d-c110-08ded2cf9a85 X-MS-Exchange-CrossTenant-AuthSource: AM7PR10MB3956.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2026 15:37:02.7218 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: slswOZO7SGdtkpuAbWzG6zpb+vdkoEo4AWsBa5ztu17UZHKI2nHkHH3tDaALgN6iNjSE/q1I4BzyWUCw3M68UExomgq3rpmI84UIB34Uz2A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR10MB8116 X-Original-Sender: felix.moessbauer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=nSTIB41B; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 2a01:111:f403:c201::1 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Felix Moessbauer Reply-To: Felix Moessbauer 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=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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: =?utf-8?q?INBOX?= Dear isar-users, currently isar requires password-less sudo and an environment where mounting file systems is possible. This has proven problematic for security reasons, both when running in a privileged container or locally. To solve this, we implement fully rootless builds that rely on the unshare syscall which allows us to avoid sudo and instead operate in temporary kernel namespaces as a user that is just privileged within that namespace. This comes with some challenges regarding the handling of mounts (they are cleared when leaving the namespace), as well as cross namespace deployments (the outer user might not be able to access the inner data). For that, we rework the handling of mounts and artifact passing to make it compatible with both chroot modes (schroot and unshare). Note, that this series can be tested on a custom kas-container build provided in [1]. Hints how to migrate downstream layers are provided in the API changelog. Changes since PATCH v6: - rebased onto next - p10: revert rootfs_install_pkgs_download to bwrap-based implementation, restoring old build performances. The underlying issue was finally understood, so the pattern could stay also under rootless. Changes since PATCH v5: - rebased onto next - adjust to changes from "Rootfs install race fix for isar-apt packages": Manually add isar-apt mount in rootfs_install_pkgs_isar_download on rootless - adjust to changes in "image-postproc: gate systemd preset-all on masked unit state": Trivial change to use run_in_chroot instead of sudo chroot. Changes since PATCH v4: - fix cleanup trap in do_bootstrap (only functional change) - keep build_system entries as "isar" until we have official kas support (and for backwards compatibility). Add reasoning to commit message - improve RECIPE-API-CHANGELOG (the kas interfaces are stable now, but not yet released) Changes since PATCH v3: - fix dracut initrd build issue (p7) - testsuite: print if rootless mode is used in summary - testsuite: append newline after ISAR_ROOTLESS = "1" in ci config - run-tests.sh: catch -p rootless=1 flag and start container in rootless mode (requires a not-yet released kas-container, corresponding kas patches are currently under review) Changes since PATCH v2: - add support for cached base apt - rootfs sstate: do not rely on fd3 for copy out, as not always available - sbom: use local copy of sbom rootfs to not leave shared instance behind - testsuite: add parameter to run in rootless mode - rebased onto v1.0 Changes since PATCH v1: - fixed broken rebase onto next - fix root_cleandirs implementation NOTE: This requires the kas series (v3) from [1] for rootless building. Changes since RFC 2: - rebased onto next - fix usage of root_cleandirs - simplify file permission handling by mapping caller user to root inside the namespace. By that, in most cases no changes to the imager are needed anymore. - implement support for devshell under rootless - switch to getpass.getuser() to query user (needed for dynamically created / remapped kas builder user) - rework mapping to be more similar to mapping used by mmdebstrap - sbuild: only copy-out of dpkg.log on schroot (unclear if needed on unshare. To be clarified) - imager-sbom: ensure sbom is extracted before entering the chroot Changes since RFC 1: - switch build_type to isar-rootless in isar.yaml (Note: switch back if testing locally in a unprepared kas container) - complete overhaul of the mounting in unshared namespaces - fixes the systemd presetting - fixes hangs when pulling from snapshot mirrors - rename the run_privileged_here to run_privileged_heredoc to clarify its intention - add support for - dpkg-source with do_fetch_common_source - vm images - container images - discoverable disk images - add helper script to clean build dir in unprivileged mode - reduce clutter we leave after finishing a build - fix issues when running in a privileged environment without sub user ids - bugfixes Note, that the rootless build dir must not reside in a git worktree (a normal git dir is fine). This is probably a bug in combination with kas-container. [1] https://groups.google.com/g/kas-devel/c/NWQFCU2aUHg Best regards, Felix Moessbauer Siemens AG Felix Moessbauer (17): refactor bootstrap: store rootfs tar with user permissions deb-dl-dir: export without root privileges download debs without locking introduce wrappers for privileged execution bootstrap: move cleanup trap to function rootfs: rework sstate caching of rootfs artifact rootfs_generate_initramfs: rework deployment to avoid chowning use bitbake function to generate mounting scripts apt-fetcher: prepare for chroot specific fetching add support for fully rootless builds add helper script to clean artifacts in build dir apt-fetcher: implement support for unshare backend dpkg-source: implement multiarch support for unshare backend use copy of sbom-chroot for sbom creation add support for devshell on unshare backend testsuite: add parameter to run tests in rootless mode run-tests: add support for isar-rootless mode RECIPE-API-CHANGELOG.md | 41 ++++ doc/user_manual.md | 2 + meta/classes-global/base.bbclass | 124 ++++++++++- meta/classes-recipe/deb-dl-dir.bbclass | 22 +- meta/classes-recipe/dpkg-base.bbclass | 94 +++++++-- meta/classes-recipe/dpkg-source.bbclass | 40 +++- meta/classes-recipe/dpkg.bbclass | 19 +- .../image-account-extension.bbclass | 4 +- .../image-locales-extension.bbclass | 13 +- .../image-postproc-extension.bbclass | 30 +-- .../image-tools-extension.bbclass | 114 +++++++++- meta/classes-recipe/image.bbclass | 21 +- .../imagetypes_container.bbclass | 28 +-- meta/classes-recipe/imagetypes_wic.bbclass | 10 +- meta/classes-recipe/rootfs.bbclass | 197 +++++++++--------- meta/classes-recipe/sbuild.bbclass | 34 ++- meta/classes-recipe/sdk.bbclass | 22 +- meta/classes/sbom.bbclass | 28 ++- meta/conf/bitbake.conf | 7 +- meta/lib/aptsrc_fetcher.py | 87 +++++++- .../isar-mmdebstrap/isar-mmdebstrap.inc | 56 +++-- .../sbom-chroot/sbom-chroot.bb | 11 +- .../sbuild-chroot/sbuild-chroot.inc | 24 ++- scripts/isar-clean-builddir | 73 +++++++ scripts/run-tests.sh | 7 +- testsuite/cibuilder.py | 7 + .../unittests/test_image_account_extension.py | 9 +- 27 files changed, 883 insertions(+), 241 deletions(-) create mode 100755 scripts/isar-clean-builddir