From patchwork Fri Nov 28 05:26:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 41662 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E87C8244C2 for ; Fri, 28 Nov 2014 05:27:49 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf3719651lbj.11 for ; Thu, 27 Nov 2014 21:27:48 -0800 (PST) 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:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=mVf27Z+No5Xa1pTCsX8o79nRtiFdp/GsyOlKhHeAM0k=; b=I8B9ejbjBm01ukZn/eYBIcFp2rFH4/gWgOn+BIjnsECk24La4V4m451FIIEkGxjhz5 Pe80V3CfX2Qx9MM8ZWlsdCjGV26OpLlZYsU89q635gRMqOTSE4ZSJAA5UCFBfKxGUZo/ 3N0q7zK+0a+gcnpC+ooVg0njWLGt9kk1dlFRJTPVxfyxqFx+qMB+HOIZtJNrrFmv2bcd zHCnh+7LB1Uy3u+bRW0M9MCbfwDXTrqvL5iCJiKu3O3t81W2AuOyy6kDcUtdLx3OhRzx CZFtak+Gt7xA1JgD7sZqQFZ1fBAcbg2+7IzpXT/PdVKLLSGx67MHZXWsFwtv/2F7f1PR QJ6A== X-Gm-Message-State: ALoCoQmLizzSJWS+eh3vSxWUqFd/ZL4lubW8v71H95ZiZXto2ezImvf40D910oRy17qvZwuLVYXn X-Received: by 10.112.151.38 with SMTP id un6mr11586699lbb.0.1417152468884; Thu, 27 Nov 2014 21:27:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.33 with SMTP id j1ls333928lam.59.gmail; Thu, 27 Nov 2014 21:27:48 -0800 (PST) X-Received: by 10.112.52.73 with SMTP id r9mr29482013lbo.15.1417152468710; Thu, 27 Nov 2014 21:27:48 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id rw6si8661247lbb.42.2014.11.27.21.27.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 21:27:48 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id 10so4874858lbg.8 for ; Thu, 27 Nov 2014 21:27:48 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr41083765lbr.74.1417152468629; Thu, 27 Nov 2014 21:27:48 -0800 (PST) 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.112.184.201 with SMTP id ew9csp35193lbc; Thu, 27 Nov 2014 21:27:47 -0800 (PST) X-Received: by 10.70.89.237 with SMTP id br13mr70592382pdb.78.1417152467052; Thu, 27 Nov 2014 21:27:47 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id is3si14328240pbc.229.2014.11.27.21.27.46 for ; Thu, 27 Nov 2014 21:27:47 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751433AbaK1F1l (ORCPT + 26 others); Fri, 28 Nov 2014 00:27:41 -0500 Received: from mail-pd0-f173.google.com ([209.85.192.173]:51527 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910AbaK1F1i (ORCPT ); Fri, 28 Nov 2014 00:27:38 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so6030279pdb.32 for ; Thu, 27 Nov 2014 21:27:38 -0800 (PST) X-Received: by 10.68.110.4 with SMTP id hw4mr26456910pbb.48.1417152458327; Thu, 27 Nov 2014 21:27:38 -0800 (PST) Received: from localhost.localdomain (KD182249096114.au-net.ne.jp. [182.249.96.114]) by mx.google.com with ESMTPSA id kp2sm8661866pdb.30.2014.11.27.21.27.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Nov 2014 21:27:37 -0800 (PST) From: AKASHI Takahiro To: keescook@chromium.org, catalin.marinas@arm.com, will.deacon@arm.com Cc: dsaxena@linaro.org, arndb@arndb.de, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v10 4/6] arm64: add seccomp syscall for compat task Date: Fri, 28 Nov 2014 14:26:37 +0900 Message-Id: <1417152399-32717-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417152399-32717-1-git-send-email-takahiro.akashi@linaro.org> References: <1417152399-32717-1-git-send-email-takahiro.akashi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: takahiro.akashi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch allows compat task to issue seccomp() system call. Reviewed-by: Kees Cook Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/unistd32.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index 9dfdac4..8893ceb 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -787,7 +787,8 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) __SYSCALL(__NR_sched_getattr, sys_sched_getattr) #define __NR_renameat2 382 __SYSCALL(__NR_renameat2, sys_renameat2) - /* 383 for seccomp */ +#define __NR_seccomp 383 +__SYSCALL(__NR_seccomp, sys_seccomp) #define __NR_getrandom 384 __SYSCALL(__NR_getrandom, sys_getrandom) #define __NR_memfd_create 385