filter: trivial: reorder WWAN rule before the TTY ones
This commit is contained in:
@@ -196,6 +196,17 @@ $ sudo udevadm trigger
|
||||
This filter rule is available since 1.16.0.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_WWAN</emphasis></para>
|
||||
<para>
|
||||
This filter will automatically flag as allowed all wwan control ports exposed
|
||||
in the wwan subsystem. Unless there is a will to explicitly forbid the wwan control
|
||||
ports, this filter should always be enabled.
|
||||
</para>
|
||||
<para>
|
||||
This filter rule is available since 1.18.0.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><emphasis>MM_FILTER_RULE_TTY</emphasis></para>
|
||||
<para>
|
||||
@@ -239,17 +250,6 @@ $ sudo udevadm trigger
|
||||
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>
|
||||
This filter will automatically flag as allowed all wwan control ports exposed
|
||||
in the wwan subsystem. Unless there is a will to explicitly forbid the wwan control
|
||||
ports, this filter should always be enabled.
|
||||
</para>
|
||||
<para>
|
||||
This filter rule is available since 1.18.0.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
|
||||
|
||||
+9
-9
@@ -55,13 +55,13 @@ typedef enum { /*< underscore_name=mm_filter_rule >*/
|
||||
MM_FILTER_RULE_NET = 1 << 5,
|
||||
MM_FILTER_RULE_USBMISC = 1 << 6,
|
||||
MM_FILTER_RULE_RPMSG = 1 << 7,
|
||||
MM_FILTER_RULE_TTY = 1 << 8,
|
||||
MM_FILTER_RULE_TTY_PLATFORM_DRIVER = 1 << 9,
|
||||
MM_FILTER_RULE_TTY_DRIVER = 1 << 10,
|
||||
MM_FILTER_RULE_TTY_ACM_INTERFACE = 1 << 11,
|
||||
MM_FILTER_RULE_TTY_WITH_NET = 1 << 12,
|
||||
MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN = 1 << 13,
|
||||
MM_FILTER_RULE_WWAN = 1 << 14,
|
||||
MM_FILTER_RULE_WWAN = 1 << 8,
|
||||
MM_FILTER_RULE_TTY = 1 << 9,
|
||||
MM_FILTER_RULE_TTY_PLATFORM_DRIVER = 1 << 10,
|
||||
MM_FILTER_RULE_TTY_DRIVER = 1 << 11,
|
||||
MM_FILTER_RULE_TTY_ACM_INTERFACE = 1 << 12,
|
||||
MM_FILTER_RULE_TTY_WITH_NET = 1 << 13,
|
||||
MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN = 1 << 14,
|
||||
} MMFilterRule;
|
||||
|
||||
/* This is a stricter policy which will only automatically probe device ports
|
||||
@@ -75,13 +75,13 @@ typedef enum { /*< underscore_name=mm_filter_rule >*/
|
||||
MM_FILTER_RULE_NET | \
|
||||
MM_FILTER_RULE_USBMISC | \
|
||||
MM_FILTER_RULE_RPMSG | \
|
||||
MM_FILTER_RULE_WWAN | \
|
||||
MM_FILTER_RULE_TTY | \
|
||||
MM_FILTER_RULE_TTY_PLATFORM_DRIVER | \
|
||||
MM_FILTER_RULE_TTY_DRIVER | \
|
||||
MM_FILTER_RULE_TTY_ACM_INTERFACE | \
|
||||
MM_FILTER_RULE_TTY_WITH_NET | \
|
||||
MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN | \
|
||||
MM_FILTER_RULE_WWAN)
|
||||
MM_FILTER_RULE_TTY_DEFAULT_FORBIDDEN)
|
||||
|
||||
/* This policy only allows using device ports explicitly whitelisted via
|
||||
* udev rules. i.e. ModemManager won't do any kind of automatic probing. */
|
||||
|
||||
Reference in New Issue
Block a user