return ret;
}
-int smack_rule_set_save_kernel(SmackRuleSet handle, const char *path)
+int smack_rule_set_apply_kernel(SmackRuleSet handle, const char *path)
{
struct smack_subject *s, *stmp;
struct smack_object *o, *otmp;
return 0;
}
-int smack_rule_set_clear_from_kernel(SmackRuleSet handle, const char *path)
+int smack_rule_set_clear_kernel(SmackRuleSet handle, const char *path)
{
struct smack_subject *s, *stmp;
struct smack_object *o, *otmp;
* @param path path to the SmackFS load file
* @return 0 on success
*/
-extern int smack_rule_set_save_kernel(SmackRuleSet handle, const char *path);
+extern int smack_rule_set_apply_kernel(SmackRuleSet handle, const char *path);
/*!
* Clear rules from kernel.
* @param path path to the rules file
* @return 0 on success
*/
-extern int smack_rule_set_clear_from_kernel(SmackRuleSet handle, const char *path);
+extern int smack_rule_set_clear_kernel(SmackRuleSet handle, const char *path);
/*!
* Add new rule to a rule set. Updates existing rule if there is already rule
smack_rule_set_remove(rules, "Plum", "Peach");
- rc = smack_rule_set_save_kernel(
+ rc = smack_rule_set_apply_kernel(
rules,
"test_save_to_kernel-result.txt");
fail_unless(rc == 0, "Failed to write the rule set");