From: Krzysztof Benedyczak <golbi@mat.uni.torun.pl>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel@vger.kernel.org,
Michael Kerrisk <michael.kerrisk@gmx.net>,
Michal Wronski <michal.wronski@gmail.com>
Subject: Re: [PATCH] umask in POSIX message queues
Date: Tue, 27 Sep 2005 22:21:36 +0200 (CEST) [thread overview]
Message-ID: <Pine.GSO.4.58.0509272216370.29468@Juliusz> (raw)
In-Reply-To: <Pine.LNX.4.58.0509270754290.3308@g5.osdl.org>
On Tue, 27 Sep 2005, Linus Torvalds wrote:
> On Tue, 27 Sep 2005, Krzysztof Benedyczak wrote:
> >
> > After rereading it I think that the better place for the line setting
> > umask is do_create() function as it will be on the same level as
> > open_namei(). I hope this change will clarify things.
> >
> > If this make sense I'll send a patch.
>
> Yes, that makes more sense.
>
> Please do send a tested patch,
Setting umask moved to do_create and tested once again.
Krzysiek
Signed-off-by: Krzysztof Benedyczak <golbi@mat.uni.torun.pl>
--- linux-2.6.14-rc2/ipc/mqueue.c.orig 2005-09-25 18:52:29.000000000 +0200
+++ linux-2.6.14-rc2/ipc/mqueue.c 2005-09-27 22:12:41.692903624 +0200
@@ -611,6 +611,7 @@ static struct file *do_create(struct den
dentry->d_fsdata = &attr;
}
+ mode &= ~current->fs->umask;
ret = vfs_create(dir->d_inode, dentry, mode, NULL);
dentry->d_fsdata = NULL;
if (ret)
prev parent reply other threads:[~2005-09-27 20:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-26 10:44 Krzysztof Benedyczak
2005-09-27 1:29 ` Linus Torvalds
2005-09-27 11:13 ` Krzysztof Benedyczak
2005-09-27 14:55 ` Linus Torvalds
2005-09-27 20:21 ` Krzysztof Benedyczak [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=Pine.GSO.4.58.0509272216370.29468@Juliusz \
--to=golbi@mat.uni.torun.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.kerrisk@gmx.net \
--cc=michal.wronski@gmail.com \
--cc=torvalds@osdl.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®