]> git.baikalelectronics.ru Git - kernel.git/commit
audit: allow audit code to satisfy getname requests from its names_list
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Oct 2012 19:25:28 +0000 (15:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Oct 2012 00:15:08 +0000 (20:15 -0400)
commitd49c78fc10ffe3ea3c4935b071975f3a216eaadb
tree9e7941e2d8dfb2106c5fb28504531dafc72e14e6
parent232faf9de894444d80b6e77ae09ebadc027203bf
audit: allow audit code to satisfy getname requests from its names_list

Currently, if we call getname() on a userland string more than once,
we'll get multiple copies of the string and multiple audit_names
records.

Add a function that will allow the audit_names code to satisfy getname
requests using info from the audit_names list, avoiding a new allocation
and audit_names records.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
include/linux/audit.h
kernel/auditsc.c