mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
linux-user: Add support for SCM_CREDENTIALS.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
52b6549442
commit
4bc2975698
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user