From patchwork Thu Aug 21 08:56:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 35729 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7F39520540 for ; Thu, 21 Aug 2014 08:58:25 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf56036907oag.11 for ; Thu, 21 Aug 2014 01:58:25 -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=NdIlKE5vwH/UI0XOSxFbSIXpoU1LqrSGpUD14LFzDa0=; b=eSfgdwLYwWouRORKC8WqmpCe94I7CrkrPgnua1B/rbzqp8CXv+gBjlcJntLVQON7fQ UQza2SRbvo/2ZYwTqvoWtI/dEOVoMzP31HLe//BjTI4s9E2E/nbwA8JeNmfQejJa3hlo QQz4gZpkYTONpkBpK1p1gMissGQc/Hwa/H+pn+cP70XrQmEmJR6oDDFcsXC8qJ1JebNE v0fT+9WPdyv2wgT75PUGiQVCNKmPwKpWfeOAEprPZEDxWu6lPRok+Mtw4qh/xp6qgZ/S vlIl+wB4rOzMz0EGVBokYWVGNepQMDijYAsY9vJ7WtrEmpPkyl3zrXEEucSNUI2N+u3D yh4w== X-Gm-Message-State: ALoCoQl0wsQToEuHcTMOv01XuX2iu8zbhIcL42SGrC8qDQoeq28GMMc+l8T98EZbXauswBSyAqU6 X-Received: by 10.42.94.69 with SMTP id a5mr1807473icn.29.1408611505098; Thu, 21 Aug 2014 01:58:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.203 with SMTP id t69ls719413qgd.30.gmail; Thu, 21 Aug 2014 01:58:24 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr3240302vdb.27.1408611504914; Thu, 21 Aug 2014 01:58:24 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id 3si12145689vct.27.2014.08.21.01.58.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Aug 2014 01:58:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so10386017vcb.38 for ; Thu, 21 Aug 2014 01:58:24 -0700 (PDT) X-Received: by 10.220.182.1 with SMTP id ca1mr41019833vcb.21.1408611504815; Thu, 21 Aug 2014 01:58:24 -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.221.45.67 with SMTP id uj3csp118517vcb; Thu, 21 Aug 2014 01:58:24 -0700 (PDT) X-Received: by 10.68.183.68 with SMTP id ek4mr60180844pbc.54.1408611503951; Thu, 21 Aug 2014 01:58:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zo5si35581275pac.90.2014.08.21.01.58.23 for ; Thu, 21 Aug 2014 01:58:23 -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 S1754104AbaHUI6H (ORCPT + 26 others); Thu, 21 Aug 2014 04:58:07 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:45661 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753918AbaHUI6E (ORCPT ); Thu, 21 Aug 2014 04:58:04 -0400 Received: by mail-pd0-f171.google.com with SMTP id z10so13603977pdj.2 for ; Thu, 21 Aug 2014 01:58:03 -0700 (PDT) X-Received: by 10.68.224.40 with SMTP id qz8mr60101523pbc.9.1408611483725; Thu, 21 Aug 2014 01:58:03 -0700 (PDT) Received: from localhost.localdomain (KD182249099030.au-net.ne.jp. [182.249.99.30]) by mx.google.com with ESMTPSA id q5sm37734708pdf.70.2014.08.21.01.57.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Aug 2014 01:58:02 -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 v6 4/6] arm64: add seccomp syscall for compat task Date: Thu, 21 Aug 2014 17:56:43 +0900 Message-Id: <1408611405-8943-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408611405-8943-1-git-send-email-takahiro.akashi@linaro.org> References: <1408611405-8943-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.220.179 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. Signed-off-by: AKASHI Takahiro Reviewed-by: Kees Cook --- arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 4bc95d2..cf6ee31 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -41,7 +41,7 @@ #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) -#define __NR_compat_syscalls 383 +#define __NR_compat_syscalls 384 #endif #define __ARCH_WANT_SYS_CLONE diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index e242600..2922c40 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -787,3 +787,6 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) __SYSCALL(__NR_sched_getattr, sys_sched_getattr) #define __NR_renameat2 382 __SYSCALL(__NR_renameat2, sys_renameat2) +#define __NR_seccomp 383 +__SYSCALL(__NR_seccomp, sys_seccomp) +