[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/2] linux-user: Add support for SCM_CREDENTIALS.
From: |
Huw Davies |
Subject: |
[Qemu-devel] [PULL 2/2] linux-user: Add support for SCM_CREDENTIALS. |
Date: |
Fri, 25 Apr 2014 13:19:39 +0100 |
Signed-off-by: Huw Davies <address@hidden>
---
linux-user/syscall.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index cf4372e..e9ae9c5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -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;
}
--
1.8.0