CRED: Wrap task credential accesses in the AFFS filesystem
[linux-2.6.git] / fs / affs / inode.c
index a13b334..415d9c6 100644 (file)
@@ -293,8 +293,8 @@ affs_new_inode(struct inode *dir)
        mark_buffer_dirty_inode(bh, inode);
        affs_brelse(bh);
 
-       inode->i_uid     = current->fsuid;
-       inode->i_gid     = current->fsgid;
+       inode->i_uid     = current_fsuid();
+       inode->i_gid     = current_fsgid();
        inode->i_ino     = block;
        inode->i_nlink   = 1;
        inode->i_mtime   = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC;