From 3444b029324bb2bd54a6bbd486792d49619e9383 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 4 Nov 2021 22:40:28 +0100 Subject: core: replace 'whitelist' with 'allowlist' and 'blacklist' with 'blocklist' We keep the 'WHITELIST-ONLY' filter type name still as an option in --filter-policy=[POLICY], but deprecated and with the better 'ALLOWLIST-ONLY' replacement suggested from now on. --- docs/reference/api/ModemManager-overview.xml | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'docs/reference/api/ModemManager-overview.xml') diff --git a/docs/reference/api/ModemManager-overview.xml b/docs/reference/api/ModemManager-overview.xml index ff532fe4..12e1adc8 100644 --- a/docs/reference/api/ModemManager-overview.xml +++ b/docs/reference/api/ModemManager-overview.xml @@ -107,7 +107,7 @@ predefined filter policies are based on one or more of these predefined filter rules. - MM_FILTER_RULE_EXPLICIT_WHITELIST + MM_FILTER_RULE_EXPLICIT_ALLOWLIST This filter allows users to manually tag devices and/or device ports with the ID_MM_DEVICE_PROCESS udev tag. If the filter finds this tag, @@ -115,10 +115,10 @@ will be allowed. -$ sudo vim /lib/udev/rules.d/78-mm-whitelist-internal-modem.rules - ACTION!="add|change|move", GOTO="mm_whitelist_internal_modem_end" +$ sudo vim /lib/udev/rules.d/78-mm-allowlist-internal-modem.rules + ACTION!="add|change|move", GOTO="mm_allowlist_internal_modem_end" ATTRS{idVendor}=="1199", ATTRS{idProduct}=="a001", ENV{ID_MM_DEVICE_PROCESS}="1" - LABEL="mm_whitelist_internal_modem_end" + LABEL="mm_allowlist_internal_modem_end" // Apply new rules without reboot $ sudo udevadm control --reload $ sudo udevadm trigger @@ -143,10 +143,10 @@ $ sudo udevadm trigger - MM_FILTER_RULE_PLUGIN_WHITELIST + MM_FILTER_RULE_PLUGIN_ALLOWLIST - This filter will automatically whitelist devices that are explicitly referenced - by plugins, either with plugin-specific whitelist tags, with exact + This filter will automatically allowlist devices that are explicitly referenced + by plugins, either with plugin-specific allowlist tags, with exact vid:pid matches, or just with vid matches. @@ -279,20 +279,20 @@ $ sudo udevadm trigger The predefined filter policies are: - Whitelist only + Allowlist only - This is a policy where only the MM_FILTER_RULE_EXPLICIT_WHITELIST rule is enabled. + This is a policy where only the MM_FILTER_RULE_EXPLICIT_ALLOWLIST rule is enabled. - # /usr/sbin/ModemManager --filter-policy=WHITELIST-ONLY + # /usr/sbin/ModemManager --filter-policy=ALLOWLIST-ONLY Strict This is a policy where the following rules are enabled: - MM_FILTER_RULE_EXPLICIT_WHITELIST - MM_FILTER_RULE_EXPLICIT_BLACKLIST - MM_FILTER_RULE_PLUGIN_WHITELIST + MM_FILTER_RULE_EXPLICIT_ALLOWLIST + MM_FILTER_RULE_EXPLICIT_BLOCKLIST + MM_FILTER_RULE_PLUGIN_ALLOWLIST MM_FILTER_RULE_QRTR MM_FILTER_RULE_VIRTUAL MM_FILTER_RULE_NET @@ -329,13 +329,13 @@ $ sudo udevadm trigger /usr/sbin/ModemManager --filter-policy=STRICT - E.g. this would launch ModemManager with the Whitelist-only filter policy but also + E.g. this would launch ModemManager with the allowlist-only filter policy but also explicitly allowing all net and cdc-wdm ports. Note that in this case, all virtual net ports (e.g. 'lo') are also being allowed. # MM_FILTER_RULE_NET=1 \ MM_FILTER_RULE_USBMISC=1 \ - /usr/sbin/ModemManager --filter-policy=WHITELIST-ONLY + /usr/sbin/ModemManager --filter-policy=ALLOWLIST-ONLY -- cgit v1.2.3-70-g09d2