Re: [Qemu-devel] [PATCH] linux-user: Add naive implementation of capget() syscall

2012-09-25 Thread Karol Lewandowski
gt;> + if (!(p = lock_user(VERIFY_WRITE, arg1, sizeof(struct >> __user_cap_header_struct), 0))) >> + goto efault; > > Here and below you also assume that host structure size matches guest. Hmm, all the fields in these structures are __u32 but one. Will fix

[Qemu-devel] [PATCH] linux-user: Add naive implementation of capget() syscall

2012-09-19 Thread Karol Lewandowski
() alone makes it possible to set posix file capabilities under qemu (using setcap(8)). Signed-off-by: Karol Lewandowski --- linux-user/syscall.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6257a04