Re: scripts/selinux build error in 4.14 after glibc update

From: Nathan Chancellor
Date: Mon Apr 22 2019 - 22:26:52 EST


On Mon, Apr 22, 2019 at 09:59:47PM -0400, Paul Moore wrote:
> On Mon, Apr 22, 2019 at 5:00 PM Nathan Chancellor
> <natechancellor@xxxxxxxxx> wrote:
> > Hi all,
> >
> > After a glibc update to 2.29, my 4.14 builds started failing like so:
>
> ...
>
> > HOSTCC scripts/selinux/genheaders/genheaders
> > In file included from scripts/selinux/genheaders/genheaders.c:19:
> > ./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
> > #error New address family defined, please update secclass_map.
> > ^~~~~
>
> This is a known problem that has a fix in the selinux/next branch and
> will be going up to Linus during the next merge window. The fix is
> quite small and should be relatively easy for you to backport to your
> kernel build if you are interested; the patch can be found at the
> archive link below:
>
> https://lore.kernel.org/selinux/20190225005528.28371-1-paulo@xxxxxxxx
>
> --
> paul moore
> www.paul-moore.com

Awesome, thank you! I will apply that for now and wait for it to get
backported to stable after the next merge window.

I appreciate the quick response,
Nathan