All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen.5i5j@gmail.com>
To: Paul Moore <paul@paul-moore.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
	eparis@redhat.com, linux-audit@redhat.com,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] include/linux/audit.h: Move dummy audit_file() from !AUDIT area to !AUDITSYSCALL area
Date: Thu, 06 Nov 2014 11:19:06 +0800	[thread overview]
Message-ID: <545AE8AA.1030705@gmail.com> (raw)
In-Reply-To: <283051037.h5QtGpv3rn@sifl>

On 11/6/14 4:43, Paul Moore wrote:
> On Tuesday, November 04, 2014 11:09:52 PM Chen Gang wrote:
>> audit_file() is related with AUDITSYSCALL, not related with AUDIT, so
>> need move dummy one from !AUDIT area to !AUDITSYSCALL area. Or it will
>> cause issue if CONFIG_AUDIT with !CONFIG_AUDITSYSCALL.
>>
>> The related error (with allmodconfig under tile):
>>
>>     CC      fs/open.o
>>   fs/open.c: In function 'SYSC_fchmod':
>>   fs/open.c:530:3: error: implicit declaration of function 'audit_file'
>> [-Werror=implicit-function-declaration] audit_file(f.file);
>>      ^
>>
>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
>> ---
>>  include/linux/audit.h | 5 ++---
>>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> What version of the kernel source are you looking at?  I don't see the 
> audit_file() function anywhere ...
> 

It is for next tree. Sorry for not marking it in subject, originally.

Thanks.

>> diff --git a/include/linux/audit.h b/include/linux/audit.h
>> index 295ae1c..7b1d0d1 100644
>> --- a/include/linux/audit.h
>> +++ b/include/linux/audit.h
>> @@ -363,6 +363,8 @@ static inline void audit_inode(struct filename *name,
>>  				const struct dentry *dentry,
>>  				unsigned int parent)
>>  { }
>> +static inline void audit_file(struct file *file)
>> +{ }
>>  static inline void audit_inode_parent_hidden(struct filename *name,
>>  				const struct dentry *dentry)
>>  { }
>> @@ -538,9 +540,6 @@ static inline void audit_log_task_info(struct
>> audit_buffer *ab, struct task_struct *tsk)
>>  { }
>>  #define audit_enabled 0
>> -static inline void audit_file(struct file *file)
>> -{
>> -}
>>  #endif /* CONFIG_AUDIT */
>>  static inline void audit_log_string(struct audit_buffer *ab, const char
>> *buf) {
> 

-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

  reply	other threads:[~2014-11-06  3:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 15:09 [PATCH] include/linux/audit.h: Move dummy audit_file() from !AUDIT area to !AUDITSYSCALL area Chen Gang
2014-11-05 20:43 ` Paul Moore
2014-11-06  3:19   ` Chen Gang [this message]
2014-11-06 16:50     ` Paul Moore
2014-11-06 12:11   ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2014-11-06 23:39 Chen Gang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545AE8AA.1030705@gmail.com \
    --to=gang.chen.5i5j@gmail.com \
    --cc=eparis@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@paul-moore.com \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.