nginx-server test need forbidden nf_conntrack when os setup
Signed-off-by: Wei Jihui weijihuiall@163.com --- pkg/nginx-server/PKGBUILD | 3 +++ pkg/nginx-server/blacklist.conf | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 pkg/nginx-server/blacklist.conf
diff --git a/pkg/nginx-server/PKGBUILD b/pkg/nginx-server/PKGBUILD index a8a7091b..95810b1a 100644 --- a/pkg/nginx-server/PKGBUILD +++ b/pkg/nginx-server/PKGBUILD @@ -20,4 +20,7 @@ package() { cd "${srcdir}/nginx-${pkgver}.${pkgrel}" make install DESTDIR="${pkgdir}" + + mkdir -p "$pkgdir/rootfs/addon/etc/modprobe.d/" + cp "$LKP_SRC/pkg/${pkgname}/blacklist.conf" "$pkgdir/rootfs/addon/etc/modprobe.d/" } diff --git a/pkg/nginx-server/blacklist.conf b/pkg/nginx-server/blacklist.conf new file mode 100644 index 00000000..e8798cc7 --- /dev/null +++ b/pkg/nginx-server/blacklist.conf @@ -0,0 +1,10 @@ +install nf_conntrack /bin/false +blacklist nf_conntrack +blacklist nf_conntrack_ipv6 +blacklist xt_conntrack +blacklist nf_conntrack_ftp +blacklist xt_state +blacklist iptable_nat +blacklist ipt_REDIRECT +blacklist nf_nat +blacklist nf_conntrack_ipv4