From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id D898729870 for ; Fri, 5 Apr 2024 22:37:12 +0200 (CEST) Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 376AA1E782 for ; Fri, 5 Apr 2024 16:37:12 -0400 (EDT) (envelope-from bounce.mM43026122c2960e83ab07e80b.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 3447D1258F09; Fri, 5 Apr 2024 16:37:12 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=b+t+rxs/ header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=paurea@gmail.com smtp.helo=mail-ej1-f53.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1712349432; bh=JXS+IQ4LyZQJeaE9 K7DggZ40FL4HVnkYn63OqTtM7ZE=; b=LMWvcfzEC0oLezbqdUTwMJzJDvsJpJjj oaqdTW2p7ZzRaxTitN2RTzbVD+oYcT3TD27YMYHGD1FgJTDSVClaUsYADuYoUMYw yEw+sN8DuOoP/uaIZIflQ8sxTxwheo0qWg/zRXNhvQaF/kqyHE4iua1wSwOz+F47 B7CleLkuW3w= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1712349432; b=cs8SleNOv40s4H7PQB55+aYSwYE+vMsKOWQse5zgpRYBN8ut30 ZqH29nWYxNlydXlADu8RqAZGj7I4PNcVZNn3h2DfMo1Wqpv7TKTLZDGvLyiKU3QK mfldXLlHo94VNugKv/dNamCqvGP8DZzOWJZk0DhEVmLk5u1zU89s9tR9I= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=b+t+rxs/ header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=paurea@gmail.com smtp.helo=mail-ej1-f53.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=b+t+rxs/ header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.218.53 (mail-ej1-f53.google.com); spf=pass smtp.mailfrom=paurea@gmail.com smtp.helo=mail-ej1-f53.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=O5RQh+NP; x-me-sender=none; x-ptr=pass smtp.helo=mail-ej1-f53.google.com policy.ptr=mail-ej1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1712349432; x=1712435832; bh=dkSxsSdujHgHHL2Jv7UVXjzbLG5q5aUq jbXaLC/YRZQ=; b=JZxPum4JBLXu4s2WqqkSCyH1vLl/Eb7B8/WBuGE9jNaJFEIi DmfsgSdqIml0OCn6upltNbCTQInOPuFwcBGMPTv55r/SvrrqqfngZ7LLGeqbh1ue BKGUl2egiW1O6mrRK1YPM0ekFT0BlF10qKe9Eiu72VvM8KoeqVVa/l/zBIs= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id D9ADD1258AC6 for <9fans@9fans.net>; Fri, 5 Apr 2024 16:36:51 -0400 (EDT) (envelope-from paurea@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 0363F7A67CB; Fri, 5 Apr 2024 16:36:51 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1712349411; b=erPkgXMhO1mGPdy2v9pUwyEovPwPIgJpEgOuidII31COMXTfhR ZXX6w9AHUa4P3fvZIlUb6+uL66Qrvs0Ro34pxOKTcQVK8R2O4M1YJNWKly0PlGXJ /vQ4OJBN5w7n2pxbDxjgJoeFEsPaTuuUF0nNPRyvdXtR2SxxLcYh1wgF50dSStlP Vfkkxlue4fnOQQigcbNnpFW9mitEMiUjGnAWKYzE187AHCHeWzyCBCuqTWSk+0a2 zMzhyDy0TAuCLcN/8evqCyK2PJT/bd7cZtDovpQ1usCQ1ter/JQGLqL6xt+dNpVx /1yzdVT3mBIltq5AB76VfUGoabYBIeXJDEkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1712349411; bh=2EJTVt9I2W7caloT0h9x8Dtg8u2gsK0dGIxyBRtAsEY=; b=iLmdWndrVSww hUofC4IiDaQQVubZptlHesG/DR5BhmDr5Y0CFfQAvhYrSaOyH+KUcVPEEkfN9a7O 0q++03quM8epKk/3lrJCpZqRN2hziDiT/oY0U729WNUHNQB8t7cGbD4XodP/x2UJ gEY2SzszXedfJfLvwXTmqb2YNJv6F0hR4SAp2oQMECHsgYwbug3/yEHL5QKGVQp4 mAHKTkFtWe//ejvInOeKC7bWG1Fxw6TOtvPJu/peVAKeNbRU/ZkH6mgy9ifrs6W9 LvZrTVr1ZYuIZ2353pO5deN18Zkd25JmsOdZAw1Cr5anEpRPO9YeYw+dn5OThF6w aDiju2gduw== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=b+t+rxs/ header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.218.53 (mail-ej1-f53.google.com); spf=pass smtp.mailfrom=paurea@gmail.com smtp.helo=mail-ej1-f53.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=O5RQh+NP; x-me-sender=none; x-ptr=pass smtp.helo=mail-ej1-f53.google.com policy.ptr=mail-ej1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvledrudegtddgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgghfjg fhfffkuffvtgesrgdtreertddtjeenucfhrhhomhepifhorhhkrgcuifhurghrughiohhl rgcuoehprghurhgvrgesghhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepueffie dvtddtteefvdejtdeuvdeileeftdfgieevjedugedvuedtudegteejudelnecuffhomhgr ihhnpehtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrddvudekrdehfeenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtdelrdekhedrvddu kedrheefpdhhvghlohepmhgrihhlqdgvjhduqdhfheefrdhgohhoghhlvgdrtghomhdpmh grihhlfhhrohhmpeeophgruhhrvggrsehgmhgrihhlrdgtohhmqedpnhgspghrtghpthht ohepuddprhgtphhtthhopeeolehfrghnsheslehfrghnshdrnhgvtheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'paurea@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="paurea@gmail.com"; helo=mail-ej1-f53.google.com; client-ip=209.85.218.53 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 5 Apr 2024 16:36:51 -0400 (EDT) (envelope-from paurea@gmail.com) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a51a742c273so115041566b.1 for <9fans@9fans.net>; Fri, 05 Apr 2024 13:36:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712349410; x=1712954210; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2EJTVt9I2W7caloT0h9x8Dtg8u2gsK0dGIxyBRtAsEY=; b=O5RQh+NPin97xH0Qh00otprKFGb2hibgPwEwI3VdX9C7c51KQ8gjTXnspz7OHdD/XG oGTsQj0D9DIISgDM418VvApjtZnfM0iebgr/fIPn/zbibBZ1W0BQI1vTJTdMSqhu/6TK CJ0Nw0PHxZJOfmkrlp3VV4lobgq1sbD7Xs8GH3G4D7oZzgiU5GpY7C0K8YN/3jiJzVRe Wub/RRhJfK5zYr0Oo8qZkr33k0u+W3DIwx6rkWWxIuu40DnMuV8hWMOg7He+JvrhsjhI SGsgcnqHnWIjvyiWr6VNcinXZwQ9JRWLiJSaRDxPyF6Iw2jtYrQga4zZJpWof7OEFQJ6 EhwQ== X-Gm-Message-State: AOJu0Yz80NXzZtZ5BGFBJ+XTUGjbNQZJiOBbeJYI21NEt3aM4RqjSyXl f2wqww9iqe+ajABanMcYgfI415+Jh48zvp3Vmy8FV6M/V+ueV6SiZ3EP2wVqaQDnm84KMfSB3xz 110kwnVlDsDDgYkWCr/7qKpEsFE+ulDw+ X-Google-Smtp-Source: AGHT+IF3EauIsK7IG4JZzIWUPOvisVK5hZy58ifYC1+i/ddEHSmLg00PNrbr0GZKgR0l/nLVvrjK53K1wYtyaZx1040= X-Received: by 2002:a17:907:76cf:b0:a4e:802c:a7a2 with SMTP id kf15-20020a17090776cf00b00a4e802ca7a2mr1743618ejc.38.1712349410030; Fri, 05 Apr 2024 13:36:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gorka Guardiola Date: Fri, 5 Apr 2024 22:36:38 +0200 Message-ID: Subject: Re: [9fans] openat() To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00000000000050fe0506155f6a93 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 3eaa4868-f38c-11ee-9ed5-c57d0e6f214a Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNjc1ZTczN2U3NzZlNWE5Yy1NNDMwMjYxMjJjMjk2MGU4M2FiMDdl?= =?UTF-8?B?ODBiPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M43026122c2960e83ab07e80b:1:s534EyUKqzL-4dkovGlkWL1Uv1ju0XU3hU8Akw0Oar8 --00000000000050fe0506155f6a93 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hmm sorry. Now I see what you want. Not to rewalk. You can use the chan of the dirfd and walk just the remainder cloning it and creating a new one. That way the openat provides the guarantees you want. On Fri, Apr 5, 2024, 22:15 Gorka Guardiola wrote: > I mean, if you want a new syscall jus copy or call the implementation of > these. > > > On Fri, Apr 5, 2024, 22:12 Gorka Guardiola wrote: > >> =C2=BFIsn't that fd2path, strcat and open? >> Or am I misunderstanding something? >> >> On Fri, Apr 5, 2024, 21:51 ron minnich wrote: >> >>> One of the folks I worked with, when we pulled a big chunk of plan 9 >>> into akaros, commented that he had implemented openat on akaros. >>> >>> I don't want this to turn into a debate on the merits of openat; I am >>> more curious: if you went to implement openat on Plan 9, how would you = go >>> about it? I have a few ideas but I'm more interested in your ideas. >>> >>> Thanks >>> *9fans * / 9fans / see discussions >>> + participants >>> + delivery options >>> Permalink >>> >>> ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T675e737e776e5a9c-M43026= 122c2960e83ab07e80b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --00000000000050fe0506155f6a93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hmm sorry. Now I see what you want. Not = to rewalk. You can use the chan of the dirfd and walk just the remainder cl= oning it and creating a new one. That way the openat provides the guarantee= s you want.

On Fri, Apr 5, 2024, 22:15 Gorka Guardiola <paurea@gmail.com> wrote:
I mean, if you want a new syscall jus= copy or call the implementation of these.


O= n Fri, Apr 5, 2024, 22:12 Gorka Guardiola <paurea@gmail.com> wrote:=
¿Isn= 9;t that fd2path, strcat and open?
Or am I misunderstandin= g something?

On Fri, Apr 5, 2024, 21:51 ron minnich <r= minnich@gmail.com> wrote:
=
One of the folks I worked with, when we pulled a big = chunk of plan 9 into akaros, commented that he had implemented openat on ak= aros. 

I don't want this to turn into a debat= e on the merits of openat; I am more curious: if you went to implement open= at on Plan 9, how would you go about it? I have a few ideas but I'm mor= e interested in your ideas.

Thanks
<= div id=3D"topicbox-footer" style=3D"margin:10px 0 0;border-top:1px solid #d= dd;border-color:rgba(0,0,0,.15);padding:7px 0;"> 9fans / 9fans / see discussions + participants + delivery&n= bsp;options Permalink
= --00000000000050fe0506155f6a93--