audit: rename the misleading audit_get_context() to audit_take_context()
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 18 Feb 2014 20:29:43 +0000 (15:29 -0500)
committerEric Paris <eparis@redhat.com>
Thu, 20 Mar 2014 14:11:54 +0000 (10:11 -0400)
commit4a3eb726d1543c4b616b9a0a4d4c53ddd276f5f4
treedeb241702245a155b36a36ab93a19096eb41eb19
parent4b58841149dcaa500ceba1d5378ae70622fe4899
audit: rename the misleading audit_get_context() to audit_take_context()

"get" usually implies incrementing a refcount into a structure to indicate a
reference being held by another part of code.

Change this function name to indicate it is in fact being taken from it,
returning the value while clearing it in the supplying structure.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
kernel/auditsc.c