From patchwork Wed Nov 26 04:49:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 41517 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 36AD625E18 for ; Wed, 26 Nov 2014 04:51:03 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf1287493lab.7 for ; Tue, 25 Nov 2014 20:51:02 -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=W2Eu62Pbz8An9aWzZOnJM+21lXSLzTJGKBD6+EvbxXkmL+d/Tkv9iDK4MF8hk9EDs4 ZMUEJiry7ygD+ZF/fRLskAviCsJW0Iu9kHTUcqS/PJ2u7pALmTImfDnjjHSsZmf7oJqD cSMixjuvC1ptGw95eotNdKrzmN9GEa1P6IdqTA5wYRpLs+QhZnunXM5JjFWAo2U32VBB 0jbQGF3e7bgLjU04qMMov3JC2L167ajGbvVXT/eR4vvKSGm3tkfTfxeQw1QElpeYBZ9+ +DEyzbtJG+k+8eqak0e4chvfk7DwJq+S2CC2lj7fcByZNTPUfIw4Bw5zD4PtxkEqg4iM Pi9A== X-Gm-Message-State: ALoCoQl8nhYZ1wWUGEORk5pB9rb+plgNjpRMc3xPIyUJlL576HiiKOOjdiwxeNeF5VsoVfO/rZRs X-Received: by 10.194.104.227 with SMTP id gh3mr21164wjb.7.1416977462048; Tue, 25 Nov 2014 20:51:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.50 with SMTP id u18ls12681laz.96.gmail; Tue, 25 Nov 2014 20:51:01 -0800 (PST) X-Received: by 10.152.43.229 with SMTP id z5mr30605179lal.86.1416977461759; Tue, 25 Nov 2014 20:51:01 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id j15si3230042lbg.30.2014.11.25.20.51.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Nov 2014 20:51:01 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so1782513lab.24 for ; Tue, 25 Nov 2014 20:51:01 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr8443135lal.29.1416977461691; Tue, 25 Nov 2014 20:51:01 -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 ew9csp567472lbc; Tue, 25 Nov 2014 20:51:00 -0800 (PST) X-Received: by 10.66.97.39 with SMTP id dx7mr49901893pab.65.1416977459988; Tue, 25 Nov 2014 20:50:59 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fw5si5015002pbb.88.2014.11.25.20.50.58 for ; Tue, 25 Nov 2014 20:50:59 -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 S1752458AbaKZEux (ORCPT + 26 others); Tue, 25 Nov 2014 23:50:53 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:64793 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbaKZEuv (ORCPT ); Tue, 25 Nov 2014 23:50:51 -0500 Received: by mail-pa0-f45.google.com with SMTP id lj1so2060963pab.32 for ; Tue, 25 Nov 2014 20:50:50 -0800 (PST) X-Received: by 10.68.98.196 with SMTP id ek4mr49651720pbb.150.1416977450863; Tue, 25 Nov 2014 20:50:50 -0800 (PST) Received: from localhost.localdomain (KD182249086035.au-net.ne.jp. [182.249.86.35]) by mx.google.com with ESMTPSA id yp8sm2962059pab.48.2014.11.25.20.50.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Nov 2014 20:50:49 -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 v9 4/6] arm64: add seccomp syscall for compat task Date: Wed, 26 Nov 2014 13:49:49 +0900 Message-Id: <1416977391-24231-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416977391-24231-1-git-send-email-takahiro.akashi@linaro.org> References: <1416977391-24231-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.215.51 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