Re: selinux build error -âFILE__AUDIT_ACCESSâ undeclared

From: Eric Paris
Date: Tue Aug 17 2010 - 07:37:50 EST


On Tue, 2010-08-17 at 16:15 +0800, Lin Ming wrote:
> Current -tip(a3b97ee) tree build error.
> My config attached.
>
> linux-2.6/security/selinux/hooks.c: In function âselinux_inode_permissionâ:
> linux-2.6/security/selinux/hooks.c:2647:38: error: âFILE__AUDIT_ACCESSâ undeclared (first use in this function)
>
> It was introduced by below commit.
>
> commit b782e0a68d17894d9a618ffea55b33639faa6bb4
> Author: Eric Paris <eparis@xxxxxxxxxx>
> Date: Fri Jul 23 11:44:03 2010 -0400
>
> SELinux: special dontaudit for access checks
>
> Lin Ming

did you build with O= ?

Fixed in a7a387cc596278af1516c534b50cc0bee171129d but you have to run
make clean. If you want to fix it up by hand run:

find . -name av_pernmissions.h | xargs rm

Your builds will work find after that.

-Eric

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/