mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* v2.6.35-git2 SELinux build failure
@ 2010-08-09 16:21 Theodore Ts'o
  2010-08-09 17:21 ` Eric Paris
  0 siblings, 1 reply; 2+ messages in thread
From: Theodore Ts'o @ 2010-08-09 16:21 UTC (permalink / raw)
  To: James Morris, Eric Paris; +Cc: linux-kernel


Commit b782e0a6, introduced in v2.6.35-git2, uses FILE__AUDIT_ACCESS
without actually defining it:

security/selinux/hooks.c:2644: error: ‘FILE__AUDIT_ACCESS’ undeclared
(first use in this function)

I first noticed this in 2.6.35-git6, and it is still broken in
2.6.35-git7.  I'm not sure how SELinux got turned on in my config, but
I'm not using it, so I'm going to fix it by turning off SELinux.  I
thought I would mention it first, though.

					- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: v2.6.35-git2 SELinux build failure
  2010-08-09 16:21 v2.6.35-git2 SELinux build failure Theodore Ts'o
@ 2010-08-09 17:21 ` Eric Paris
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Paris @ 2010-08-09 17:21 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: James Morris, Eric Paris, linux-kernel

On Mon, 2010-08-09 at 12:21 -0400, Theodore Ts'o wrote:
> Commit b782e0a6, introduced in v2.6.35-git2, uses FILE__AUDIT_ACCESS
> without actually defining it:
> 
> security/selinux/hooks.c:2644: error: ‘FILE__AUDIT_ACCESS’ undeclared
> (first use in this function)
> 
> I first noticed this in 2.6.35-git6, and it is still broken in
> 2.6.35-git7.  I'm not sure how SELinux got turned on in my config, but
> I'm not using it, so I'm going to fix it by turning off SELinux.  I
> thought I would mention it first, though.

You must be using O=$builddir ??

Lets start by saying that the security/selinux/av_permissions.h file is
automatically generated by scripts/selinux/mdp/genheaders.  On you
system I'll bet the problem is that
$srcdir/security/selinux/av_permissions.h exists and doesn't define
FILE__AUDIT_ACCESS.  You will also likely see that
$builddir/security/selinux/av_permission.h exists and does define
FILE__AUDIT_ACCESS.  The $srcdir version should have been cleaned up
before you were allowed to build with O= but wasn't.

This was fixed in a7a387cc596278af1516c534b50cc0bee171129d

See: http://marc.info/?l=selinux&m=128112456326419&w=2

Run make clean.  Try again.

-Eric


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-09 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09 16:21 v2.6.35-git2 SELinux build failure Theodore Ts'o
2010-08-09 17:21 ` Eric Paris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®