Advertisement
infected_

Untitled

Jul 23rd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. static enum audit_state audit_filter_task(struct task_struct *tsk, char **key)
  2. {
  3. struct audit_entry *e;
  4. enum audit_state state;
  5.  
  6. rcu_read_lock();
  7. list_for_each_entry_rcu(e, &audit_filter_list[AUDIT_FILTER_TASK], list) {
  8. if (audit_filter_rules(tsk, &e->rule, NULL, NULL,
  9. &state, true)) {
  10. if (state == AUDIT_RECORD_CONTEXT)
  11. *key = kstrdup(e->rule.filterkey, GFP_ATOMIC);
  12. rcu_read_unlock();
  13. return state;
  14. }
  15. }
  16. rcu_read_unlock();
  17. return AUDIT_BUILD_CONTEXT;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement