From patchwork Mon Feb 3 06:58:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 24031 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9FBBD20675 for ; Mon, 3 Feb 2014 06:58:55 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id w20sf17393468vbb.3 for ; Sun, 02 Feb 2014 22:58:54 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=mNaMt2eDgLfl7h9oD1hpvmDKTDvppU15aCWAtGMHuMM=; b=FLYZUL9N3rFUsRJkZtnkHmoesSnSxCji12796ylBW3xdlCdJSejXtnTB06YpmcKnPp Xq9pSM5/+PeZqkE8904hmn7p0cDcwllpaOQYVu5t4KL65wD53g0PqI0x6HGLsNOkjgnU 0n7RR652NhsfmW8Q5TS4M6+TLlsK5E2GjhlITnO0l7Zi9Mc9PRMlIO7c0ibpdGr5uXTL t7WluJgpjjG3YkJWnG9gVV5w6V8rmpXUKFENYDQmuGBM79XLkJKpM+VkjQmy1NF971Tt HaQj+tzE5Hw53Rbe9aOiPL4ycqF2daZuU0ETvp0oyrCKmH6jA8c17sQKVD17CJPxOL0X XoZA== X-Gm-Message-State: ALoCoQlY77yh9wtnGG1a60Fe+q8J6Mkc+EILQEFF4lIpB2NiP6p0OdOGgArgefWoIceNNn78ysba X-Received: by 10.52.184.228 with SMTP id ex4mr11509322vdc.1.1391410734725; Sun, 02 Feb 2014 22:58:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.134 with SMTP id i6ls1833543qge.2.gmail; Sun, 02 Feb 2014 22:58:54 -0800 (PST) X-Received: by 10.221.26.10 with SMTP id rk10mr27584849vcb.0.1391410734665; Sun, 02 Feb 2014 22:58:54 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id y3si6557539vdo.110.2014.02.02.22.58.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:58:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hu8so4612059vcb.1 for ; Sun, 02 Feb 2014 22:58:54 -0800 (PST) X-Received: by 10.52.227.193 with SMTP id sc1mr9550812vdc.1.1391410734563; Sun, 02 Feb 2014 22:58:54 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp136289vcz; Sun, 2 Feb 2014 22:58:54 -0800 (PST) X-Received: by 10.66.27.107 with SMTP id s11mr35886466pag.64.1391410733577; Sun, 02 Feb 2014 22:58:53 -0800 (PST) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id gx4si19383101pbc.81.2014.02.02.22.58.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:58:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of takahiro.akashi@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id p10so6514951pdj.31 for ; Sun, 02 Feb 2014 22:58:53 -0800 (PST) X-Received: by 10.68.178.66 with SMTP id cw2mr22548224pbc.89.1391410733157; Sun, 02 Feb 2014 22:58:53 -0800 (PST) Received: from localhost.localdomain (KD182249091062.au-net.ne.jp. [182.249.91.62]) by mx.google.com with ESMTPSA id qw8sm52680920pbb.27.2014.02.02.22.58.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:58:52 -0800 (PST) From: AKASHI Takahiro To: linux-audit@redhat.com Cc: will.deacon@arm.com, arndb@arndb.de, patches@linaro.org, AKASHI Takahiro Subject: [PATCH v3 4/4] audit(userspace): Add compat system call support for AArch64 Date: Mon, 3 Feb 2014 15:58:01 +0900 Message-Id: <1391410681-4924-6-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1391410681-4924-1-git-send-email-takahiro.akashi@linaro.org> References: <1389946529-4590-1-git-send-email-takahiro.akashi@linaro.org> <1391410681-4924-1-git-send-email-takahiro.akashi@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: takahiro.akashi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , For 32-bit task auditing (-F arch=b32), internally-used machine type will be overwritten to MACH_ARM in order to use a correct system call lookup table. Signed-off-by: AKASHI Takahiro --- lib/libaudit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libaudit.c b/lib/libaudit.c index 7dacd36..4ee6660 100644 --- a/lib/libaudit.c +++ b/lib/libaudit.c @@ -1306,6 +1306,9 @@ int audit_rule_fieldpair_data(struct audit_rule_data **rulep, const char *pair, else if (bits == ~__AUDIT_ARCH_64BIT && machine == MACH_S390X) machine = MACH_S390; + else if (bits == ~__AUDIT_ARCH_64BIT && + machine == MACH_AARCH64) + machine = MACH_ARM; /* Check for errors - return -6 * We don't allow 32 bit machines to specify