From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: linux-next: build failure after merge of the akpm tree Date: Wed, 26 Sep 2012 13:47:55 -0700 Message-ID: <20120926134755.37b3db32.akpm@linux-foundation.org> References: <20120926160127.c34cb6d3e5dcc9ab32e8b573@canb.auug.org.au> <20120926133335.b012417e.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:56245 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033Ab2IZUr4 (ORCPT ); Wed, 26 Sep 2012 16:47:56 -0400 In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: Kees Cook Cc: Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Fengguang Wu On Wed, 26 Sep 2012 13:42:05 -0700 Kees Cook wrote: > > +static inline int audit_get_loginuid(struct task_struct *tsk) > > Shouldn't this return kuid_t, due to "userns: Convert the audit > loginuid to be a kuid"? yup, thanks. --- a/include/linux/audit.h~audith-replace-defines-with-c-stubs-fix +++ a/include/linux/audit.h @@ -530,7 +530,7 @@ extern int auditsc_get_stamp(struct audi struct timespec *t, unsigned int *serial); extern int audit_set_loginuid(kuid_t loginuid); -static inline int audit_get_loginuid(struct task_struct *tsk) +static inline kuid_t audit_get_loginuid(struct task_struct *tsk) { return tsk->loginuid } @@ -677,7 +677,7 @@ static inline int auditsc_get_stamp(stru { return 0; } -static inline int audit_get_loginuid(struct task_struct *tsk) +static inline kuid_t audit_get_loginuid(struct task_struct *tsk) { return INVALID_UID; } _