* 02110-1301 USA
*
* Authors:
- * Jarkko Sakkinen <ext-jarkko.2.sakkinen@nokia.com>
+ * Jarkko Sakkinen <jarkko.sakkinen@intel.com>
* Brian McGillion <brian.mcgillion@intel.com>
*/
return ret;
}
-int smack_rule_set_apply_kernel(SmackRuleSet handle, const char *path)
+int smack_rule_set_apply_kernel(SmackRuleSet handle)
{
struct smack_subject *s, *stmp;
struct smack_object *o, *otmp;
char str[6];
int err = 0;
- file = fopen(path, "w+");
+ file = fopen(SMACK_LOAD_PATH, "w+");
if (!file)
return -1;
return 0;
}
-int smack_rule_set_clear_kernel(SmackRuleSet handle, const char *path)
+int smack_rule_set_clear_kernel(SmackRuleSet handle)
{
struct smack_subject *s, *stmp;
struct smack_object *o, *otmp;
char str[6];
int err = 0;
- file = fopen(path, "w+");
+ file = fopen(SMACK_LOAD_PATH, "w+");
if (!file)
return -1;
* 02110-1301 USA
*
* Authors:
- * Jarkko Sakkinen <ext-jarkko.2.sakkinen@nokia.com>
+ * Jarkko Sakkinen <jarkko.sakkinen@intel.com>
*/
/*!
* Apply rules to kernel.
*
* @param handle handle to a rule set
- * @param path path to the SmackFS load file
* @return Returns negative value on failure.
*/
-extern int smack_rule_set_apply_kernel(SmackRuleSet handle, const char *path);
+extern int smack_rule_set_apply_kernel(SmackRuleSet handle);
/*!
* Clear given set of rules from kernel.
*
* @param handle handle to a rules
- * @param path path to the rules file
* @return Returns negative value on failure.
*/
-extern int smack_rule_set_clear_kernel(SmackRuleSet handle, const char *path);
+extern int smack_rule_set_clear_kernel(SmackRuleSet handle);
/*!
* Add new rule to a rule set. Updates existing rule if there is already rule