bmcweb: Set BMCWEB_HTTP_REQ_BODY_LIMIT_MB to 400
By default, bmcweb limits the size of the http request body to 30MB
to limit a DOS attack based on a large file size.
OpenBMC supports "System" or "bundled" images that contain two or more
firmware images. For OpenPOWER systems, these include the BMC and Host
firmware making the resulting image greater than the default 30MB.
A configurable option (BMCWEB_HTTP_REQ_BODY_LIMIT_MB) was added to
bmcweb to be able to change this limit:
https://github.com/openbmc/bmcweb/commit/0e1cf26b1cd98e0ec069e6187434fcabf1e9c200
Set this option to an arbitrary size of 400MB since the size of /tmp
for currently supported OpenBMC systems is ~460MB and /tmp is where
the uploaded image files are stored.
Change-Id: Ieec1e6f617af42f01b03f20244c68839c09f6951
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/recipes-phosphor/interfaces/bmcweb_%.bbappend b/recipes-phosphor/interfaces/bmcweb_%.bbappend
index bc134ae..632d240 100644
--- a/recipes-phosphor/interfaces/bmcweb_%.bbappend
+++ b/recipes-phosphor/interfaces/bmcweb_%.bbappend
@@ -1,4 +1,5 @@
EXTRA_OECMAKE_append_df-openpower = " \
-DBMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES=ON \
-DBMCWEB_ENABLE_LOGGING_MW=ON \
+ -DBMCWEB_HTTP_REQ_BODY_LIMIT_MB=400 \
"