listRules (IN s query, OUT a(us) ruleset); appendRule (IN s rule, IN u parent_id, OUT u id); removeRule (IN u id); |
listRules (IN s query, OUT a(us) ruleset); |
List the current rule set (policy) used by the USBGuard daemon. The rules are returned in the same order as they are evaluated.
A query, in the rule language syntax, for matching rules.
An array of (rule_id, rule) tuples.
appendRule (IN s rule, IN u parent_id, OUT u id); |
Append a new rule to the current policy. Using the parent_id parameter, the rule can be inserted anywhere in the policy, not only at the end. When the rule is successfully appended, the id assigned to the new rule is returned.
The rule that should be appended to the policy.
Rule id of the parent rule.
The rule id assigned to the succesfully appended rule.