From: Eric Paris <eparis@redhat.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: James Morris <jmorris@namei.org>,
Eric Paris <eparis@parisplace.org>,
linux-kernel@vger.kernel.org
Subject: Re: v2.6.35-git2 SELinux build failure
Date: Mon, 09 Aug 2010 13:21:49 -0400 [thread overview]
Message-ID: <1281374509.2974.16.camel@dhcp231-200.rdu.redhat.com> (raw)
In-Reply-To: <E1OiV6a-0004qU-7R@tytso-glaptop>
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
prev parent reply other threads:[~2010-08-09 17:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 16:21 Theodore Ts'o
2010-08-09 17:21 ` Eric Paris [this message]
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=1281374509.2974.16.camel@dhcp231-200.rdu.redhat.com \
--to=eparis@redhat.com \
--cc=eparis@parisplace.org \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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 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®