diff options
Diffstat (limited to 'recipes-kernel')
| -rw-r--r-- | recipes-kernel/linux/linux-yocto/container-net.cfg | 20 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto/container-net.cfg b/recipes-kernel/linux/linux-yocto/container-net.cfg new file mode 100644 index 00000000..74b567d7 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/container-net.cfg | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # nftables support for container networking (netavark) | ||
| 2 | CONFIG_NF_TABLES=y | ||
| 3 | CONFIG_NF_TABLES_INET=y | ||
| 4 | CONFIG_NFT_CT=y | ||
| 5 | CONFIG_NFT_LOG=y | ||
| 6 | CONFIG_NFT_LIMIT=y | ||
| 7 | CONFIG_NFT_MASQ=y | ||
| 8 | CONFIG_NFT_NAT=y | ||
| 9 | CONFIG_NFT_REJECT=y | ||
| 10 | CONFIG_NFT_REJECT_INET=y | ||
| 11 | CONFIG_NFT_COMPAT=y | ||
| 12 | CONFIG_NFT_FIB=y | ||
| 13 | CONFIG_NFT_FIB_INET=y | ||
| 14 | CONFIG_NFT_FIB_IPV4=y | ||
| 15 | CONFIG_NFT_FIB_IPV6=y | ||
| 16 | |||
| 17 | # Connection tracking (required by nftables ct and masquerade) | ||
| 18 | CONFIG_NF_CONNTRACK=y | ||
| 19 | CONFIG_NF_NAT=y | ||
| 20 | CONFIG_NF_NAT_MASQUERADE=y | ||
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index 486e77ce..2cf1df74 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
| @@ -112,6 +112,7 @@ KERNEL_FEATURES:append = "${@distro_cond_feature('cgl/features/selinux/selinux.c | |||
| 112 | 112 | ||
| 113 | # vcontainer | 113 | # vcontainer |
| 114 | KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/container.scc', 'vcontainer', d)}" | 114 | KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/container.scc', 'vcontainer', d)}" |
| 115 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vcontainer', ' file://container-net.cfg', '', d)}" | ||
| 115 | 116 | ||
| 116 | # vxn: Xen PV guest support for vcontainer-on-Xen | 117 | # vxn: Xen PV guest support for vcontainer-on-Xen |
| 117 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vxn', ' file://vxn.cfg', '', d)}" | 118 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vxn', ' file://vxn.cfg', '', d)}" |
