From: Emanuele Giuseppe Esposito Date: Thu, 17 Jul 2025 14:16:24 +0000 (-0400) Subject: sysext: support ImagePolicy global config option X-Git-Tag: v259-rc1~558^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=887d0f8e9358b7009e58c90b6af82379d16246de;p=thirdparty%2Fsystemd.git sysext: support ImagePolicy global config option Just as Mutable=, support ImagePolicy in systemd/{sysext/confext}.conf and dropins in systemd/{sysext.confext}.conf.d/* configs. --- diff --git a/man/sysext.conf.xml b/man/sysext.conf.xml index cdd88f24474..f717b74426a 100644 --- a/man/sysext.conf.xml +++ b/man/sysext.conf.xml @@ -73,6 +73,18 @@ + + + ImagePolicy= + Set the image policy. Takes an image policy string as argument, as per + systemd.image-policy7. + For details, see the option in + systemd-sysext8. + + + + + diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c index a4512d48e55..15a00237e42 100644 --- a/src/sysext/sysext.c +++ b/src/sysext/sysext.c @@ -155,6 +155,7 @@ static int parse_config_file(ImageClass image_class) { const char *section = image_class == IMAGE_SYSEXT ? "SysExt" : "ConfExt"; const ConfigTableItem items[] = { { section, "Mutable", config_parse_mutable_mode, 0, &arg_mutable }, + { section, "ImagePolicy", config_parse_image_policy, 0, &arg_image_policy }, {} }; _cleanup_free_ char *config_file = NULL;