{
RET_ON_FAILURE(handle, AUDIT_TRAIL_ERROR_INVALID_PARAMETER);
- GetAuditRule(handle).setMask(syscall);
+ try {
+ GetAuditRule(handle).setMask(syscall);
+ return AUDIT_TRAIL_ERROR_NONE;
+ } catch (std::exception &e) {}
- return AUDIT_TRAIL_ERROR_NONE;
+ return AUDIT_TRAIL_ERROR_INVALID_PARAMETER;
}
int audit_rule_remove_systemcall(audit_rule_h handle, unsigned int syscall)
{
RET_ON_FAILURE(handle, AUDIT_TRAIL_ERROR_INVALID_PARAMETER);
- GetAuditRule(handle).unsetMask(syscall);
+ try {
+ GetAuditRule(handle).unsetMask(syscall);
+ return AUDIT_TRAIL_ERROR_NONE;
+ } catch (std::exception &e) {}
- return AUDIT_TRAIL_ERROR_NONE;
+ return AUDIT_TRAIL_ERROR_INVALID_PARAMETER;
}
int audit_rule_add_all_systemcalls(audit_rule_h handle)