Skip to contentSkip to conversation

linux-user: don't warn on missing capget/capset

PATCH In review [email protected] 2 participants 3 messages Mar 17, 2014 – Mar 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: don't warn on missing capget/capset

From: Riku Voipio <[email protected]>

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

---
 linux-user/syscall.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
linux-user/syscall.c +2 -2
index e404a32..4bfa3db 100644
@@ -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) || \
Signature · 1 line
1.8.5.3
#1 lore raw

Am 17.03.2014 12:55, schrieb [email protected]:

Quoted 5 lines

From: Riku Voipio <[email protected]>

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?

Quoted 2 lines

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

Quoted 21 lines
---
 linux-user/syscall.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
linux-user/syscall.c +2 -2
index e404a32..4bfa3db 100644
@@ -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) || \
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw
Quoted 9 lines · Andreas Färber

Am 17.03.2014 12:55, schrieb [email protected]:

Quoted 5 lines

From: Riku Voipio <[email protected]>

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/

Quoted 10 lines

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

Quoted 34 lines

Regards,
Andreas

linux-user/syscall.c abi_long do_syscall(void *cpu_env, int num,

Quoted 9 lines
---
 linux-user/syscall.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
linux-user/syscall.c +0 -0
index e404a32..4bfa3db 100644
@@ -7677,9 +7677,9 @@ abi_long do_syscall(void *cpu_env, int num,

abi_long arg1,

linux-user/syscall.c abi_long do_syscall(void *cpu_env, int num, abi_long arg1,

Quoted 10 lines
linux-user/syscall.c +2 -2
         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) || \
Quoted 1 line

--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg