From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173Ab0HIRV4 (ORCPT ); Mon, 9 Aug 2010 13:21:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52452 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834Ab0HIRVy (ORCPT ); Mon, 9 Aug 2010 13:21:54 -0400 Subject: Re: v2.6.35-git2 SELinux build failure From: Eric Paris To: "Theodore Ts'o" Cc: James Morris , Eric Paris , linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 09 Aug 2010 13:21:49 -0400 Message-ID: <1281374509.2974.16.camel@dhcp231-200.rdu.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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