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 autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob1.topicbox.com (tb-ob1.topicbox.com [64.147.108.173]) by inbox.vuxu.org (Postfix) with ESMTP id 7F585215A2 for ; Fri, 5 Apr 2024 23:22:30 +0200 (CEST) Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 1E0C431167 for ; Fri, 5 Apr 2024 17:22:30 -0400 (EDT) (envelope-from bounce.mM0445ed55bee993d4cfbd3450.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 1ABE4125A945; Fri, 5 Apr 2024 17:22:30 -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=bUcZtnki 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=rminnich@gmail.com smtp.helo=mail-lf1-f51.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=1712352149; bh=i/+5ARsnlP/hVB5V Teuk3P5jRZOfV4+Fkww+rgVKEfs=; b=YdXLvpX5h2ThFyntDhIjCW3OVkH42Ner rgo74G1OBQ/G8sqMMpiPRDNn9Q3J/ztSZ/vZK2rJrtA7x8Dzz0gZ3kCPd1DLzymi o5y7xgQ+9tID01Fbve0MZyr9OVfmoMxa/8A5+f1oXG8brmvlKx8GkTwgkGr6U+bD Eu3lXtv+a3I= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1712352149; b=Jqn5XI6eN8clnH73oswFabkJp6xWmtdtnGlaH6vCse16srXrF+ tcwZmfJlEQ2+G0LzhKJjQ0nmQQDQ3m05+KV9VZS4TmHZFiM2OpsREvIpxuwvbFkn 9WtnzRpTiOwV21h5R5kV0NLIv9HBssen+CebrDItqKW7J0GO905kG3y08= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=bUcZtnki 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=rminnich@gmail.com smtp.helo=mail-lf1-f51.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=bUcZtnki 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.167.51 (mail-lf1-f51.google.com); spf=pass smtp.mailfrom=rminnich@gmail.com smtp.helo=mail-lf1-f51.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=glMGMmb4; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f51.google.com policy.ptr=mail-lf1-f51.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.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=1712352149; x=1712438549; bh=/XVjfMS5mhC38UIE2kPQTzwpx60ZbTW+ n8xXq3NM5p4=; b=Xt008LlWUIsZzOFw0ujgaPgNrvrqUlMWkMsFuAkm5K7GJoR/ Ybh4nYLwhr2SfaoGlNG4p+CEc3Rub9S5cXKYwgQLLeq8D3GtY/pRQHyIPDGehsBK wG6PTsKaxKAPBbig3mgDDLQdCGhur7qW7pYqs5e2M/5l96YZTADHFcnQjQ8= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id AD0C8125A506 for <9fans@9fans.net>; Fri, 5 Apr 2024 17:22:16 -0400 (EDT) (envelope-from rminnich@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 35A5A6BEFA3; Fri, 5 Apr 2024 17:22:16 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1712352136; b=hucfqu/Sosy0RpVdHR+/oHP/7lc0Vfy8YyJjINS+gLuV0UOtCS CqOvJiypayqqbmi2+c7eXsaB0otTKSaJh0yGFy6wrfx1NxpEKrmYDYdaj62QWJsY hulQ6zcMd0yOrfTZV8olXz+cwglgpGFcaDgTpYX8FSV9g/QZqKJ7ubnM+lSJABl3 rSLOs7MLqmKUtQEMaPYWd0wDhB7ZykO23GvmJPeMR2HQfvn2knT01eDUDhg4TYKH HB2wNm4qANwH8NEipxVyEB5/9XdIpIdcv37vjCkmYytdjk4DSJ7Y5neOC1tsOzAu mWqyeIFkGERLqX+iCjpPcZT7VEv+yawlm7PQ== 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=1712352136; bh=XCE/cJlGt3j1nfV/JWZ7tQr1q6vbaNghn2ypw4Tiglg=; b=TqXhJSiLtsig twjjRKdlaP5xQC/sPvMnoRhRF6RsPqFyrcnUHrzNQ+fZomxt9lbvCvJcY3KaW0Zb O/F6RmhuvC+S0S2Uuqu1CYZ84gBu3wt8e9UBsLPql9t22d/1YqYaMBr6jQqyJdjh F4fjMRDQqKAeRitBOADjNxqOjDu3YQ2Phn8g/6vcaCP5bmCONEU7QJWEsadFrQhr ey4hnl3GZjCGMFLxf+5UP2tn6WcfGoB8/GA1TI1C4mwGinu6b0HCIwGFqJJUCSE5 r4nfLjIONMh03g48IkQlUUuMmReH3FHhVUGId/n6WfxOkGjK9uTf5fWAJx34HGeO Hdk6bdmQqg== 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=bUcZtnki 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.167.51 (mail-lf1-f51.google.com); spf=pass smtp.mailfrom=rminnich@gmail.com smtp.helo=mail-lf1-f51.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=glMGMmb4; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f51.google.com policy.ptr=mail-lf1-f51.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.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: gggruggvucftvghtrhhoucdtuddrgedvledrudegtddgudeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgghfjg fhfffkuffvtgesrgdtreertddtjeenucfhrhhomheprhhonhcumhhinhhnihgthhcuoehr mhhinhhnihgthhesghhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhephfehteetue dvgedthffhieegfffhjeefjeeiteffffeiuddvhefhffduiedutdeunecuffhomhgrihhn pehtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrdduieejrdehudenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtdelrdekhedrudeijedr hedupdhhvghlohepmhgrihhlqdhlfhduqdhfhedurdhgohhoghhlvgdrtghomhdpmhgrih hlfhhrohhmpeeorhhmihhnnhhitghhsehgmhgrihhlrdgtohhmqedpnhgspghrtghpthht ohepuddprhgtphhtthhopeeolehfrghnsheslehfrghnshdrnhgvtheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'rminnich@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="rminnich@gmail.com"; helo=mail-lf1-f51.google.com; client-ip=209.85.167.51 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 17:22:16 -0400 (EDT) (envelope-from rminnich@gmail.com) Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-516c97ddcd1so3239696e87.2 for <9fans@9fans.net>; Fri, 05 Apr 2024 14:22:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712352134; x=1712956934; 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=XCE/cJlGt3j1nfV/JWZ7tQr1q6vbaNghn2ypw4Tiglg=; b=glMGMmb4VL+cjJ+hChst6FE+62VXRmffGvrcNDTRvrRuKYiZsBIYAfiIsOylrsL78R /hF264SdmNI0m3/DPxrCysb8/njmZcMQuo72dBmtuM43vJ9qjoD0mjqVXj46Mw4yHmy/ +WQjgk6EhgWSBdcYfC2XTHyD8/WxaXh0HCo+UPt9QP8jcd0mQVzf5PLIt8NsPIuClO8M cuGCX6KgnpIkD5TpMdNuqWecVNUpROmzX11eZE+OPMyc3ke+rBtjfvOHpQrxzzJPQaHL KU8nMtWez9AhvZOhOKdMENyxbztG7dsQikH++rGtYhbzknzF5zrtgrTv3LnPRqQ/JRTP Y7Lw== X-Gm-Message-State: AOJu0YzgMFxLA1XJHOKf4mrxTa7ttt3bR5Ezh19Om93lClph6JkPIZL9 FDvJR4xCL2Ek+Jx8SFilQs7lpTOFfuT1FO1pMoKS/dZAn/BSVHGAPVivT82kp1nXxGo9hWVeZon ilFr8RQTaxEX5+u985lxMnw6QF9IkKsrL X-Google-Smtp-Source: AGHT+IF6pzNxcZDagxBSPgjuT09gt+mYVgd3R98z0sIoHbHJkm27qG+kn1apjnjo+f4q73VQYkXnJcPmByN8apFcl/A= X-Received: by 2002:a19:9155:0:b0:516:ce40:14a6 with SMTP id y21-20020a199155000000b00516ce4014a6mr1466436lfj.1.1712352133703; Fri, 05 Apr 2024 14:22:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ron minnich Date: Fri, 5 Apr 2024 14:22:00 -0700 Message-ID: Subject: Re: [9fans] openat() To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000000000000a8f1780615600c06 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 970bd994-f392-11ee-9b53-8b4578aaf474 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNjc1ZTczN2U3NzZlNWE5Yy1NMDQ0NWVkNTViZWU5OTNkNGNmYmQz?= =?UTF-8?B?NDUwPg==?= 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:M0445ed55bee993d4cfbd3450:1:Wlv37e5NVnOxsZB16CTF1wgPBzS-ioWRcQoMPwaBhlQ --000000000000a8f1780615600c06 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable not so much what I want, I'm curious about ideas people have about implementing it that I would not think of. On Fri, Apr 5, 2024 at 1:38=E2=80=AFPM Gorka Guardiola w= rote: > 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-M0445e= d55bee993d4cfbd3450 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --000000000000a8f1780615600c06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
not so much what I want, I'm curious about= ideas people have about implementing it that I would not think of.
On Fri= , Apr 5, 2024 at 1:38 PM Gorka Guardiola <paurea@gmail.com> wrote:
Hmm sorry. Now I se= e 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 p= rovides the guarantees you want.

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


On Fri, Apr 5, 202= 4, 22:12 Gorka Guardiola <paurea@gmail.com> wrote:
¿Isn&= #39;t that fd2path, strcat and open?
Or am I misunderstand= ing something?

On Fri, Apr 5, 2024, 21:51 ron minnich <rminnich@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 imp= lemented openat on akaros. 

I don't want this= to turn into a debate on the merits of openat; I am more curious: if you w= ent 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
= --000000000000a8f1780615600c06--