From c4bf785d6771764cbee116e36c6780462223c4fa Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 16 Oct 2017 21:33:15 +0200 Subject: filter: allow selection of filter policy on startup Added a new '--filter-policy=[POLICY]' option in the daemon, which allows selecting between the supported filter policies. For now, only two policies are defined: * default: the default policy used by ModemManager, where it tries to probe and detect as many modem ports as possible. * whitelist-only: only devices explicitly tagged via udev (with the ID_MM_DEVICE_PROCESS tag) will be probed and used. --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index bf2564c9..96190b84 100644 --- a/src/main.c +++ b/src/main.c @@ -87,6 +87,7 @@ bus_acquired_cb (GDBusConnection *connection, manager = mm_base_manager_new (connection, mm_context_get_test_plugin_dir (), !mm_context_get_no_auto_scan (), + mm_context_get_filter_policy (), mm_context_get_initial_kernel_events (), mm_context_get_test_enable (), &error); -- cgit v1.2.3-70-g09d2