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

From: David Howells
Date: Tue Mar 15 2011 - 16:11:31 EST


Eric Paris <eparis@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/