From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6659376390151864320 X-Received: by 2002:a1c:1a4a:: with SMTP id a71mr400675wma.21.1551209822581; Tue, 26 Feb 2019 11:37:02 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:fc51:: with SMTP id e17ls2314496wrs.15.gmail; Tue, 26 Feb 2019 11:37:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IbXZFjV8jk5eRRGIsvS7vfZebK52Sdy136DsBBxzRHd5uwS99GeHWBnl0vSFmz/+w3fshZ6 X-Received: by 2002:adf:ce07:: with SMTP id p7mr1385901wrn.24.1551209822078; Tue, 26 Feb 2019 11:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551209822; cv=none; d=google.com; s=arc-20160816; b=GTZEWAp0C1ZeC1xQYPYg+pba5Wjih7CUNQZktSOPu7x2EkbSXFCda9w5yVkLbZM/Dx +Ql7dqVu0cXVPJbBP/+4KNzaLM3Fc0e0KsDPPg9L25QE+oaZM3UO/PxzkhCjMsA6cGfv Y2EmtXuy0NNupBWMqsWhR98OotzUFXeQDEvAN1diEYDXFnfhnCLOdFaYHIAYBOvBUiK3 rnO5owVee3DxN76aESOiCcRuWu30LND81zwHmZZTaI7kCWEvanHCJt2DP8HJ9XQoNviE hfrU7ePuxhTFwQYNjRJ65QGEiXgaOIowCtWPqOtqx6h87iPUYPPB4NpKD/OxzMestgyF RFXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=qzhPw3QXfJumUKq4YkOp1VKwia3dnJ1DVtuw8E2w2Nk=; b=gcsjmqyzntvwq023PZTg8VCh5F4yBpBCBYDZtgNbCcqnK+bvVIcJDSuAxqrORHiekK pV4cSiXrSDs0OEyDlGL5r7fnL3V/RKoN6iEyGdFsf67j4JYxAg+DokCRTW5T4Lw8sL0h JZ/u2DVZUxJc5DHYN0ZZrYXKVl1KE/tAKKHfIR+gikEiAhuWvhjgsgjmNdDi9qcNKR9J kT9X0rHMP2E2O5X3bPmc1hExqJ6poNHqZSxyv4sin7sKSNGAYKllnw1v3L6iJWzwnJ26 kax0ZBq3AJeRjQj55bBK93c8Ad96zevyvW6vpAJhFsiTPqDfaoVdCo7uC7X6mT7bj4OA bRMA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id o184si460wma.0.2019.02.26.11.37.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 11:37:02 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x1QJb0kp016648 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 20:37:00 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x1QJavCQ016273; Tue, 26 Feb 2019 20:36:57 +0100 Subject: Re: [PATCH] added 'isar-cfg-userpw' package To: "[ext] Henning Schild" , "[ext] Adler, Michael" Cc: "isar-users@googlegroups.com" , "claudius.heine.ext@siemens.com" , Claudius Heine References: <20190218162113.8538-1-claudius.heine.ext@siemens.com> <20190225101852.6m6uqbaq24upaovp@demogorgon> <20190225113406.373e0ae9@md1za8fc.ad001.siemens.net> From: Jan Kiszka Message-ID: <1577ed53-0452-9b44-d107-ad13f7240e37@siemens.com> Date: Tue, 26 Feb 2019 20:36:57 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20190225113406.373e0ae9@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: h+Yhc8AOitMc On 25.02.19 11:34, [ext] Henning Schild wrote: > Hi, > > this is not related to the package. But to any package that goes > through common.sh and checks the ids. > > https://groups.google.com/forum/#!searchin/isar-users/Align$20UID$20and$20GID$20%7Csort:date/isar-users/S5W8D3X4Lkg/n7HbASWnAwAJ > > The result of this discussion was that we probably need to align the > ids and hope we never get in trouble with the host. In this case we do! > > The alignment should be changed. If the group does exist (100) join the > user and do not try and create a group. The check should be changed to > make sure the gid is the main group gid, instead of 1000. FWIW, just ran into the same issue after purging my build folder and retrying a clean "kas-docker --isar build". I'm not seeing it with jailhouse-images where we do not use kas-docker yet and also do not create the build folder outside of the container, thus with host IDs. So, this needs to be fixed in our kas-isar container, I suppose... Jan > > Henning > > Am Mon, 25 Feb 2019 10:18:52 +0000 > schrieb "[ext] Adler, Michael" : > >> Just a heads-up, I'm having some issues with this package: >> >> ==============================SNIP >> START======================================= NOTE: Executing RunQueue >> Tasks ERROR: mc:qemuamd64-stretch:isar-cfg-rootpw-1.0-r0 do_build: >> Function failed: do_build (log file is located >> at /work/build/tmp/work/debian-stretch-amd64/isar-cfg-rootpw-1.0-r0/temp/log.do_build.179) >> ERROR: Logfile of failure stored >> in: /work/build/tmp/work/debian-stretch-amd64/isar-cfg-rootpw-1.0-r0/temp/log.do_build.179 >> Log data follows: | DEBUG: Executing shell function do_build | This >> script can only be run as root:root or builder:builder! | (Currently >> running as builder(1000):users(100)) | WARNING: exit code 1 from a >> shell command. | ERROR: Function failed: do_build (log file is >> located >> at /work/build/tmp/work/debian-stretch-amd64/isar-cfg-rootpw-1.0-r0/temp/log.do_build.179) >> ERROR: Task >> (multiconfig:qemuamd64-stretch:/work/isar/meta/recipes-support/isar-cfg-rootpw/isar-cfg-rootpw.bb:do_build) >> failed with exit code '1' ==============================SNIP END >> ======================================= >> >> My setup: >> >> - NixOS (most notably: uid=1000, gid=100, uid != gid) >> - Isar runs inside a Docker image (kasproject/kas-isar) >> >> However I could imagine that this also breaks in native mode as soon >> as uid != gid (though I will not attempt to run Isar natively). Any >> ideas? >> >> Kind regards, >> Michael >> > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux