From nobody Thu Nov 4 07:41:29 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BB7CA1836580 for ; Thu, 4 Nov 2021 07:41:42 +0000 (UTC) (envelope-from sir@cmpwn.com) Received: from out10.migadu.com (out10.migadu.com [46.105.121.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HlFvV4V4qz4kMN for ; Thu, 4 Nov 2021 07:41:41 +0000 (UTC) (envelope-from sir@cmpwn.com) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpwn.com; s=key1; t=1636011693; 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=eFOmdJR6cesTF5f48mp9WvWjXPol8gCRVfJK69DsYVc=; b=ApJg3xD1yYixr3j7KoR1wlzZ8B+bVc8y1vIwtyc6alroHBG79/k4FJ6kk6EGU8VE81CIup NRNKsDJbpERg3yT9Cccl7Mem9VdaIVu7KMXGNigC0NWO2rpng5xxy6mgepQ2Ur7yemetof oO8zWzwuxtKhp/scllbAhRbBTdy9lr0UKGgYD0oVBxa6eretRzP7TUKjmfTONdn7X+Lc29 2jDM4toIQYeG895+a1I/ugpz/TjFk1uIio+HtqtRmoAJu4rGoLNEPPV0aYIN/ILzMHtZYq uxBGGQcOnpN25DfIpDGY5Vh/W9KT0ITNM4+h8GoFfORVHeNJbet9h13ESHm6Ig== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 04 Nov 2021 08:41:29 +0100 Message-Id: Subject: Re: Complicated interactions between O_EXEC, fdescfs, fexecve, and shebangs X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Drew DeVault" To: "Konstantin Belousov" Cc: References: In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: sir@cmpwn.com X-Rspamd-Queue-Id: 4HlFvV4V4qz4kMN X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed Nov 3, 2021 at 2:35 PM CET, Konstantin Belousov wrote: > - Semantic of the FreeBSD fdescfs open(2) is different, to get the > behavior similar to Linux, you need to specify "nodup" mount option, > see fdescfs(5). fdescfs(5) does not mention a nodup option, but it does mention a linrdlnk option. Helpfully, it does not tell us what this option actually does.