From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 6AC3A3858D39 for ; Wed, 19 Apr 2023 02:40:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6AC3A3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681872003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aqoDyRgGvhqoPckQOEWqzZp5mJJHXbaerTpMwotycFY=; b=Ear7bdgBNkKKR/xpHw07FfeLpx8UOPxQIc5nOl5nMQ2BNrbJ70FbZAz2bGdfh39rLdEWrp 03A0P6a+glh3AGPaE97i9fMTryd6rBDa0RxXLfAG6w3OZx/5W83AIMDplRaqQtJ1Kvc2Xt +LQE8pI9zYfMYiBjLbJu4fXhMXXDJCc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-620-E1sKYz5vM0-ZgGfXhnpOxw-1; Tue, 18 Apr 2023 22:39:59 -0400 X-MC-Unique: E1sKYz5vM0-ZgGfXhnpOxw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 94FE7811E7C; Wed, 19 Apr 2023 02:39:59 +0000 (UTC) Received: from redhat.com (unknown [10.2.16.177]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C2EBD2166B26; Wed, 19 Apr 2023 02:39:58 +0000 (UTC) Date: Tue, 18 Apr 2023 21:39:56 -0500 From: Eric Blake To: Bruno Haible Cc: cygwin@cygwin.com Subject: Re: posix_spawn facility Message-ID: References: <1752276.7aRn1RRit1@nimes> <1741636.G7SD5HZVK5@nimes> MIME-Version: 1.0 In-Reply-To: <1741636.G7SD5HZVK5@nimes> User-Agent: NeoMutt/20230407 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Apr 19, 2023 at 12:10:34AM +0200, Bruno Haible wrote: > Eric Blake wrote: > > we now have implementations in the wild that differ in behavior, and > > use security as a reason for the divergence, it is worth getting that > > clarified in POSIX. I'll file a bug against POSIX shortly > > For the reference, the systems that return ENOEXEC for posix_spawnp > attempting to execute a script without #! marker are: > - glibc/Linux ≥ 2.15 > - glibc/Hurd ≥ 2.33 (commit 13adfa34aff03fd9f1c1612b537a0d736ddb6c2b) > - musl libc POSIX issue now filed as https://www.austingroupbugs.net/view.php?id=1674; although we'll have to see if my wording is acceptable or if it settles on something a bit looser (such as implementation-defined as to whether an sh fallback is attempted, rather than outright forbidden). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org