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

David Howells dhowells at redhat.com
Tue Mar 15 20:11:17 UTC 2011


Eric Paris <eparis at 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




More information about the Linux-audit mailing list