| From | David Howells <> | Subject | [PATCH 10/52] CRED: Pass credentials down to ext4 inode allocator | Date | Fri, 12 Oct 2007 17:06:10 +0100 |
| |
Pass credentials down to the ext4 inode allocator.
Signed-off-by: David Howells <dhowells@redhat.com> ---
fs/ext4/ialloc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 937610d..d5626be 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -550,7 +550,7 @@ got: percpu_counter_inc(&sbi->s_dirs_counter); sb->s_dirt = 1; - inode->i_uid = current->cred->uid; + inode->i_uid = cred->uid; if (test_opt (sb, GRPID)) inode->i_gid = dir->i_gid; else if (dir->i_mode & S_ISGID) { @@ -558,7 +558,7 @@ got: if (S_ISDIR(mode)) mode |= S_ISGID; } else - inode->i_gid = current->cred->gid; + inode->i_gid = cred->gid; inode->i_mode = mode; inode->i_ino = ino; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|