From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753252Ab2ITHKQ (ORCPT ); Thu, 20 Sep 2012 03:10:16 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:64430 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378Ab2ITHKN (ORCPT ); Thu, 20 Sep 2012 03:10:13 -0400 Date: Thu, 20 Sep 2012 09:10:08 +0200 From: Ingo Molnar To: Arnaldo Carvalho de Melo Cc: Al Viro , Eric Paris , David Ahern , Frederic Weisbecker , Jiri Olsa , Mike Galbraith , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Stephane Eranian , Steven Rostedt , Thomas Gleixner , Linux Kernel Mailing List , Andrew Morton Subject: Re: [PATCH 1/1] audit: Use a tracepoint for getname Message-ID: <20120920071008.GB2042@gmail.com> References: <20120919225659.GA11325@ghostprotocols.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120919225659.GA11325@ghostprotocols.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnaldo Carvalho de Melo wrote: > Al, Eric, > > Was this considered before? Acceptable? > > - Arnaldo > > --- > > Instead of an explicit hook only for audit, use a tracepoint, so that > other users that need to know about filenames can hook there just like > audit. > > Based on an earlier patch by Thomas Gleixner that added the tracepoint > but left the audit_getname call. > > Signed-off-by: Arnaldo Carvalho de Melo > --- > fs/namei.c | 5 ++++- > include/linux/audit.h | 6 +----- > include/trace/events/vfs.h | 32 ++++++++++++++++++++++++++++++++ > init/Kconfig | 2 +- > kernel/audit.c | 11 +++++++++++ > 5 files changed, 49 insertions(+), 7 deletions(-) > create mode 100644 include/trace/events/vfs.h Nice generalization and we gain a useful tracepoint as well. Acked-by: Ingo Molnar Thanks, Ingo