From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6563188160178683904 X-Received: by 2002:a2e:8049:: with SMTP id p9-v6mr1244357ljg.39.1528134497908; Mon, 04 Jun 2018 10:48:17 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:c44f:: with SMTP id u76-v6ls754332lff.4.gmail; Mon, 04 Jun 2018 10:48:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIeQty0xcDqwhvKtDBcpjr0pMg2/7vDwITgA+LigvQh6ckTkx/GYy3utAHEorqebdYOSk2z X-Received: by 2002:a19:9382:: with SMTP id w2-v6mr427321lfk.28.1528134497326; Mon, 04 Jun 2018 10:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528134497; cv=none; d=google.com; s=arc-20160816; b=NEAtcL2+12s2O5Gk1T36AKze+kHl4LyIeFYj4nWzMHBBexQoTGIk0VSPXiPuzoO/BG PsjF1bE8H6pUXAmZfoPFPk0ljw8lw8T00JBfWikvFg0qyWu81Y3zz5fL4E0HgmjJTG8D Fef/mJQiUNdC7TIauhYieKsp63hxPEgiEQvl0rQx7+sjzNA97ppRReAGF0Zto/Vyv7PE y1tty1KmGpQQkrqLh9wsLJUmrBk7M/49N6R6lWEMYsgd+Y2mZIeakj+kZG/KhUQ0v0db 0B8gvxxgC4cbUfvCsioT7NWTCUvd9UznOg1VL3/9X+JbDmEkzix2Jr377DL3/DiGAi9B 43qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=5iYy4KPJw5Z+8SIWef5AVBRx10LTpH7bx4KVpPGm0jk=; b=0J0MjmvAhJb0U/+sLR5cSbO0YssJv8ifEYVwdOq8Soshnq1K5LyiHkwSXDIy5nN7KQ EFhDQSFIQ1/SiLHm4FN/QoKYNjPpKD9XfxTzKCZICcg0AARja6dL/+BDTFQQDEsvSJJC +FgHRVjvY5kP8uQ1pohb1HbQiKIL8BvLFitbxfKbe4rzIjL+T9ymHmOu8JctKCkGjdJZ +O8wmNHICzBv89LuBXw4pqY9tufF08/WMEYPRhxB2mVZrk7rNfkd9U6CCA8bFEZKmjRA FUhyuqgCy0hEJks1oPJ1bHTKmnNTnkcL+hYdm9W423zZm6ve1zvdZmEk90ZnfkUOu+tA F22g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id z203-v6si605739lff.3.2018.06.04.10.48.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 10:48:17 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=212.18.0.9; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4102Tr3Tmqz1qvVN; Mon, 4 Jun 2018 19:48:16 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4102Tr38v3z1qqy3; Mon, 4 Jun 2018 19:48:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id hdpNuBl2r-kG; Mon, 4 Jun 2018 19:48:15 +0200 (CEST) X-Auth-Info: bnayWaV85+aw/Rm8qgRnU08tx2Nr3VSeln6PHs+VW1U= Received: from Orrorin (dslb-088-067-187-241.088.067.pools.vodafone-ip.de [88.67.187.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 4 Jun 2018 19:48:15 +0200 (CEST) Message-ID: <811a5cb6069e5f3bc9e010a11bca870be0d63400.camel@denx.de> Subject: Re: [PATCH 0/1] Disable daemon activation From: Claudius Heine To: Henning Schild , "[ext] claudius.heine.ext@siemens.com" Cc: isar-users@googlegroups.com Date: Mon, 04 Jun 2018 19:48:11 +0200 In-Reply-To: <20180604193646.769f01ca@md1pvb1c.ad001.siemens.net> References: <20180604112159.18605-1-claudius.heine.ext@siemens.com> <20180604193646.769f01ca@md1pvb1c.ad001.siemens.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-FUS8IbqODhmPaVSqa+v0" X-Mailer: Evolution 3.28.2 Mime-Version: 1.0 X-TUID: VZ3tQIiqi3J2 --=-FUS8IbqODhmPaVSqa+v0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Henning, On Mon, 2018-06-04 at 19:36 +0200, Henning Schild wrote: > Hi, >=20 > this looks pretty nasty, Yes it is. But its mostly copied from debian-installer source. I just added a bit execution environment and parametrized the target path. > and this is the "old" way of doing something > like that. I would prefer adding some cgroup support to Isar to deal > with that and other things. But if it works and did so in Debian for > years ... why not. >=20 > We could cgreate a temporary cgroup where we cgexec "sudo chroot", > when > that returns we destroy the cgroup and autokill everything running in > there. This might also work for the umounts that we now still do > explicit. >=20 > I guess cgroups are a feature we can expect from a modern Linux build > host, question is can we rely on the tools or should we create them > manually. >=20 > If you are building in docker you get what i described for "free". It > takes care of cgroups and cleaning up after a finished build, but > only > once you end the container. I could not reproduce this issue. I installed openssh-server to the image without this patch applied and did not stop the container. (As I usually don't) But there were still no left over running applications. I don't know why. If you like you can implement a better way using cgroups. AFAIK you are more experienced in those. I would have to test that out first. Claudius >=20 > Henning >=20 > Am Mon, 4 Jun 2018 13:21:58 +0200 > schrieb "[ext] claudius.heine.ext@siemens.com" > : >=20 > > From: Claudius Heine > >=20 > > Hi, > >=20 > > this patch disables the daemon activation in the chroot > > environment. > >=20 > > Since I could not reproduce the problem this patch handles, please > > test if this fixes it, if the code looks fine. > >=20 > > Cheers, > > Claudius > >=20 > > Claudius Heine (1): > > meta/isar-bootstrap: deactivate daemon activation in chroot > > environment > >=20 > > meta/classes/isar-bootstrap-helper.bbclass | 2 + > > .../isar-bootstrap/files/chroot-setup.sh | 133 > > ++++++++++++++++++ .../isar-bootstrap/isar-bootstrap.bb | > > 11 +- 3 files changed, 144 insertions(+), 2 deletions(-) > > create mode 100644 > > meta/recipes-core/isar-bootstrap/files/chroot-setup.sh > >=20 >=20 >=20 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-FUS8IbqODhmPaVSqa+v0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAlsVe1sACgkQEXPLGZgI sVMTzw/8Cel0zO/SV0cs4K8sWIsWhsqDMtkU47gmHaZcUVgok3wurbYyEtp6SvE0 njfoU1qtzMUJz11zUo0jB2Pgd16Dkz1p8OBvWPcgkmCBlu361tD0M2hyLEpp+BeJ /t1692bsjpfstwWN2BcGP76Ue6G2reej8c5UVR5V2Wx/ss9nuO7gf1vI4XucPAfS uhtGCJDOiPHWuXkjp3NEzsT+c34VpniRGk1l0OEpXzQaFmo3AagKtnBZVGCCgwOO 6aI+tjdnNjFGjO2xxij9w2QdevhMKQ56p1ugz513SvFrqz6ybb45sRaoiymhHA3p JAebOTViAw8041O8blYJBFd2pgCMS6KU6fcI65ElwLMlaERt7gRqOfjTFM9rO/dq CqJZFPn+aGUta9lwJe2QISWoE9Qbm/cAlzPLOy9O5GLA/apt4+uRn5nMecJd3Rtb wKIlEa8FP9OxknVO59bw6KabQaOqvveA5NooPL8A8qSJlWnqjccF//SyuHgNVbCO ReK4fisT33CQ/zKgKtS+mPn4jlZG5FH6RajbNm0dVW3lwS/3nvj7sY38UOfnfVlp wtdcs468tfVD+nohS/XteQLfG8zrKiNH0L30CN9bZ1NKzZwxPF3Z72jqZOPy3NuN 4I4/LIcAjfYuda0Fi0W8tTzu0v5+0L9D8UAEAicGfB9zZFK3e3s= =s6XW -----END PGP SIGNATURE----- --=-FUS8IbqODhmPaVSqa+v0--