CRED: Wrap task credential accesses in the filesystem subsystem
[deliverable/linux.git] / fs / namespace.c
index cce46702d33c98f6d9e1669ac10f4d6c23be82c2..d8bc2c4704a50259b524d997a47d30bf8555c2b3 100644 (file)
@@ -1176,7 +1176,7 @@ static int mount_is_safe(struct path *path)
        if (S_ISLNK(path->dentry->d_inode->i_mode))
                return -EPERM;
        if (path->dentry->d_inode->i_mode & S_ISVTX) {
-               if (current->uid != path->dentry->d_inode->i_uid)
+               if (current_uid() != path->dentry->d_inode->i_uid)
                        return -EPERM;
        }
        if (inode_permission(path->dentry->d_inode, MAY_WRITE))
This page took 0.025816 seconds and 5 git commands to generate.