Re: PATCH [1/1]: audit: acquire creds selectively to reduce atomic op overhead

David Howells
2011-03-15T20:11:28Z

Eric Paris <eparis@redhat.com> wrote:

> WARN_ON(cred != current->cred && cred->refcnt != 1)

'tsk->parent == current' perhaps? Or audit_alloc() could pass a flag
indicating the state, or just look to see if tsk->audit_context is still NULL.

David