filter: new automatic whitelisting rules and strict/paranoid policies
The 'default' filter policy was based on blacklisting as much as possible and otherwise allow. The new 'strict' filter policy will be based on whitelisting as much as much as possible, using custom defined rules, and otherwise forbid the ports. The new 'paranoid' filter policy is equivalent to the 'strict' filter after having applied the blacklist rules from the 'default' filter.
This commit is contained in:
@@ -1139,7 +1139,9 @@ initable_init (GInitable *initable,
|
||||
#endif
|
||||
|
||||
/* Create filter */
|
||||
priv->filter = mm_filter_new (priv->filter_policy);
|
||||
priv->filter = mm_filter_new (priv->filter_policy, error);
|
||||
if (!priv->filter)
|
||||
return FALSE;
|
||||
|
||||
/* Create plugin manager */
|
||||
priv->plugin_manager = mm_plugin_manager_new (priv->plugin_dir, error);
|
||||
|
Reference in New Issue
Block a user