filter: remove support for TTY blacklist, TTY greylist and TTY default allowed
These lists were used in the corresponding TTY_BLACKLIST and TTY_MANUAL_SCAN_ONLY filter rules, in the LEGACY and PARANOID filter types, which are no longer supported. The DEFAULT_ALLOWED filter rule made sense only in the LEGACY filter type, and therefore it is also now removed, leaving the DEFAULT_FORBIDDEN fallback rule exclusively. In other words, there is now no way to ask ModemManager to implicitly allow TTY ports; the only way to do that is by explicit making the TTY ports fall in one filter rule that would allow them.
This commit is contained in:
@@ -197,37 +197,12 @@ $ sudo udevadm trigger
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY, MM_FILTER_RULE_TTY_DEFAULT_ALLOWED and MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN</emphasis></para>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY</emphasis></para>
|
||||
<para>
|
||||
If the MM_FILTER_RULE_TTY filter is disabled, no TTY port will be allowed. If this
|
||||
filter is enabled, TTY ports will only be allowed if the TTY-specific filters (defined
|
||||
next) allow it.
|
||||
</para>
|
||||
<para>
|
||||
The MM_FILTER_RULE_TTY_DEFAULT_ALLOWED and MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN rules allow
|
||||
defining what happens when a TTY port isn't explicitly forbidden or accepted by any of
|
||||
the TTY-specific filters. When MM_FILTER_RULE_TTY is enabled, one of these other two options
|
||||
must be set.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY_BLACKLIST</emphasis></para>
|
||||
<para>
|
||||
This filter will not allow probing any of the devices flagged as
|
||||
<emphasis>ID_MM_TTY_BLACKLIST</emphasis>, like the ones in the default blacklist
|
||||
shipped by ModemManager.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY_MANUAL_SCAN_ONLY</emphasis></para>
|
||||
<para>
|
||||
This filter will not allow automatic probing any of the devices flagged as
|
||||
<emphasis>ID_MM_TTY_MANUAL_SCAN_ONLY</emphasis>, like the ones in the default
|
||||
USB serial adapters greylist shipped by ModemManager. Devices flagged like
|
||||
this will only be probed when a manual scan is requested via the
|
||||
<link linkend="gdbus-method-org-freedesktop-ModemManager1.ScanDevices">ScanDevices</link>
|
||||
method.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY_PLATFORM_DRIVER</emphasis></para>
|
||||
@@ -257,6 +232,13 @@ $ sudo udevadm trigger
|
||||
interface port will be allowed automatically.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN</emphasis></para>
|
||||
<para>
|
||||
This rule is the implicit one defining what happens when a TTY port isn't explicitly
|
||||
accepted by any of the TTY-specific filters; i.e. the TTY port will be forbidden.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_WWAN</emphasis></para>
|
||||
<para>
|
||||
@@ -270,6 +252,24 @@ $ sudo udevadm trigger
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The following filter rules have been deprecated and are no longer used.
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY_BLACKLIST</emphasis></para>
|
||||
<para>
|
||||
Deprecated in 1.18.0.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY_MANUAL_SCAN_ONLY</emphasis></para>
|
||||
<para>
|
||||
Deprecated in 1.18.0.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user