Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static enum audit_state audit_filter_task(struct task_struct *tsk, char **key)
- {
- struct audit_entry *e;
- enum audit_state state;
- rcu_read_lock();
- list_for_each_entry_rcu(e, &audit_filter_list[AUDIT_FILTER_TASK], list) {
- if (audit_filter_rules(tsk, &e->rule, NULL, NULL,
- &state, true)) {
- if (state == AUDIT_RECORD_CONTEXT)
- *key = kstrdup(e->rule.filterkey, GFP_ATOMIC);
- rcu_read_unlock();
- return state;
- }
- }
- rcu_read_unlock();
- return AUDIT_BUILD_CONTEXT;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement