From: Jamie Lokier <jamie@shareable.org>
To: Ulrich Windl <Ulrich.Windl@RZ.Uni-Regensburg.DE>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.2: "filp->f_mode & 2..."
Date: Fri, 13 Feb 2004 03:32:18 +0000 [thread overview]
Message-ID: <20040213033218.GJ25499@mail.shareable.org> (raw)
In-Reply-To: <402B4FB2.mailxG23119XFU@pc5234.klinik.uni-regensburg.de>
Ulrich Windl wrote:
> filp->f_mode & 2 || permission(filp->f_dentry->d_inode,2,NULL)
>
> It's obvious to some, likely for others that "2" there really stands for
> "002", the good old UNIX write permission.
That's FMODE_WRITE (= 2). It isn't related at all to the Unix write
permission of 002, as you'll notice FMODE_READ is 1, not 4.
-- Jamie
prev parent reply other threads:[~2004-02-13 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-12 10:04 Ulrich Windl
2004-02-12 11:13 ` viro
2004-02-13 3:32 ` Jamie Lokier [this message]
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=20040213033218.GJ25499@mail.shareable.org \
--to=jamie@shareable.org \
--cc=Ulrich.Windl@RZ.Uni-Regensburg.DE \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®