Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

RPC Name

Inputs

Outputs

Description

add_rule

string name
string conditions
string actions
string undo_actions

-

Adds a rule to the policy.

remove_rule

string rule_name

-

Deletes a rule from the policy.

add_var

string name
string value

-

Adds a variable to the policy.

remove_var

string name

-

Deletes a variable from the policy.

load_policy_from_db

-

-

Reloads the policy from the DB.

load_policy_from_file

string filename

-

Loads policy from a text file.

clear_policy

-

-

Deletes all rules and variables.

clear_rules

-

-

Deletes all rules.

clear_vars

-

-

Deletes all variables.

get_conditions

-

string conditions

Gets a list of available conditions.

get_actions

-

string actions

Gets a list of available actions.

get_rules

-

string rules

Gets the list of currently loaded rules.

get_vars

-

string vars

Gets the list of currently loaded variables.

 

DBus Examples

The dbus-send application provides a convenient way to issue calls on DBus:

...