From patchwork Mon Feb 3 06:58:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 24030 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 86FA020675 for ; Mon, 3 Feb 2014 06:58:47 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf29494603oag.0 for ; Sun, 02 Feb 2014 22:58:46 -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=QxiXfBsGJKCIG0AArLw/b40j+LnJP6qnn2xDCutgBA7VFUP0ssFk90htcJVNEyAcZX rk/8TzYCXvzmqxJLtKG9oFEiVJ7NbLrbjfpdVhfxuvcboUoYEIqYH9oHLwTJTl80KS6X cwRbDZ7HmgOoOZ1jgrtHQk1DxOzG5jUWr2BCHDf5HdpGzYQiMxC8v/3zOJ6uNxoyiGCz VqMAVkEdwERUVKLVwkR7luDvM8FSvo3GcLq4XiVAgu89KasvHpbh3W2fRmqiqknV7zKz 7o3nMT7faMHtwNnR+QaI33fWHFjbejecyMKluGYDpJ/F/TdnoFQ0jTipXRZ3Gnz02DG7 ThQw== X-Gm-Message-State: ALoCoQlTKppuImeXyrL9WOQgYfSSnIC7XIi+F4JZGIHUSs92xvXBEoe1RVQG6lfYacueEo/PGmup X-Received: by 10.42.123.139 with SMTP id s11mr10969401icr.15.1391410726548; Sun, 02 Feb 2014 22:58:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.215 with SMTP id 81ls1756466qgr.14.gmail; Sun, 02 Feb 2014 22:58:46 -0800 (PST) X-Received: by 10.58.169.7 with SMTP id aa7mr592567vec.24.1391410726476; Sun, 02 Feb 2014 22:58:46 -0800 (PST) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id kn3si6550080veb.16.2014.02.02.22.58.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:58:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.44 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.44; Received: by mail-vb0-f44.google.com with SMTP id f12so4474093vbg.3 for ; Sun, 02 Feb 2014 22:58:46 -0800 (PST) X-Received: by 10.220.251.73 with SMTP id mr9mr26934450vcb.2.1391410726413; Sun, 02 Feb 2014 22:58:46 -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 u4csp136284vcz; Sun, 2 Feb 2014 22:58:45 -0800 (PST) X-Received: by 10.66.194.2 with SMTP id hs2mr35222639pac.79.1391410725536; Sun, 02 Feb 2014 22:58:45 -0800 (PST) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by mx.google.com with ESMTPS id eb3si19338289pbc.266.2014.02.02.22.58.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:58:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.52 is neither permitted nor denied by best guess record for domain of takahiro.akashi@linaro.org) client-ip=209.85.160.52; Received: by mail-pb0-f52.google.com with SMTP id jt11so6747658pbb.11 for ; Sun, 02 Feb 2014 22:58:45 -0800 (PST) X-Received: by 10.68.131.202 with SMTP id oo10mr35288258pbb.35.1391410725150; Sun, 02 Feb 2014 22:58:45 -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.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:58:44 -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 3/4] audit(userspace): Add missing syscalls for AArch64 Date: Mon, 3 Feb 2014 15:58:00 +0900 Message-Id: <1391410681-4924-5-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.212.44 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")