Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save JustinAzoff/cbc5fc296be916a3167e to your computer and use it in GitHub Desktop.

Select an option

Save JustinAzoff/cbc5fc296be916a3167e to your computer and use it in GitHub Desktop.
module Notice;
export {
redef enum Action += {
ACTION_TM_QUERY,
};
const tm_query_types: set[Type] = {} &redef;
}
hook policy(n: Info)
{
if ( n$note !in tm_query_types )
return;
add n$actions[ACTION_TM_QUERY];
TimeMachine::dump_conn(n$conn);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment