From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05131C54788 for ; Wed, 21 Feb 2024 21:37:15 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.633.1708551429113639748 for ; Wed, 21 Feb 2024 13:37:09 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@windriver.com header.s=PPS06212021 header.b=enWiPCzH; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=27818d3471=randy.macleod@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41L4cLZK021731 for ; Wed, 21 Feb 2024 13:37:08 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-type:message-id:date:subject:to:cc:references:from :in-reply-to:mime-version; s=PPS06212021; bh=GbUNhJ3VpgswkQF+R5H EboyTq8p9yowcjkK0KnmAFyU=; b=enWiPCzHMTmVhyATc6OKwGGQb8GcIx86pR1 rZI/0eOSHv+vKtIzm439r5dTBMAg//pyjjZ3k4onJIIbjbrMD2mzY/d04IG8WVkB Ac0TX+NVVugC0CL06CzO4EqSPozcDskmMIBmz9ue69juYKivJQ5fNjqaqXH+Pp5E xAYKLvKTm/qTD3kL9Pp8sdt08RcMQAkSuVB+pnyaehTwg7TmOt+c11PKv4lLam5A PHxtqNkBrcTS2bHYl/yO3Tb9hbJv0hpj51el4yorROlXcv5NVbijsEXsj/VGKUtt tUGE1wzBhJZmkt0Co5yZKpTPTGDSHBitNS98CNGVJ9u8/JWp6QA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3wd20csa99-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 21 Feb 2024 13:37:08 -0800 (PST) Received: from m0250809.ppops.net (m0250809.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.24/8.17.1.24) with ESMTP id 41LLb7SW031693; Wed, 21 Feb 2024 13:37:07 -0800 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3wd20csa98-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 13:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=joxB+a3DjPm25Rf98TM2zMiNO9whGCEESwDivrdN7WFWl1CQik53ueWkiLVr36XRNdfuL+5+RcHYeck5aK9HG62gAKxY+eLrtHKdKpm4A3hzi8KPaWfoo/dzNdwnIejhCW68l0JY0YcWSuuBacOmcXopduINtRplpJDy5OvolBHg79AEPFE19OStPuYUFCqVBlShOorDBlmooVDY775FWW+yNG/zbOrWFYT24YLao5Fchw4OErwnAIi7A5q5pZbJj7vYWe5G36fur7d9INXAArVCnX+alDCZSZJ1OTm/0pe7/A9OBOO6MWW3+038R8Sc0AyntJMxjliIMVN1nhF31w== 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=GbUNhJ3VpgswkQF+R5HEboyTq8p9yowcjkK0KnmAFyU=; b=dwTVTmyqosCUvGcq0dh1zEcWl9UjtERsTiRCPYqjXq/XS5hsuTcpzbqbpxcMqWCCH3rG3sHubfP8djTInB/poFbJyktVGdcjodn3zKJLwJpZmOXyRPaugg1NfMevzzOe7r2RBcJA0FYugTH+tADRhxI3VAcH3CPfWjPBMWCXMwyqKSn/47g5puTsshg8Dp+kJWE0m5jeSGHZJgyfPJKuVKNZhqS/E3lsWXQz+INyuwS0KOLYJwLbZmJO4Ft1aaT2FQ8t5taaSO38+1b+6RC3IfvO52Y2OinEy7WUZEZHVowmaGilCgL3nvi6T59oLCw9K07QqMd0SVl9TMY42L/ygQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from SJ0PR11MB5920.namprd11.prod.outlook.com (2603:10b6:a03:42e::9) by MN0PR11MB6060.namprd11.prod.outlook.com (2603:10b6:208:378::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.38; Wed, 21 Feb 2024 21:37:02 +0000 Received: from SJ0PR11MB5920.namprd11.prod.outlook.com ([fe80::f3ba:ff33:12be:cff7]) by SJ0PR11MB5920.namprd11.prod.outlook.com ([fe80::f3ba:ff33:12be:cff7%7]) with mapi id 15.20.7292.042; Wed, 21 Feb 2024 21:37:01 +0000 Content-Type: multipart/alternative; boundary="------------bXWwRVfa62auJFHTHvu4B0rl" Message-ID: Date: Wed, 21 Feb 2024 16:36:58 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [OE-core] [PATCH] sanity.bbclass: raise_sanity_error if /tmp is noexec Content-Language: en-CA To: alex.kanavin@gmail.com, Ross Burton , "michalwsieron@gmail.com" Cc: ChenQi , "openembedded-core@lists.openembedded.org" References: <20240209140939.186588-1-michalwsieron@gmail.com> <94AE8BC1-9AA9-4DFB-B7B6-80CC83897ACD@arm.com> <461776CF-3A33-4053-9FCA-009B4BA98246@arm.com> From: Randy MacLeod In-Reply-To: X-ClientProxiedBy: BYAPR11CA0058.namprd11.prod.outlook.com (2603:10b6:a03:80::35) To SJ0PR11MB5920.namprd11.prod.outlook.com (2603:10b6:a03:42e::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR11MB5920:EE_|MN0PR11MB6060:EE_ X-MS-Office365-Filtering-Correlation-Id: a4723184-ed86-4727-bda7-08dc33253d6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OuADSef+kTIiwj6QMrUK+SBZEJCAV6CHzF4c2iIyYeQj5PmjaFHeWZMvd3vpjo/IWcoRku9VDc98Ui9RI8MWT5ihQBnRaLOU3RFJWODRKRkjitDKvvBPPwd02L8dDwXA09xLKlseUR9DV3tzptYTR7AVv44AnwoGzT1APXMGVgNxNOW3OfnNdQolYbNjwzu3kUAVCilhVfjIBfDqJngGaSOhwnostAGXNoYOeipqNzB3pByG6DdlEBhtZvuyqdUZawTuhPVpzsstGzkQhh+OSuY0Wvvft5LO2Um7xNJkQ/uJ1wPtEHjFvJg4DUm4d7bK+FrNvqXk4d71Rf9mhNd+DTwlmdn7Obu/82cTCJ5aCpbj56a/whnUYQykjHOlfKn1KDUWuHB38vtS5Qnq1gjk10ii9t4WsR/vdMwUFWHqHMFiCPXmoJjwo1iwEWXjUHfyDONu+M1XvG1MMhaVZGloMudR9c0K5OWOm1cDBsoyA6mLpOMqs7+/uKakYm+A5rMMPMC7RWON/LvwZras6Y1ggA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB5920.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-A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pXb3Q5NFQwTmkzZThXMi9QODh4bjdoS0NWT0ZLMHpN?= =?utf-8?B?SGIvZVVpVnZ5bU5rNVhMY0QzcnJFbEFYZytVek9lMDJvdXdVR1FWN0kvQzZn?= =?utf-8?B?ZzN2aHUxT29aYlJYUWFMcWxsM09Pb2dnc1RRUXdiMGdPckxrNlVYUlQyRlJr?= =?utf-8?B?Njg2OFR1YTNqUXBMMVFFYUwvRkVaNU1zTXZmT0RvQmxjcmN6VE1rY3hyNVQ1?= =?utf-8?B?c2kvajZOdWVhdTIrRjJBT2ZEcVUxVUpzMzU3akI0S2V0b05LOGR6TWpNd3pZ?= =?utf-8?B?YThuemFkZXROQXpqWitJeERyT0FycHVPZjVsRWNoWVJJVjk0MmlWU240V1hU?= =?utf-8?B?VEZJMmxnNTk1b0ovWWR4WHhkQ2RDWTcvVUQ5Vmd4Q3RQTVVQMVJhRDF3eE9X?= =?utf-8?B?NUE9PQ==?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4723184-ed86-4727-bda7-08dc33253d6a X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5920.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 21:37:01.8016 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: e5xmru2AfLRXYcKiCxgj213QAjqtnhYR413g5yw0UMpcoxE7XtGrfY8AUHwj+WmLYqxWhA4u8tnf1b7BpPsOCp2yafuNTvVvpDejxocnxGk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6060 X-Proofpoint-GUID: wyqPS1DIOy1XNgkuBGn731lSvUatZfTr X-Proofpoint-ORIG-GUID: FZRh4tYzBCK9jzpZplE2M0W8PlPapNjj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-21_09,2024-02-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 malwarescore=0 adultscore=0 impostorscore=0 mlxlogscore=929 suspectscore=0 clxscore=1015 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210169 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 21 Feb 2024 21:37:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/195998 --------------bXWwRVfa62auJFHTHvu4B0rl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 41L4cLZK021731 On 2024-02-21 5:08 a.m., Alexander Kanavin via lists.openembedded.org wro= te: > On Wed, 21 Feb 2024 at 10:48, Ross Burton wrote: >> You _can_ export TMPDIR but that has to be done on a per-recipe/class = basis very carefully as TMPDIR means something else to Bitbake. >> >> The problem is recipes that use mktemp to write files and execute them= (be it shell scripts, or as a place to write C and then compile in the s= ame directory). These will be in /tmp (again, we can=E2=80=99t set TMPDI= R because for foolish historical reasons, TMPDIR is used by bitbake). >> >> We first noticed this with Meson where noexec /tmp meant the configure= tests failed. We worked around it at the time by assigning TMPDIR when c= alling Meson, but since them Meson writes to its own build tree now. Thi= s has been seen before though, but luckily noexec /tmp is fairly unusual = so I doubt this will break many builds. > I'm actually curious where noexec /tmp can be observed. It does seem > rare, because I think it's the first time someone came up with a > sanity check for it. Perhaps it should be treated as a bug in that > respective environment/OS/container? We've been using noexec /tmp since 2019 with few if any problems using: meta-anaconda meta-aws meta-browser meta-clang meta-cloud-services meta-dpdk meta-imx meta-intel meta-intel-qat meta-iot-cloud meta-lat meta-mingw meta-openembedded meta-qt6 meta-raspberrypi meta-realtime meta-secure-core meta-security meta-selinux meta-tensorflow meta-virtualization meta-xilinx meta-xilinx-tools meta-yocto Michal, what problem are you seeing? ../Randy > > Alex > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#195965):https://lists.openembedded.org/g/openembedd= ed-core/message/195965 > Mute This Topic:https://lists.openembedded.org/mt/104258828/3616765 > Group Owner:openembedded-core+owner@lists.openembedded.org > Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [= randy.macleod@windriver.com] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > --=20 # Randy MacLeod # Wind River Linux --------------bXWwRVfa62auJFHTHvu4B0rl Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 41L4cLZK021731
On 2024-02-21 5:08 a.m., Alexander Kanavin via lists.openembedded.org wrote:
On Wed, 21 Feb 2024 at 10:48=
, Ross Burton <ross.burton@arm.com> wrote:
You _can_ export TMPDIR bu=
t that has to be done on a per-recipe/class basis very carefully as TMPDI=
R means something else to Bitbake.

The problem is recipes that use mktemp to write files and execute them (b=
e it shell scripts, or as a place to write C and then compile in the same=
 directory).  These will be in /tmp (again, we can=E2=80=99t set TMPDIR b=
ecause for foolish historical reasons, TMPDIR is used by bitbake).

We first noticed this with Meson where noexec /tmp meant the configure te=
sts failed. We worked around it at the time by assigning TMPDIR when call=
ing Meson, but since them Meson writes to its own build tree now.  This h=
as been seen before though, but luckily noexec /tmp is fairly unusual so =
I doubt this will break many builds.
I'm actually curious where n=
oexec /tmp can be observed. It does seem
rare, because I think it's the first time someone came up with a
sanity check for it. Perhaps it should be treated as a bug in that
respective environment/OS/container?


We've been using noexec /tmp since 2019 with few if any problems

using:

meta-anaconda
meta-aws
meta-browser
meta-clang
meta-cloud-services
meta-dpdk
meta-imx
meta-intel
meta-intel-qat
meta-iot-cloud
meta-lat
meta-mingw
meta-openembedded
meta-qt6
meta-raspberrypi
meta-realtime
meta-secure-core
meta-security
meta-selinux
meta-tensorflow
meta-virtualization
meta-xilinx
meta-xilinx-tools
meta-yocto


Michal, what problem are you seeing?

../Randy



Alex

-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-
Links: You receive all messages sent to this group.
View/Reply Online (#195965): https:/=
/lists.openembedded.org/g/openembedded-core/message/195965
Mute This Topic: https://lists.openembedded.org/mt=
/104258828/3616765
Group Owner: openembedded-core+owner@lists.op=
enembedded.org
Unsubscribe: https://lists.openembedded.org/g=
/openembedded-core/unsub [randy.macleod@windriver.com]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-


--=20
# Randy MacLeod
# Wind River Linux
--------------bXWwRVfa62auJFHTHvu4B0rl--