From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7385230141766500352 X-Forwarded-Encrypted: i=2; AJvYcCUNJUD7du/uDqnuRzKaFwlRnwI5aPjnFhTfInafaQi87J3c6LNCBQPZ8LFk0ihrjI/LtRyPAfXoZ8As5z/P/Acu4U4iHj3KT/2PD2M= X-Received: by 2002:a2e:b617:0:b0:2ec:42db:96a2 with SMTP id 38308e7fff4ca-2ee5e380fe4mr26637211fa.29.1719803713967; Sun, 30 Jun 2024 20:15:13 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1d16:b0:421:ad3c:1cd1 with SMTP id 5b1f17b1804b1-4256bbf8cd5ls11876755e9.1.-pod-prod-06-eu; Sun, 30 Jun 2024 20:15:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUxCDYC0gdyJQrQdWQ9/2SG6T9IidBbIdH/KTRbt3g2QS4miYKELuenDWQjvIL3TC0DFTT0g0tlfSsz3aYGp4Lj2OxoPY+aO2mWcy8= X-Google-Smtp-Source: AGHT+IH37xHChsscYFZDLapyEhVDYtXgt1YYmoKxl4bos/13xULkzXkfz++NYQSrLrtb+MV8VJvd X-Received: by 2002:a05:6000:1201:b0:360:9176:f8fb with SMTP id ffacd0b85a97d-3677569dd4fmr2373132f8f.4.1719803711868; Sun, 30 Jun 2024 20:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719803711; cv=none; d=google.com; s=arc-20160816; b=ird4ppgjLYeom7NBm+1Z+yMtXI2OW9zk8VYQak0kccYiBi7qq2gMDiwWSbOeUP4zVC UKbdrYbr+Y/LlZtbF5TutLHXkrAajdxihaYQjUksz0czDa+1pXyMZKph2/Y85NOzwmoo UfYgjHCH8/gwOsRkWJK6xe6taBn0Kf8VMH1VBFa7yHOcjTf/w14GmalJYY2qwE9DEr44 13OLSOGIbXrkRIAeA/AsEkIVo76/yIGG7UwJA6PU81B3WHifuTZp22808AbcldfwYKpE 1GXLH+G6dILMv8Ku/HZ2gbQTIz3RuI5EqkbZiSRzanseCPjTAyfXMU4qK//MrQYg0cp+ BeHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id; bh=rRzSSfZqjISfHiwj5wcHv4dTr+HHYoGeAhX4ol+Znk8=; fh=HNNqGdXjPuz+jJysYc4TTCRyrrxlBfi3yoo1L1NGZtA=; b=KK2NU1dM/Pmwa8EFvGyiSNC/prQfd2zBJ7NCnPmqcSynYuxrvJbNsJHZaJwxdgxLl9 PQN3kbIiCHq/gfWI/x48w7HMl0lJnbTJrQPipgHr62Sprx2DOVXOe2U5d526wVw+X/PE UpTl7o5ggEQO5IfIuYUcqj+LL+80LJXkoqZf4juRLO7sBI5umkBobDtUuAoMmhJEpOtL /QagTxRAKGE/Q+OFvLFeUHQUeexqxWlVLfsdcSxb4tGZ1sLT/ZiHsn9IEd+7Z2rdzw6O pFQ9lzQlSXocU3I3kylZmd4mC8tCxcu5k/opWXRQf8xADQAfGilEUItF1u6ANqZ9q2BV CT/w==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-3675a0ffca7si134227f8f.6.2024.06.30.20.15.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Jun 2024 20:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4613F9I3021606 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 Jul 2024 05:15:10 +0200 Message-ID: <9998871e1df80ed8e75b815d6eb05e561ac2184e.camel@ilbers.de> Subject: Re: [PATCH] image: Restrict coredumps to *.core files again From: Uladzimir Bely To: Jan Kiszka , isar-users Cc: Zhibin Dong , "Moessbauer, Felix (T CED SES-DE)" Date: Mon, 01 Jul 2024 06:15:09 +0300 In-Reply-To: <6d425cce-dc62-4221-a87d-c15598911e84@siemens.com> References: <6d425cce-dc62-4221-a87d-c15598911e84@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: uJj/yIroZzRJ On Thu, 2024-06-27 at 19:04 +0200, 'Jan Kiszka' via isar-users wrote: > From: Jan Kiszka >=20 > Looking at every file's mime-type in a rootfs is simply way too > costly > and also not needed in practice. >=20 > Signed-off-by: Jan Kiszka > --- >=20 > To make my point more concrete. Please speak up if you think that=20 > coredumps with different endings do play a role. But make sure that > case=20 > is strong: >=20 > - 7.5 min. do_rootfs_finalize for meta-iot2050 so far > - 0.5 min. with this change >=20 > =C2=A0meta/classes/image.bbclass | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass > index 0a80273f..c29d9e26 100644 > --- a/meta/classes/image.bbclass > +++ b/meta/classes/image.bbclass > @@ -436,7 +436,7 @@ EOSUDO > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0 # Sometimes qemu-user-static generates coredumps= in chroot, move > them > =C2=A0=C2=A0=C2=A0=C2=A0 # to work temporary directory and inform user ab= out it. > -=C2=A0=C2=A0=C2=A0 for f in $(sudo find ${ROOTFSDIR} -type f -exec file = --mime-type > {} \; | grep 'application/x-coredump' | cut -d: -f1); do > +=C2=A0=C2=A0=C2=A0 for f in $(sudo find ${ROOTFSDIR} -type f -name *.cor= e -exec > file --mime-type {} \; | grep 'application/x-coredump' | cut -d: - > f1); do > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo mv "${f}" "${WORKDI= R}/temp/" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 bbwarn "found core dump = in rootfs, check it in > ${WORKDIR}/temp/${f##*/}" > =C2=A0=C2=A0=C2=A0=C2=A0 done > --=20 > 2.43.0 >=20 Applied to next, thanks. --=20 Best regards, Uladzimir.