From patchwork Mon Mar 17 11:55:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 26346 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1B2EF202FA for ; Mon, 17 Mar 2014 11:56:13 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf20604474iec.6 for ; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=YrflJAN7wBRWYddY+pdnsGgkXlGTj2pX49pMzeYeMgo=; b=NuNrFFIV/opVzBYqfhpHlA1g393OzReKMV1KawuqzY8+Cy+fRIBwtcqN/2qsxwM9GA fuLIfimc+2EDeeyfKzQP8V1k6CKTBaHBSkI/GCcRyP4yu3U9hw5/21GXrECIc+LuSJu2 wJrnBntjp3gN8/YVXZW8QfrIeyW0uVdGejuMdew5NfAUh92up42zb7IhwN3ASaDeoxQ1 CQLNb7GMwveF0jFDkIcl8GqJKRUGVaiSif4Ng+0dojyK8YV+EH1oH60Xwm9BQHmn5PjA bGsjTLH+GCfX+JJFvfttXd/HpuYx15hqNp0dVIS6H7vFU3F9DlFoyJNR9rMjVNYdfvYu ej7w== X-Gm-Message-State: ALoCoQnG/8Cal/MWMe2O5OWcu53RAMToWY0T0AIoJ23tkXNpTCd9NMsgehIh05tEAWh4XWear6tM X-Received: by 10.51.16.65 with SMTP id fu1mr5248300igd.3.1395057372601; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.194 with SMTP id d60ls1661021qge.22.gmail; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) X-Received: by 10.220.106.84 with SMTP id w20mr19553554vco.18.1395057372469; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sj4si289844vdc.174.2014.03.17.04.56.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 04:56:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id cz12so5580065veb.35 for ; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr7416952vdc.13.1395057372403; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp121207vck; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) X-Received: by 10.224.123.137 with SMTP id p9mr27206747qar.39.1395057372092; Mon, 17 Mar 2014 04:56:12 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id k67si8392788qge.14.2014.03.17.04.56.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 04:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Received: from localhost ([::1]:56851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPW9L-0002t6-Tn for patch@linaro.org; Mon, 17 Mar 2014 07:56:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPW8v-00028k-Oa for qemu-devel@nongnu.org; Mon, 17 Mar 2014 07:55:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPW8r-0000uY-03 for qemu-devel@nongnu.org; Mon, 17 Mar 2014 07:55:45 -0400 Received: from afflict.kos.to ([92.243.29.197]:53354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPW8q-0000uI-PF for qemu-devel@nongnu.org; Mon, 17 Mar 2014 07:55:40 -0400 Received: from localhost.localdomain (afflict [92.243.29.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id E3DA526560; Mon, 17 Mar 2014 12:55:38 +0100 (CET) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 17 Mar 2014 13:55:31 +0200 Message-Id: <1395057331-12329-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: peter.maydell@linaro.org, Riku Voipio Subject: [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Riku Voipio 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 --- 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) || \