提交 4bc29756 编写于 作者: H Huw Davies 提交者: Riku Voipio

linux-user: Add support for SCM_CREDENTIALS.

Signed-off-by: NHuw Davies <huw@codeweavers.com>
Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
上级 52b65494
......@@ -1269,6 +1269,17 @@ static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh,
target_tv->tv_usec = tswapal(tv->tv_usec);
break;
}
case SCM_CREDENTIALS:
{
struct ucred *cred = (struct ucred *)data;
struct target_ucred *target_cred =
(struct target_ucred *)target_data;
__put_user(cred->pid, &target_cred->pid);
__put_user(cred->uid, &target_cred->uid);
__put_user(cred->gid, &target_cred->gid);
break;
}
default:
goto unimplemented;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册