From: jfc@mit.edu (John F Carr)
Subject: Re: stat oddities
Date: 21 Nov 2001 16:27:29 GMT [thread overview]
Message-ID: <3bfbd5f1$0$3959$b45e6eb0@senator-bedfellow.mit.edu> (raw)
In-Reply-To: 3BFBCAA9.368C1718@sql.de
In article <3BFBCAA9.368C1718@sql.de>, Joerg Bruehe <joerg@sql.de> wrote:
>Hi!
>
>Matteo Catanese wrote:
>>
>> Tru64 5.1
>>
>> software:leonardo ~ > mkdir foo
>> software:leonardo ~ > chmod 000 foo/
>> software:leonardo ~ > ./stat foo/.
>> foo/.:
>> [ ... output deleted - J.B. ]
>>
>> Since 'foo' does not give read and execute permissions to the uid that
>> executes stat(), it therefore follows that a stat of 'foo/.' should FAIL:
>
>Given the requirement that "." is a link to the directory itself,
>the "stat" program might have the cleverness to translate
>'foo/.' to 'foo' before doing the work.
stat won't do that sort of transformation, but the kernel pathname
lookup probably isn't written to check permission for lookup of ".".
--
John Carr (jfc@mit.edu)
prev parent reply other threads:[~2001-11-21 16:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-20 15:27 stat oddities Matteo Catanese
2001-11-21 15:39 ` Joerg Bruehe
2001-11-21 16:27 ` John F Carr [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox