From: Hans Reiser <reiser@namesys.com>
To: Paul Wagland <paul@kungfoocoder.org>
Cc: Nikita Danilov <nikita@clusterfs.com>,
evilninja <evilninja@gmx.net>,
reiserfs-list@namesys.com
Subject: Re: EACCESS vs ENOENT for nonexistent files-within-files
Date: Wed, 15 Sep 2004 07:04:11 -0700 [thread overview]
Message-ID: <41484BDB.7060007@namesys.com> (raw)
In-Reply-To: <20040915151803.vl9es48kkosg4k88@www.wagland.net>
Paul Wagland wrote:
>On Wed 15 Sep 2004 01:41:40 PM CEST, Nikita Danilov wrote:
>
>
>>evilninja writes:
>> > evil@prinz:/tmp$ touch file.txt
>> > evil@prinz:/tmp$ cat file.txt/.htaccess
>> > cat: file.txt/.htaccess: Not a directory
>> > evil@prinz:/tmp$ chmod +x file.txt
>> > evil@prinz:/tmp$ cat file.txt/.htaccess
>> > cat: file.txt/.htaccess: Not a directory
>>
>>But in reiser4 file.txt _is_ a directory. That's the whole point: it
>>contains other objects inside.
>>
>>
>
>[...]
>
>
>
>>This is very simple: do be able to do a lookup one needs +x bit. No +x
>>bit--no lookup. No lookup---impossible to determine exists .htaccess or
>>not.
>>
>>Permission bits determine what operations are possible on
>>object. Letting user to know that .htaccess doesn't exist while
>>permission bits on parent explicitly disable lookups is a security
>>hole.
>>
>>
>
>I'm sorry to be so blunt on this... but this is just plain dumb. Really. For as
>long as I have known, an executable bit on a file means that you can "execute"
>that file. Now you try to say, yeah, that, but as well, it means whether or
>not you can access the files attributes?
>
>Seriously. What were you thinking?
>
>Does this mean (for example) that on a sgid file, only the group can see the
>attributes? Even if the file is world readable? Does this really make sense?
>
>Here is the rub... you are breaking the rules of "one object - one purpose".
>Surely this is not how it is meant to be? On a file, the execute bit is meant
>for "can I run this file". On a dir, this bit is for "Can I see inside this
>directory". They do not match!
>
>Paul.
>
>
Separate bits are needed for the separate purposes. Nikita, can you
remind what implementation details delay separating the bits? I thought
it was already done, sigh....
Hans
next prev parent reply other threads:[~2004-09-15 14:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-15 13:18 EACCESS vs ENOENT for nonexistent files-within-files Paul Wagland
2004-09-15 14:04 ` Hans Reiser [this message]
2004-09-15 14:16 ` Paul Wagland
2004-09-15 15:12 ` Nikita Danilov
2004-09-15 14:45 ` Nikita Danilov
2004-09-15 16:15 ` daniel.poelzleithner
2004-09-15 22:40 ` Hans Reiser
2004-09-16 19:55 ` Toby Dickenson
[not found] ` <2f9ccaae04091615395cfd0730@mail.gmail.com>
2004-09-16 22:40 ` Perry Kundert
-- strict thread matches above, loose matches on Subject: below --
2004-09-13 14:06 Joe Orton
2004-09-13 14:25 ` Wayne Scott
2004-09-13 15:21 ` Michael Weissenbacher
2004-09-13 16:13 ` Alex Zarochentsev
2004-09-13 18:52 ` Joe Orton
2004-09-13 19:44 ` Nikita Danilov
2004-09-15 10:55 ` evilninja
2004-09-15 11:41 ` Nikita Danilov
2004-09-16 0:00 ` evilninja
2004-09-13 20:58 ` Alex Zarochentsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41484BDB.7060007@namesys.com \
--to=reiser@namesys.com \
--cc=evilninja@gmx.net \
--cc=nikita@clusterfs.com \
--cc=paul@kungfoocoder.org \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.