From patchwork Thu Oct 2 09:46:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 38281 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0F24920549 for ; Thu, 2 Oct 2014 09:47:48 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id m15sf930062wgh.11 for ; Thu, 02 Oct 2014 02:47:48 -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: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=lv1uBIAbVo75ikNpsJWl0JE8KLIQa9PM+Rn1SZOXN5M=; b=Wfgf6PXnAx3buS/aNf1XNNbzPepnarVO/tzx9Zl/3+qCuO1Km+1etPlsOv0cwkKD0Q vItm+Xm6KBqTIrQFMSVW1giWgqdGqnrVhmPvIjLTS77M8Ef62Ns5Sjm77U/2bZnnrkZC x8b8p52DUByZCRtqWM3aTSGbgX63QA0uSDY7TjhaEE2PAQyhMijjJsGhwKBoLQ/ZgqMK +wDl1CnHNIfmlhs6KuAMg7n8ZwGdFrED9lCrp3A6V/+rycwrJpw0Xzaya+5Mo/WhFMur h+xXKfABCtu9bgVljbWjSY8EO+MXdgwOt8oxvmQ84CfgI1ZSQINuNeft/ubm61h7/ko5 /JcA== X-Gm-Message-State: ALoCoQmlmZNbYMp7RGNP2WUrVoxPiNvzxCpUPdeKkYzSPYqRVAIMah6VFsQcmisHfZtZzU9HpGUs X-Received: by 10.112.52.165 with SMTP id u5mr412974lbo.12.1412243268202; Thu, 02 Oct 2014 02:47:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.5 with SMTP id m5ls269697laj.81.gmail; Thu, 02 Oct 2014 02:47:47 -0700 (PDT) X-Received: by 10.152.10.2 with SMTP id e2mr2087211lab.96.1412243267866; Thu, 02 Oct 2014 02:47:47 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id nx7si5730312lbb.63.2014.10.02.02.47.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Oct 2014 02:47:47 -0700 (PDT) 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 w7so1917310lbi.36 for ; Thu, 02 Oct 2014 02:47:47 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr57083849lbh.67.1412243267580; Thu, 02 Oct 2014 02:47:47 -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.112.130.169 with SMTP id of9csp23625lbb; Thu, 2 Oct 2014 02:47:46 -0700 (PDT) X-Received: by 10.68.102.132 with SMTP id fo4mr84892139pbb.96.1412243266094; Thu, 02 Oct 2014 02:47:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si3256863pdb.199.2014.10.02.02.47.45 for ; Thu, 02 Oct 2014 02:47:46 -0700 (PDT) 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 S1751942AbaJBJri (ORCPT + 27 others); Thu, 2 Oct 2014 05:47:38 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:51448 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987AbaJBJrf (ORCPT ); Thu, 2 Oct 2014 05:47:35 -0400 Received: by mail-pa0-f53.google.com with SMTP id kq14so1934466pab.40 for ; Thu, 02 Oct 2014 02:47:35 -0700 (PDT) X-Received: by 10.68.68.172 with SMTP id x12mr7318786pbt.111.1412243255507; Thu, 02 Oct 2014 02:47:35 -0700 (PDT) Received: from localhost.localdomain (KD182249093205.au-net.ne.jp. [182.249.93.205]) by mx.google.com with ESMTPSA id w7sm3013036pbs.4.2014.10.02.02.47.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Oct 2014 02:47:34 -0700 (PDT) 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 v7 4/6] arm64: add seccomp syscall for compat task Date: Thu, 2 Oct 2014 18:46:14 +0900 Message-Id: <1412243176-16192-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412243176-16192-1-git-send-email-takahiro.akashi@linaro.org> References: <1412243176-16192-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 da1f06b..812f192 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