CRED: Wrap task credential accesses in the filesystem subsystem
[linux-2.6-block.git] / fs / fcntl.c
index ac4f7db9f13452790e4d41daa8e6fc9633506259..bf049a805e590a0223c4c41b7c0ee7cb46f75b38 100644 (file)
@@ -211,7 +211,7 @@ int __f_setown(struct file *filp, struct pid *pid, enum pid_type type,
        if (err)
                return err;
 
-       f_modown(filp, pid, type, current->uid, current->euid, force);
+       f_modown(filp, pid, type, current_uid(), current_euid(), force);
        return 0;
 }
 EXPORT_SYMBOL(__f_setown);