Allow configuring user
Add a new option to allow configuring bmcweb to run as a 'bmcweb' user
instead of root. This option is disabled by default, and the behavior
is very broken at this point, but should serve as a starting point for
getting the issues resolved.
Tested:
Enabled option. Observed with ps, that bmcweb launched correctly, and
was running as the bmcweb user. With authentication disabled, passes
redfish service validator.
Booted without option enabled, and saw bmcweb boot and function.
Change-Id: Iac0335697020308bb632f5522b712f5eea0b2486
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/meson.options b/meson.options
index 5ec28cd..bf44d11 100644
--- a/meson.options
+++ b/meson.options
@@ -467,6 +467,17 @@
production environment, or where API stability is required.''',
)
+# BMCWEB_EXPERIMENTAL_BMCWEB_USER
+option(
+ 'experimental-bmcweb-user',
+ type: 'feature',
+ value: 'disabled',
+ description: '''Enable to run bmcweb as the bmcweb user. This is
+ experimental. Expect many things to be broken if you enable this
+ option, and this should not be used for production usage. This
+ option will be removed Q1 2026.''',
+)
+
# BMCWEB_HTTP2
option(
'http2',