tools/ocaml/xenstored: Synchronise defaults with oxenstore.conf.in
authorEdwin Török <edvin.torok@citrix.com>
Wed, 12 Oct 2022 18:13:01 +0000 (19:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 14:07:24 +0000 (14:07 +0000)
commitb0e95b451225de4db99bbe0b8dc79fdf08873e9e
tree7a3841d0982ca6c1c80277404e2dd8217dae6154
parentb584b9b95687655f4f9f5c37fea3b1eea3f32886
tools/ocaml/xenstored: Synchronise defaults with oxenstore.conf.in

We currently have 2 different set of defaults in upstream Xen git tree:
* defined in the source code, only used if there is no config file
* defined in the oxenstored.conf.in upstream Xen

An oxenstored.conf file is not mandatory, and if missing, maxrequests in
particular has an unsafe default.

Resync the defaults from oxenstored.conf.in into the source code.

This is part of XSA-326 / CVE-2022-42316.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
(cherry picked from commit 84734955d4bf629ba459a74773afcde50a52236f)
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/quota.ml