From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id D929D283FA72 for <9fans@9fans.net>; Sun, 7 Jun 2020 22:13:18 -0400 (EDT) (envelope-from charles.forsyth@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id E26F7A57D24; Sun, 7 Jun 2020 22:13:18 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1591582398; b=bCSJlJ/LO29Eo6dSSl+XP3lJ9CxHgf7ji2tDEWpGW5iooNhrOp m9EIYQLhMzvczw/hTfcsgNWpepvLJaMNjD0pdeZm34WmVXdQ2fGkq3UR/USIAuto Qay4oPP8ellgbaP9UU3UAcQEs5ruLiKhKVRpcKQ3sHmdtiJFtIxgE42pmUxIFJfp +KVPLzrFBR3eqLYTus1otUPwX8VTPe/cdTNSbpeJYXFjSxVi5wDPVK0SqhuA9qtX sPWhfSZ2lHZ85Tr4pkhUmPbbDKAXNL2e8j6GHqJSXsnntGBXSDtfDKoSfBE4jwkD uZBTvdVGB8K2O3ecYDzIRC7nj22udKB7VY1w== 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:cc:content-type; s=arcseal; t=1591582398; bh=DcPMjrc/4amNLAMyBIyN+H3lahh2oj2PT5xIn0UmkuI=; b=HSRVGpQHX8x+ rKu74+5gXEKdbEx9KxzAh9TpV/T1cOA7AtHtptf2oC/4SNwGqArlWXU6h1szIPdW c+xXYDoeX8h0vbgmDLpV+ozFIrboTFK7qI28YT8qRNvnVJoNK9qL+TQSF+KbpTGO BzewLvkVehtn380vGGUcKtNi4pOho+kSjOU+Kfsi3SWC/qRt+obtn5BxQsUB9Gi8 wGNje2J6V2GqaybuKViyvGuJpts1JPFimr9mLUrWFwhUviD4xyWvBhIO6DLaI69E 6jvpFJjIDSUhR2z2fJSDWbJXE1oM+5JkUf+y6JrlkSPdcv7A2a4EuQIvM9CrdvW2 c/NWtPRbjQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=r+D64Ftd header.a=rsa-sha256 header.s=20161025 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.217.53 (mail-vs1-f53.google.com); spf=pass smtp.mailfrom=charles.forsyth@gmail.com smtp.helo=mail-vs1-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=J5dgDJ07; x-ptr=pass smtp.helo=mail-vs1-f53.google.com policy.ptr=mail-vs1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,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); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,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); 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 Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=r+D64Ftd header.a=rsa-sha256 header.s=20161025 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.217.53 (mail-vs1-f53.google.com); spf=pass smtp.mailfrom=charles.forsyth@gmail.com smtp.helo=mail-vs1-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=J5dgDJ07; x-ptr=pass smtp.helo=mail-vs1-f53.google.com policy.ptr=mail-vs1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,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); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,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); 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: gggruggvucftvghtrhhoucdtuddrgeduhedrudehtddgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf ffkffuvfgtsegrtderredttdejnecuhfhrohhmpeevhhgrrhhlvghsucfhohhrshihthhh uceotghhrghrlhgvshdrfhhorhhshihthhesghhmrghilhdrtghomheqnecuggftrfgrth htvghrnhepfeeftefhvefhveetjedthfeifeeiveehjeelvdegvedvgeelgfevtdelgfeg ieeknecuffhomhgrihhnpehtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrd dvudejrdehfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedv tdelrdekhedrvddujedrheefpdhhvghlohepmhgrihhlqdhvshduqdhfheefrdhgohhogh hlvgdrtghomhdpmhgrihhlfhhrohhmpeeotghhrghrlhgvshdrfhhorhhshihthhesghhm rghilhdrtghomhequcfukfgkgfepiedufeef X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'charles.forsyth@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="charles.forsyth@gmail.com"; helo=mail-vs1-f53.google.com; client-ip=209.85.217.53 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.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>; Sun, 7 Jun 2020 22:13:18 -0400 (EDT) (envelope-from charles.forsyth@gmail.com) Received: by mail-vs1-f53.google.com with SMTP id r11so8876553vsj.5 for <9fans@9fans.net>; Sun, 07 Jun 2020 19:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DcPMjrc/4amNLAMyBIyN+H3lahh2oj2PT5xIn0UmkuI=; b=r+D64FtdsucH59qjzrBCnceZqLVM2+QGWcscSZTHQAVvLnMmalOx1kb3Hnk8cY0eJs uY4arWItsJEF0a8IRqm49EtvejYxAuUmwja9fHpO1AJr1XVs8FNu6ObLfnzE7iJWwGUZ Qz9QnjjhvgUg7zmGa1S5NS1idLtyUlouSsb0lFF0livqyex0i52L4xroxewp+p5lIwzo /INn0oZE2t24tiI0TpJVvq44tWIhXIudaJdgyW6xcd0gU4HF+Qk0KDDXsT34afYsi08F Q6tsOqyho6BJekbQI7qiUiySK28uOnydpBfh7F94ZYgHmAV2c7llKHpX3uhi+UMr9iHV dJzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DcPMjrc/4amNLAMyBIyN+H3lahh2oj2PT5xIn0UmkuI=; b=J5dgDJ07eKygbYSnvVufRcP1oIBVYeTtZXuXqfDoGGGfJbuPXARVBSSds3feoxLz0k FW+CfHTGa4JsoUTtWZXSHFfRLy8CxP4p3Xmao3dmOt+LJM/JPTvh/EnpR9+0ZM0HPoyz x0TgRJlrfX8q7IS1Qz69+HaL6TpqC1crM9g3DiDnvzfhQuzPfUmRUrW6W9aOw7O0QQwf X8RgLQ6yT8gGIICm25XSgtQNzRtm6qul5hMzbvFn2Mfwl5n9Jmu0isswhd6KTy+dMyaI fDo3Ylvgk1LwboiiEFQLm6H1UaMEMC18bDCwdfPjtqoR9lZj6K49qKXzkkPpih4PM4B2 lGTw== X-Gm-Message-State: AOAM533ZdqMr94u64SyaO5aTOQqcZ4XeKjXheb0DXNRTHwUt0YIf1xMU X4yCUufWxMNBhDgnAjzTFD7tTekm99MxGByJmknnTmJ+ngM= X-Google-Smtp-Source: ABdhPJxm32SGc3USVgXQ3rS9UplIs6BzWqhDE0/4bhY0ofceyxbsRqWE18iKfEBu1Skk7b43SwKTrCiZQMkHEm4eiao= X-Received: by 2002:a67:eb95:: with SMTP id e21mr4261115vso.193.1591582397932; Sun, 07 Jun 2020 19:13:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Charles Forsyth Date: Mon, 8 Jun 2020 03:13:06 +0100 Message-ID: Subject: Re: [9fans] `test -x` returns wrong results for directories To: 9fans <9fans@9fans.net> Cc: Richard Miller <9fans@hamnavoe.com> Content-Type: multipart/alternative; boundary="00000000000075a87005a78927a9" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: a131674e-a92d-11ea-90af-a903eded39dd --00000000000075a87005a78927a9 Content-Type: text/plain; charset="UTF-8" > > "search" is exactly the wrong word for what this bit does, because if you > don't have "search" permission, the one thing you can still do is look at > the names. in ramfs, but that's a bug that no-one had noticed On Mon, Jun 8, 2020 at 3:05 AM wrote: > >>> So, cd'ing into a directory withut +x leads > >>> to an inescapabler trap. > >> ... > >> fossil just moved up another notch in my estimation because directory > search restriction is so broken. > > > > ori@eigenstate.org, what version of fossil were your experiments done > on? > > My observations are different: > > > > term% mkdir -p d/a/b > > term% touch d/x > > term% chmod -x d > > term% ls -ld d > > d-rw-r--r-- M 12 miller miller 0 Jun 7 16:38 d > > term% cd d > > term% cd .. > > term% ls d > > d/a > > d/x > > term% > > > > No trap that I can see here. > > cwfs, but -- yeah, it's enforced inconsistently across > different file systems. (of course). > > > ------------------------------------------ > 9fans: 9fans > Permalink: > https://9fans.topicbox.com/groups/9fans/Tdd7a9b1b32d01f54-M9cf36356f4d9761339774af6 > Delivery options: https://9fans.topicbox.com/groups/9fans/subscription > --00000000000075a87005a78927a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"search" is exactly the wrong word for w= hat this bit does, because if you don't have "search" permiss= ion, the one thing you can still do is look at the names.

in ramfs, but that's a bug that no-one had notice= d=C2=A0

On Mon, Jun 8, 2020 at 3:05 AM <ori@eigenstate.org> wrote:
>>> So, cd'ing into a directory w= ithut +x leads
>>> to an inescapabler trap.
>> ...
>> fossil just moved up another notch in my estimation because direct= ory search restriction is so broken.
>
> ori@eigenstate= .org, what version of fossil were your experiments done on?
> My observations are different:
>
> term% mkdir -p d/a/b
> term% touch d/x
> term% chmod -x d
> term% ls -ld d
> d-rw-r--r-- M 12 miller miller 0 Jun=C2=A0 7 16:38 d
> term% cd d
> term% cd ..
> term% ls d
> d/a
> d/x
> term%
>
> No trap that I can see here.

cwfs, but -- yeah, it's enforced inconsistently across
different file systems. (of course).


------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/Tdd7a9b1b32d01f54-M9cf36356f4d9761339774a= f6
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription
--00000000000075a87005a78927a9--