參考資訊:
https://mudongliang.github.io/2021/01/20/error-new-address-family-defined-please-update-secclass_map.html
問題如下:
In file included from scripts/selinux/genheaders/genheaders.c:19: ./security/selinux/include/classmap.h:261:2: error: #error New address family defined, please update secclass_map. 261 | #error New address family defined, please update secclass_map. | ^~~~~ make[3]: *** [scripts/Makefile.host:107: scripts/selinux/genheaders/genheaders] Error 1 make[2]: *** [scripts/Makefile.build:505: scripts/selinux/genheaders] Error 2 make[1]: *** [scripts/Makefile.build:505: scripts/selinux] Error 2 make: *** [Makefile:1106: scripts] Error 2
解法如下:
$ vim scripts/selinux/genheaders/genheaders.c +12 #include <linux/socket.h>