From: Bastian Stender <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Stender <bst@pengutronix.de>
Subject: [ptxdist] [PATCH 2/2] iptables: set FILE_OFFSET_BITS to work with 64 bit inodes
Date: Wed, 19 Jul 2017 11:59:20 +0200 [thread overview]
Message-ID: <20170719095920.19192-2-bst@pengutronix.de> (raw)
In-Reply-To: <20170719095920.19192-1-bst@pengutronix.de>
In case of 64 bit inodes calls to 32 bit variants of stat() will cause
EOVERFLOW and iptables will terminate with
Value too large for defined data type
FILE_OFFSET_BITS=64 makes the code receive 64 bit values.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
---
rules/iptables.make | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rules/iptables.make b/rules/iptables.make
index c6effca35..721030aac 100644
--- a/rules/iptables.make
+++ b/rules/iptables.make
@@ -51,6 +51,8 @@ IPTABLES_CONF_OPT := \
--with-kernel=$(KERNEL_HEADERS_DIR) \
--with-xtlibdir=/usr/lib
+IPTABLES_CFLAGS:= -D_FILE_OFFSET_BITS=64
+
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2017-07-19 9:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 9:59 [ptxdist] [PATCH 1/2] avahi: " Bastian Stender
2017-07-19 9:59 ` Bastian Stender [this message]
2017-07-19 10:19 ` Uwe Kleine-König
2017-07-24 12:16 ` Bastian Stender
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170719095920.19192-2-bst@pengutronix.de \
--to=bst@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox