sculpt: provide empty usb default policy

This avoids service-denied errors of USB clients like VBox at
integration time when client-specific policy exists yet.

Issue #5174
This commit is contained in:
Norman Feske 2024-04-15 14:27:00 +02:00
parent 22a731b671
commit 29960db32c

View File

@ -86,6 +86,9 @@ struct Sculpt::Usb_driver : private Noncopyable
config.for_each_sub_node("policy", [&] (Xml_node const &policy) {
copy_node(xml, policy); });
/* wildcard for USB clients with no policy yet */
xml.node("default-policy", [&] { });
_info.gen_usb_storage_policies(xml);
});
}