From patchwork Tue Nov 18 01:10:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 40984 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AD6B224035 for ; Tue, 18 Nov 2014 01:12:10 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id s18sf3763388lam.10 for ; Mon, 17 Nov 2014 17:12:09 -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=Pu1PrZQYVler2yUrFL9o/kVmVw4iOmv2jGueeVVsy8BHqMXg2gfnsUPclHYWLv/eyQ bIlGHzbiYvCFOyopKfH0EWHOYqe0w64napdgoRih0H1OMgDmRwPXJA0ZYFantpYoETCw /LZgMxb+lj9OavM8+GB8Lin9tXU3KoT76X0QzylcFJffB7+G4W6ZW0JbrXdqbqnu+uzI Jp+D5xQYLh8FFJzauEpZBgcRwTLbcf9qVv0yg4uH9YAkq+ACfdM98sGYG3BafKH8kQn/ CdTIPRKOwi4X+yuXplt8B1NthbkMy0dTucsnDxM5GzY7edaDCgkFAKfQTC1+94eC7Ypi K8TA== X-Gm-Message-State: ALoCoQl6mi7icEZzR6aukdUIqQVZynJoW1SNT5FzZ4Y8ZDOeJ1a3wOG1bmefYZlA99Hs/60jZeFZ X-Received: by 10.112.204.71 with SMTP id kw7mr28359lbc.13.1416273129649; Mon, 17 Nov 2014 17:12:09 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.4 with SMTP id i4ls1319086laf.59.gmail; Mon, 17 Nov 2014 17:12:09 -0800 (PST) X-Received: by 10.152.120.167 with SMTP id ld7mr14249694lab.77.1416273129310; Mon, 17 Nov 2014 17:12:09 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id dv6si53874396lbc.52.2014.11.17.17.12.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 17:12:09 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id pn19so2408402lab.12 for ; Mon, 17 Nov 2014 17:12:09 -0800 (PST) X-Received: by 10.152.8.170 with SMTP id s10mr7588166laa.56.1416273129219; Mon, 17 Nov 2014 17:12:09 -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 ew9csp1256975lbc; Mon, 17 Nov 2014 17:12:08 -0800 (PST) X-Received: by 10.66.254.164 with SMTP id aj4mr8305340pad.116.1416273127538; Mon, 17 Nov 2014 17:12:07 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fl10si36662027pab.110.2014.11.17.17.12.06 for ; Mon, 17 Nov 2014 17:12:07 -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 S1753733AbaKRBL5 (ORCPT + 26 others); Mon, 17 Nov 2014 20:11:57 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:48192 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753697AbaKRBLz (ORCPT ); Mon, 17 Nov 2014 20:11:55 -0500 Received: by mail-pd0-f180.google.com with SMTP id p10so2934995pdj.11 for ; Mon, 17 Nov 2014 17:11:54 -0800 (PST) X-Received: by 10.70.28.132 with SMTP id b4mr7176668pdh.149.1416273114831; Mon, 17 Nov 2014 17:11:54 -0800 (PST) Received: from localhost.localdomain (KD182249087116.au-net.ne.jp. [182.249.87.116]) by mx.google.com with ESMTPSA id cf12sm36225005pdb.77.2014.11.17.17.11.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Nov 2014 17:11:53 -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 v8 4/6] arm64: add seccomp syscall for compat task Date: Tue, 18 Nov 2014 10:10:36 +0900 Message-Id: <1416273038-15590-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416273038-15590-1-git-send-email-takahiro.akashi@linaro.org> References: <1416273038-15590-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.53 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