the same 4.15 kernel is getting built on b/c/d/e, and scripts/selinux/genheaders/genheaders.c includes the local header files, specifically <sys/socket.h>:
#include <sys/socket.h>
which define PF_MAX (via AF_MAX) as 45 for cosmic and later. however genheaders.c also:
#include "classmap.h"
which is security/selinux/include/classmap.h and that does:
#if PF_MAX > 44
#error New address family defined, please update secclass_map.
#endif
This is probably a bug that should be fixed in genheaders.c upstream, although I don't quite understand why the 4.15 linux-oracle kernel is getting built on cosmic, disco, or eoan.
the same 4.15 kernel is getting built on b/c/d/e, and scripts/ selinux/ genheaders/ genheaders. c includes the local header files, specifically <sys/socket.h>: selinux/ include/ classmap. h and that does:
#include <sys/socket.h>
which define PF_MAX (via AF_MAX) as 45 for cosmic and later. however genheaders.c also:
#include "classmap.h"
which is security/
#if PF_MAX > 44
#error New address family defined, please update secclass_map.
#endif
$ git grep AF_MAX ubuntu/ bionic/ master- next socket.h bionic/ master- next:socket. h:#define AF_MAX 44 /* For now.. */ bionic/ master- next:socket. h:#define PF_MAX AF_MAX cosmic/ master- next socket.h cosmic/ master- next:socket. h:#define AF_MAX 45 /* For now.. */ cosmic/ master- next:socket. h:#define PF_MAX AF_MAX disco/master- next socket.h disco/master- next:socket. h:#define AF_MAX 45 /* For now.. */ disco/master- next:socket. h:#define PF_MAX AF_MAX eoan/master- next socket.h eoan/master- next:socket. h:#define AF_MAX 45 /* For now.. */ eoan/master- next:socket. h:#define PF_MAX AF_MAX
ubuntu/
ubuntu/
$ git grep AF_MAX ubuntu/
ubuntu/
ubuntu/
$ git grep AF_MAX ubuntu/
ubuntu/
ubuntu/
$ git grep AF_MAX ubuntu/
ubuntu/
ubuntu/
This is probably a bug that should be fixed in genheaders.c upstream, although I don't quite understand why the 4.15 linux-oracle kernel is getting built on cosmic, disco, or eoan.