* [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset
@ 2014-03-17 11:55 riku.voipio
2014-03-17 20:17 ` Andreas Färber
0 siblings, 1 reply; 3+ messages in thread
From: riku.voipio @ 2014-03-17 11:55 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Riku Voipio
From: Riku Voipio <riku.voipio@linaro.org>
some people get numerous unimplemented capget/capset warnings. Since qemu
linux-user is not secure to begin with, just skip the system call
warning for now. Proper capset/capget to be added in Qemu 2.1
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
linux-user/syscall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e404a32..4bfa3db 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7677,9 +7677,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
unlock_user(p, arg1, ret);
break;
case TARGET_NR_capget:
- goto unimplemented;
+ goto unimplemented_nowarn;
case TARGET_NR_capset:
- goto unimplemented;
+ goto unimplemented_nowarn;
case TARGET_NR_sigaltstack:
#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \
defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset
2014-03-17 11:55 [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset riku.voipio
@ 2014-03-17 20:17 ` Andreas Färber
2014-03-18 6:22 ` Riku Voipio
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Färber @ 2014-03-17 20:17 UTC (permalink / raw)
To: riku.voipio, qemu-devel; +Cc: peter.maydell, Alexander Graf
Am 17.03.2014 12:55, schrieb riku.voipio@linaro.org:
> From: Riku Voipio <riku.voipio@linaro.org>
>
> some people get numerous unimplemented capget/capset warnings. Since qemu
> linux-user is not secure to begin with, just skip the system call
> warning for now. Proper capset/capget to be added in Qemu 2.1
"QEMU". Drop "qemu" above?
>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Since Peter specifically mentioned to you that this is what the SUSE
tree does, it would be only fair to attribute this change to Alex as
patch author in some way, be it Signed-off-by, From or Suggested-by:
https://github.com/openSUSE/qemu/commit/b0817614daa8594bcc10dff88b384027d00deb1f
Note that we only seemed to skip the warning for capget.
Regards,
Andreas
> ---
> linux-user/syscall.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index e404a32..4bfa3db 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -7677,9 +7677,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
> unlock_user(p, arg1, ret);
> break;
> case TARGET_NR_capget:
> - goto unimplemented;
> + goto unimplemented_nowarn;
> case TARGET_NR_capset:
> - goto unimplemented;
> + goto unimplemented_nowarn;
> case TARGET_NR_sigaltstack:
> #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \
> defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset
2014-03-17 20:17 ` Andreas Färber
@ 2014-03-18 6:22 ` Riku Voipio
0 siblings, 0 replies; 3+ messages in thread
From: Riku Voipio @ 2014-03-18 6:22 UTC (permalink / raw)
To: Andreas Färber; +Cc: Peter Maydell, qemu-devel qemu-devel, Alexander Graf
[-- Attachment #1: Type: text/plain, Size: 2157 bytes --]
On 17 March 2014 22:17, Andreas Färber <afaerber@suse.de> wrote:
> Am 17.03.2014 12:55, schrieb riku.voipio@linaro.org:
> > From: Riku Voipio <riku.voipio@linaro.org>
> >
> > some people get numerous unimplemented capget/capset warnings. Since qemu
> > linux-user is not secure to begin with, just skip the system call
> > warning for now. Proper capset/capget to be added in Qemu 2.1
>
> "QEMU". Drop "qemu" above?
>
Well at the moment I'm planning to drop the whole patch over Peter's
implementation of capset/captget:
http://patchwork.ozlabs.org/patch/330912/
>
> Since Peter specifically mentioned to you that this is what the SUSE
> tree does, it would be only fair to attribute this change to Alex as
> patch author in some way, be it Signed-off-by, From or Suggested-by:
>
>
> https://github.com/openSUSE/qemu/commit/b0817614daa8594bcc10dff88b384027d00deb1f
>
> Note that we only seemed to skip the warning for capget.
>
If you think implementing capset/capget this close to 2.0 release is too
risky,
I can revert to this patch - I'll then set Alex as the author.
Riku
>
> Regards,
> Andreas
>
> > ---
> > linux-user/syscall.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> > index e404a32..4bfa3db 100644
> > --- a/linux-user/syscall.c
> > +++ b/linux-user/syscall.c
> > @@ -7677,9 +7677,9 @@ abi_long do_syscall(void *cpu_env, int num,
> abi_long arg1,
> > unlock_user(p, arg1, ret);
> > break;
> > case TARGET_NR_capget:
> > - goto unimplemented;
> > + goto unimplemented_nowarn;
> > case TARGET_NR_capset:
> > - goto unimplemented;
> > + goto unimplemented_nowarn;
> > case TARGET_NR_sigaltstack:
> > #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS)
> || \
> > defined(TARGET_SPARC) || defined(TARGET_PPC) ||
> defined(TARGET_ALPHA) || \
> >
>
>
> --
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
>
[-- Attachment #2: Type: text/html, Size: 3471 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-18 6:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 11:55 [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset riku.voipio
2014-03-17 20:17 ` Andreas Färber
2014-03-18 6:22 ` Riku Voipio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).