From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22809 invoked from network); 4 Oct 2023 12:20:41 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 4 Oct 2023 12:20:41 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id B30A92BEDA for ; Wed, 4 Oct 2023 08:20:39 -0400 (EDT) (envelope-from bounce.mMd097c18fd19852d1e89a068c.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id AFAA72BCEF27; Wed, 4 Oct 2023 08:20:39 -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=fcwGUeE1 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=23hiro@gmail.com smtp.helo=mail-ot1-f49.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:in-reply-to:references: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=1696422039; bh=mWesOENEXa6vWA5q fD8B8O3uyO7n4BfJkUipiCsQyJY=; b=jIspCX2pVaaSK42Qyw2a1uCqt9Ak9lDL 39/VJqv3PKsDUnANZPjwyDOPm3QZiaIHmVqBawh9OcbkfVfTgBfM9D+hNDLeu/x9 fi1Vg5UGhjphi2EcVQW4q1G79r7QzQw8+kurqrOPv+xeugkptd+874wOe8wF9hO7 khgk03Wt7Qw= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1696422039; b=D2ulbgexlwWHlJr0vKQNdRM/8bZVUndr4O8Mh9oUzqZPNUj7DW OItc3FRcBYdOlz/2xqUwtluiNRCRXJQLGTLIUe/0GDK0Kz1p1k5T1krREwz4hsV6 TSVD1oX0Z+TDOqY+iOZEMeyduoCoHzTd30kzei4gZmhFZdHhb9TmR+0nQ= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=fcwGUeE1 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=23hiro@gmail.com smtp.helo=mail-ot1-f49.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-mx0.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=fcwGUeE1 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.210.49 (mail-ot1-f49.google.com); spf=pass smtp.mailfrom=23hiro@gmail.com smtp.helo=mail-ot1-f49.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=bmLq07Lv; x-me-sender=none; x-ptr=pass smtp.helo=mail-ot1-f49.google.com policy.ptr=mail-ot1-f49.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,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: alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.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:in-reply-to:references: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=1696422039; x=1696508439; bh=mWesOENEXa6vWA5qfD8B8O3uyO7n4BfJ kUipiCsQyJY=; b=l+4DN5UqSEYl22MM8HhcGJhl2q30To6Qvhr6dUYEixm6CVyj 9jmPskoluYhnw+QVY17rORyP5EVRKInwdR9jbut5FQXH3dIZHH5yhxm5Xql7heEk LjkYDAcL07uunoqeNHTZSLg1BWY63r74gCKBMXidPZjTDwqc9XuRvnafcMQ= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 18EC92BCEAE3 for <9fans@9fans.net>; Wed, 4 Oct 2023 08:20:29 -0400 (EDT) (envelope-from 23hiro@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id CE92FBBAA19; Wed, 4 Oct 2023 08:20:29 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1696422029; b=v2DG3n+pzBhkIhP/JBFpPc0rjOBHlxgSx/t+6T+zLfIPOUM76a lMMMDw4IIO7yd8FO1vD+hOLb8FXK5ke1xdvHw4xE6DUPVkhr53hrDucnydPEq11k PmOcsfHNgcnMMnJeeCLCllShNN+kDhHlKcVI5ArBzXN3sXSBeL2XnfnO8ci93Zqc uBQLNQPXwH3PMu1hWT7DUpU/XJ9+ATd0GVQvnRRTUymyvxSjZrIxa2LnVMQES7Gy vr3mtfiO6BZAaZnjdPEiEIIcxdGN3B1ftUjMjiAd8hSftJvDlPuJapT8CTBG5lSP rJIkJFTpyH7EnWtxokjX5zZKLxeU7QXLf7bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=arcseal; t=1696422029; bh=m2WCd7RWkaRYArU137pw9TkFQeoll0TI+cRP/hvOcAc=; b=d46VnywBX3g5 Ok0J02OtQgtM6snjCURrWA6SYJ+quMz96C28qMi78xcNFcmqXmv2GQ1qoCD2Nuyz ACZ+46OuPasECnTitVift+Ushr4xjEaHDaJp+rrItMNyDWfPLy97PrbgKU90RJzT SOi14LL/qsjZNv9W4ZG0g7SvFuNkN7fgEXHckemmQD5UlOg7XOPT4IDV5ioQKvCN VXaFmXfTdy9gv8xtshgs/R7O987NdEI6mNccX2OSvhvBLZG3bY2g/8dW/c4+MHRy svUGwC1TrjnOdzhh95+MfqFw+EVsqZVUFLKFIKnfV7pD8RW2HspBWkpdWi7+kU9G C1h0b+LxRg== ARC-Authentication-Results: i=1; tb-mx0.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=fcwGUeE1 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.210.49 (mail-ot1-f49.google.com); spf=pass smtp.mailfrom=23hiro@gmail.com smtp.helo=mail-ot1-f49.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=bmLq07Lv; x-me-sender=none; x-ptr=pass smtp.helo=mail-ot1-f49.google.com policy.ptr=mail-ot1-f49.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,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: alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.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: gggruggvucftvghtrhhoucdtuddrgedvkedrgedvgdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepjghfhfffkf fuvfgtsehttdertddttdejnecuhfhrohhmpehhihhrohcuoedvfehhihhrohesghhmrghi lhdrtghomheqnecuggftrfgrthhtvghrnheptdevkeevffdvieeiteeuvdfghfdukefhle dtveehgfefkeelffehleehtddviefgnecuffhomhgrihhnpehtohhpihgtsghogidrtgho mhenucfkphepvddtledrkeehrddvuddtrdegleenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepihhnvghtpedvtdelrdekhedrvddutddrgeelpdhhvghlohepmhgrihhl qdhothduqdhfgeelrdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeovdefhhhirh hosehgmhgrihhlrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use '23hiro@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="23hiro@gmail.com"; helo=mail-ot1-f49.google.com; client-ip=209.85.210.49 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 4 Oct 2023 08:20:27 -0400 (EDT) (envelope-from 23hiro@gmail.com) Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-6bc9353be9bso330257a34.1 for <9fans@9fans.net>; Wed, 04 Oct 2023 05:20:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696422027; x=1697026827; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m2WCd7RWkaRYArU137pw9TkFQeoll0TI+cRP/hvOcAc=; b=bmLq07Lvkm0LVqzttHZRzPVkHWqqUOmpFwlONdtbQXan5Dy+ZErmgqPbynnBLFMZaa NVnE2nzd3EyAzXgCUFIv0SQi24F2lX9vDgISzKrqhQlbCBPjmAJXxL4eVvpNCo53ANir qjA1KJVnUTEDcP2AEcJsZKYBIDx3IozJBY4DMQrC+9tYyZV7gn3dgsJWfnWj9VyTJOAf d/vjK7ETabxMNIg4rPkXLgcNKyH3NIvOxzNVA6rrvM0HSsR2mFk02pa3wlIRRqepTRqm MHV1gUJxrKU+owjVGIgrtQQg9bc9dgoR1Hk0iIFb6GS+4w5iiQ6BqflN8cL4ipUhx/lN RxWQ== X-Gm-Message-State: AOJu0Yzuid+Ajiqvo55C3oHD5K02hiaxS8sK1Rzj4tzNH5q02EZtQ+mN HqcgFrK+oi7jwiPAfHxtfaR6vJ2nW2fj6Ykhj/Ay4+dZ X-Google-Smtp-Source: AGHT+IEf+OnqlOQydfIjZ1M2BFh+g+NQZ1MfysUFMco3itOZ0MR1+rVqp1vVjcn2QeW1ri9+e9QokuoEPYusSq5T8hg= X-Received: by 2002:a05:6358:e908:b0:147:47f2:2d54 with SMTP id gk8-20020a056358e90800b0014747f22d54mr1852073rwb.0.1696422026753; Wed, 04 Oct 2023 05:20:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:7300:5403:b0:b9:cf17:60ea with HTTP; Wed, 4 Oct 2023 05:20:25 -0700 (PDT) In-Reply-To: References: From: hiro <23hiro@gmail.com> Date: Wed, 4 Oct 2023 14:20:25 +0200 Message-ID: Subject: Re: [9fans] fd and /srv filesystem To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 6afd95a4-62b0-11ee-a398-020f078c7b06 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmFhMjU1NGE5Yjc0YzQ3OS1NZDA5N2MxOGZkMTk4NTJkMWU4OWEw?= =?UTF-8?B?NjhjPg==?= 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: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Md097c18fd19852d1e89a068c:1:bZU0Lsz05KEmx-Wa1zGNE0uTXuQiKepYAeDiXzpudBY file descriptors describe to the kernel which of the files you previously open()'ed (a syscall) you want to operator on. it's not about security: if you want to operate on a file that another process might have opened before, you have to be careful that the other process isn't writing to the same location in the file at the same time. the kernel also keeps offsets for you. if you share FDs between multiple processes you might want some synchronisation like locking. On 10/4/23, Chris McGee wrote: > Hi All, >=20 > I was thinking about file descriptors in the context of Plan 9. On Unix an > fd is generally only usable by the current process, and child ones through > a fork with some special incantation if one wants to communicate one over= a > domain socket. This is possibly for security reasons, avoiding other user= s' > processes from trying to guess the fd of a critical file. >=20 > It's common practice in Plan 9 to post an fd (sometimes via a pipe) from > one process to the /srv filesystem so that others can discover it and open > a comms channel. Does the kernel transform the fd into something when > posted to /srv so that it can be consumed by any other process in the > system? >=20 > Thanks, > Chris ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfaa2554a9b74c479-Md097c= 18fd19852d1e89a068c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription