mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
[PATCH] Make POSIX message queue sys_mq_open() honor umask
We ignored umask when creating new queues via mq_open (when creating with open() on mqueue fs it is ok of course). According to the specification this a bug. This trivial patch fixes this. Signed-off-by: Krzysztof Benedyczak <golbi@mat.uni.torun.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5c1f4cac6f
commit
5917583978
1 changed files with 1 additions and 0 deletions
|
@ -611,6 +611,7 @@ static struct file *do_create(struct dentry *dir, struct dentry *dentry,
|
|||
dentry->d_fsdata = &attr;
|
||||
}
|
||||
|
||||
mode &= ~current->fs->umask;
|
||||
ret = vfs_create(dir->d_inode, dentry, mode, NULL);
|
||||
dentry->d_fsdata = NULL;
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in a new issue