From patchwork Fri Jan 17 08:15:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 23295 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 400BE202FA for ; Fri, 17 Jan 2014 08:15:54 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oy12sf4014912veb.6 for ; Fri, 17 Jan 2014 00:15:53 -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=tAixw8p/diUm4KFwbK221XrnkuDznVSn+OjaHSHmbEk=; b=dWScSOT9JWa0YuOv+P+883e4K33YLBhTpG7YYsmn5LHYbCC4qzsVOXDbSjMd1MeJZg ulSw4FxCS+BOT47S+fx41GGDw0/nR/hjQEVqmOzwXqx/r4iaTyqp068uqhWHICIpidje I9hsa6BHoExTief1+ZA9RY7f3D4sUjj8kD17SCXCkg+IID104YbASYzfKqDBqgsQe+32 QT80R2E3Le5C91swIwQC/cEh+zElXflIlai5jZo84tN9RFZBgHDbjzFscQSUuRd99QY6 b2flJDC6RrpFo3huGgVio3TXtCQzJhwMBOMgayQaAUMXnLPZKBkHRtu7JngewsbVDu/G Yrug== X-Gm-Message-State: ALoCoQntgQL77loqtpVdypE74qhAXwaRiUH5P0lk+VVt5HmYsIiDK2h0F2rAbVHlPbOi2TyVU7x6 X-Received: by 10.58.188.71 with SMTP id fy7mr132200vec.15.1389946553451; Fri, 17 Jan 2014 00:15:53 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.196 with SMTP id m62ls59583qge.11.gmail; Fri, 17 Jan 2014 00:15:53 -0800 (PST) X-Received: by 10.58.248.198 with SMTP id yo6mr251767vec.40.1389946553344; Fri, 17 Jan 2014 00:15:53 -0800 (PST) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) by mx.google.com with ESMTPS id sj10si4551810vcb.90.2014.01.17.00.15.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:15:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.51; Received: by mail-vb0-f51.google.com with SMTP id 11so1385480vbe.24 for ; Fri, 17 Jan 2014 00:15:53 -0800 (PST) X-Received: by 10.220.29.200 with SMTP id r8mr225895vcc.9.1389946553255; Fri, 17 Jan 2014 00:15:53 -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.59.13.131 with SMTP id ey3csp2432ved; Fri, 17 Jan 2014 00:15:52 -0800 (PST) X-Received: by 10.69.20.11 with SMTP id gy11mr720384pbd.64.1389946552253; Fri, 17 Jan 2014 00:15:52 -0800 (PST) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id ad3si6448708pad.61.2014.01.17.00.15.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:15:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of takahiro.akashi@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id g10so2980218pdj.2 for ; Fri, 17 Jan 2014 00:15:51 -0800 (PST) X-Received: by 10.68.108.194 with SMTP id hm2mr741570pbb.22.1389946551813; Fri, 17 Jan 2014 00:15:51 -0800 (PST) Received: from localhost.localdomain (KD182250177246.au-net.ne.jp. [182.250.177.246]) by mx.google.com with ESMTPSA id ki1sm20698957pbd.1.2014.01.17.00.15.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:15:50 -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 v2 1/3] audit(userspace): Add missing syscalls for AArch64 Date: Fri, 17 Jan 2014 17:15:27 +0900 Message-Id: <1389946529-4590-2-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1389946529-4590-1-git-send-email-takahiro.akashi@linaro.org> References: <1384846140-5716-1-git-send-email-takahiro.akashi@linaro.org> <1389946529-4590-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.212.51 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: , There are missing system call entries in lookup table for AArch64. This patch adds them based on kernel's include/uapi/asm-generic/unistd.h, which AArch64 (or arm64 in kernel) relies on. System call names here are derived directly from called fuctions by removing prefix 'sys_' and postfix '64'. The exceptions are: * fadvise64 * prlimit64 * fstat because we want to keep compatibility with other arch's namings like on x86 or s390x. Signed-off-by: AKASHI Takahiro --- lib/aarch64_table.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/aarch64_table.h b/lib/aarch64_table.h index 56f4d33..5dcd349 100644 --- a/lib/aarch64_table.h +++ b/lib/aarch64_table.h @@ -45,6 +45,7 @@ _S(21, "epoll_ctl") _S(22, "epoll_pwait") _S(23, "dup") _S(24, "dup3") +_S(25, "fcntl") _S(26, "inotify_init1") _S(27, "inotify_add_watch") _S(28, "inotify_rm_watch") @@ -62,6 +63,10 @@ _S(39, "umount2") _S(40, "mount") _S(41, "pivot_root") _S(42, "nfsservctl") +_S(43, "statfs") +_S(44, "fstatfs") +_S(45, "truncate") +_S(46, "ftruncate") _S(47, "fallocate") _S(48, "faccessat") _S(49, "chdir") @@ -76,15 +81,17 @@ _S(57, "close") _S(58, "vhangup") _S(59, "pipe2") _S(60, "quotactl") -_S(61, "getdents64") +_S(61, "getdents") +_S(62, "lseek") _S(63, "read") _S(64, "write") _S(65, "readv") _S(66, "writev") -_S(67, "pread64") -_S(68, "pwrite64") +_S(67, "pread") +_S(68, "pwrite") _S(69, "preadv") _S(70, "pwritev") +_S(71, "sendfile") _S(72, "pselect6") _S(73, "ppoll") _S(74, "signalfd4") @@ -92,6 +99,8 @@ _S(75, "vmsplice") _S(76, "splice") _S(77, "tee") _S(78, "readlinkat") +_S(79, "newfstatat") +_S(80, "newfstat") _S(81, "sync") _S(82, "fsync") _S(83, "fdatasync") @@ -233,6 +242,8 @@ _S(218, "request_key") _S(219, "keyctl") _S(220, "clone") _S(221, "execve") +_S(222, "mmap") +_S(223, "fadvise64") _S(224, "swapon") _S(225, "swapoff") _S(226, "mprotect")