From patchwork Fri Jan 17 08:12:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 23288 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F5F6202FA for ; Fri, 17 Jan 2014 08:12:32 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf3872476pbb.10 for ; Fri, 17 Jan 2014 00:12:31 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=en6lFUqNiVuFUWWTeVJKbU3ROzeDUaXE/nk+8Q3JlBE=; b=KUPE7/1FDkOdVkv9Vtsqttxyt73y47y2L0bVpPDi7b7yPnulXBAXDDf1EzLGz+kqFr OOhS1OMwkOuD3sh5Fz4U8h4IqaNprBvdpFyKGZ6vUlrLt1EARpK1O6jBUWiRqyBgZs72 DzP/cuV7oOzLOeAu4LmT+LQulO1i1NzFMpeUkEYDAQEOEKQfnZC1aG2zhcrJS+G7CsK8 2mLTtmJPLkrU6ywCDZE8odXWmhPg4lbtbDdTkL1yNZgcEi4+nZNHJsfHkRsLEGBCjsYL e9IZZ04QR0Hz7Mzd0cjC5HJcAREjcrJ/b/MslARamBHKl+KsTsn+U9Urn7lsqA4Zs9FE cRNQ== X-Gm-Message-State: ALoCoQmOEtrJGLTCwRdPAA0TYCSo3oG6TDdioIbytkuDL5mye+oNzGpP+4uQTlH2vHBEQIxd1hAF X-Received: by 10.68.197.137 with SMTP id iu9mr223416pbc.3.1389946351464; Fri, 17 Jan 2014 00:12:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.167 with SMTP id dd7ls1060778qeb.81.gmail; Fri, 17 Jan 2014 00:12:31 -0800 (PST) X-Received: by 10.52.164.203 with SMTP id ys11mr175197vdb.37.1389946351291; Fri, 17 Jan 2014 00:12:31 -0800 (PST) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id b20si4544676veu.98.2014.01.17.00.12.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:12:31 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id id10so1445578vcb.27 for ; Fri, 17 Jan 2014 00:12:31 -0800 (PST) X-Received: by 10.52.117.176 with SMTP id kf16mr216439vdb.6.1389946351211; Fri, 17 Jan 2014 00:12:31 -0800 (PST) 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.59.13.131 with SMTP id ey3csp2255ved; Fri, 17 Jan 2014 00:12:30 -0800 (PST) X-Received: by 10.66.154.75 with SMTP id vm11mr655733pab.124.1389946350335; Fri, 17 Jan 2014 00:12:30 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si9437563pbs.301.2014.01.17.00.12.29; Fri, 17 Jan 2014 00:12:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752276AbaAQIMY (ORCPT + 26 others); Fri, 17 Jan 2014 03:12:24 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:49193 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255AbaAQIMW (ORCPT ); Fri, 17 Jan 2014 03:12:22 -0500 Received: by mail-pa0-f45.google.com with SMTP id lf10so1549364pab.18 for ; Fri, 17 Jan 2014 00:12:21 -0800 (PST) X-Received: by 10.66.175.4 with SMTP id bw4mr706630pac.56.1389946341645; Fri, 17 Jan 2014 00:12:21 -0800 (PST) Received: from localhost.localdomain (KD182250177246.au-net.ne.jp. [182.250.177.246]) by mx.google.com with ESMTPSA id xn12sm27682302pac.12.2014.01.17.00.12.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:12:20 -0800 (PST) From: AKASHI Takahiro To: linux-kernel@vger.kernel.org Cc: AKASHI Takahiro Subject: [PATCH] audit: Modify a set of system calls in audit class definitions Date: Fri, 17 Jan 2014 17:12:07 +0900 Message-Id: <1389946327-4476-1-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 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=neutral (google.com: 209.85.220.182 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 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: , 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