t->from = thread;
else
t->from = NULL;
- t->sender_euid = proc->tsk->euid;
+ t->sender_euid = proc->tsk->cred->euid;
t->to_proc = target_proc;
t->to_thread = target_thread;
t->code = tr->code;
goto err;
}
if (binder_context_mgr_uid != -1) {
- if (binder_context_mgr_uid != current->euid) {
+ if (binder_context_mgr_uid != current->cred->euid) {
printk(KERN_ERR "binder: BINDER_SET_"
"CONTEXT_MGR bad uid %d != %d\n",
- current->euid,
+ current->cred->euid,
binder_context_mgr_uid);
ret = -EPERM;
goto err;
}
} else
- binder_context_mgr_uid = current->euid;
+ binder_context_mgr_uid = current->cred->euid;
binder_context_mgr_node = binder_new_node(proc, NULL, NULL);
if (binder_context_mgr_node == NULL) {
ret = -ENOMEM;