From patchwork Fri Jan 17 08:05:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 23286 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F2E9202FA for ; Fri, 17 Jan 2014 08:05:23 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf233096pbb.1 for ; Fri, 17 Jan 2014 00:05:22 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=pYkZ4oV5uDyXZ2/NyA0JXuOqcbdOrNnN6M8jqgKBQS4=; b=EEJskCtyxb4ylnzFTH2ED2XjVxqXGPxqUTfZCz9fm87JwZvzQGLMZHmp8dpYIu0MqH l8npafZcUCADVhJCE40sJm+cG/mHyYoDl/h6b+z6urf6p6hEh9EuEF3ZFL0/EI0tgdzp 3x4OaMSj6oBb1rbNh1nT42RWrip7Nqv3vB/2D52lS2wNKW8/4bh2kLGH0dGiMujT9Xgq PUmQl/OKoxoBg5ksPveUg7Psz566AK8FkAA42rnT+kJE4Y8/EXj/ZWFTx7ZO9aEfHIRW tB/QEXk3CcStSXRyVN3g19RZEuV7yN7xBeGKL3jtLJckwhOXbpeVXtsr4zMPp0T05D6Y IseQ== X-Gm-Message-State: ALoCoQlhiymvDW5+iQ93K+waFL3jtXwfzTvcAzRekXxC33Tm3c/e4qt793skZBCgIh0XSs++5WAf X-Received: by 10.66.118.37 with SMTP id kj5mr182246pab.17.1389945922778; Fri, 17 Jan 2014 00:05:22 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.73 with SMTP id i67ls430356qgf.3.gmail; Fri, 17 Jan 2014 00:05:22 -0800 (PST) X-Received: by 10.220.191.134 with SMTP id dm6mr241905vcb.16.1389945922657; Fri, 17 Jan 2014 00:05:22 -0800 (PST) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id ru9si4540382vec.81.2014.01.17.00.05.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:05:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id ie18so1392658vcb.40 for ; Fri, 17 Jan 2014 00:05:22 -0800 (PST) X-Received: by 10.52.181.98 with SMTP id dv2mr191420vdc.30.1389945922578; Fri, 17 Jan 2014 00:05:22 -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 ey3csp1935ved; Fri, 17 Jan 2014 00:05:22 -0800 (PST) X-Received: by 10.66.241.73 with SMTP id wg9mr539141pac.69.1389945921826; Fri, 17 Jan 2014 00:05:21 -0800 (PST) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id mi5si9461474pab.101.2014.01.17.00.05.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:05:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of takahiro.akashi@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id kp14so3793789pab.23 for ; Fri, 17 Jan 2014 00:05:21 -0800 (PST) X-Received: by 10.69.18.234 with SMTP id gp10mr489920pbd.105.1389945921447; Fri, 17 Jan 2014 00:05:21 -0800 (PST) Received: from localhost.localdomain (KD182250177246.au-net.ne.jp. [182.250.177.246]) by mx.google.com with ESMTPSA id fm1sm27656298pab.22.2014.01.17.00.05.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:05:20 -0800 (PST) From: AKASHI Takahiro To: viro@zeniv.linux.org.uk, eparis@redhat.com, rgb@redhat.com, arndb@arndb.de Cc: catalin.marinas@arm.com, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-kernel@ver.kernel.org, linux-audit@redhat.com, patches@linaro.org, AKASHI Takahiro Subject: [PATCH] audit: Modify a set of system calls in audit class definitions Date: Fri, 17 Jan 2014 17:05:03 +0900 Message-Id: <1389945903-4326-1-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 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.181 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: , Each asm-generic/audit_xx.h defines a set of system calls for respective audit permssion class (read, write, change attribute or exec). This patch changes two entries: 1) fchown in audit_change_attr.h Make fchown included by its own because in asm-generic/unistd.h, for example, fchown always exists while chown is optional. This change is necessary at least for arm64. 2) truncate64 in audit_write.h Add missing truncate64/ftruncate64 as well as truncate/ftruncate Signed-off-by: AKASHI Takahiro --- include/asm-generic/audit_change_attr.h | 4 +++- include/asm-generic/audit_write.h | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/audit_change_attr.h b/include/asm-generic/audit_change_attr.h index 89b73e5..a186553 100644 --- a/include/asm-generic/audit_change_attr.h +++ b/include/asm-generic/audit_change_attr.h @@ -4,9 +4,11 @@ __NR_chmod, __NR_fchmod, #ifdef __NR_chown __NR_chown, -__NR_fchown, __NR_lchown, #endif +#ifdef __NR_fchown +__NR_fchown, +#endif __NR_setxattr, __NR_lsetxattr, __NR_fsetxattr, diff --git a/include/asm-generic/audit_write.h b/include/asm-generic/audit_write.h index e7020c5..274575d 100644 --- a/include/asm-generic/audit_write.h +++ b/include/asm-generic/audit_write.h @@ -10,6 +10,12 @@ __NR_truncate, #ifdef __NR_truncate64 __NR_truncate64, #endif +#ifdef __NR_ftruncate +__NR_ftruncate, +#endif +#ifdef __NR_ftruncate64 +__NR_ftruncate64, +#endif #ifdef __NR_bind __NR_bind, /* bind can affect fs object only in one way... */ #endif