Re: [PATCH 3/7] audit: eliminate string copy for new tree rules

2014-10-10 Thread Eric Paris
On Thu, 2014-10-02 at 22:05 -0400, Richard Guy Briggs wrote: > New tree rules copy the path twice and discard the intermediary copy. > > This saves one pointer at the expense of one path string copy. > > Signed-off-by: Richard Guy Briggs > --- > kernel/audit_tree.c |9 + >

Re: [PATCH 3/7] audit: eliminate string copy for new tree rules

2014-10-10 Thread Eric Paris
On Thu, 2014-10-02 at 22:05 -0400, Richard Guy Briggs wrote: New tree rules copy the path twice and discard the intermediary copy. This saves one pointer at the expense of one path string copy. Signed-off-by: Richard Guy Briggs r...@redhat.com --- kernel/audit_tree.c |9 +

[PATCH 3/7] audit: eliminate string copy for new tree rules

2014-10-02 Thread Richard Guy Briggs
New tree rules copy the path twice and discard the intermediary copy. This saves one pointer at the expense of one path string copy. Signed-off-by: Richard Guy Briggs --- kernel/audit_tree.c |9 + kernel/auditfilter.c |5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-)

[PATCH 3/7] audit: eliminate string copy for new tree rules

2014-10-02 Thread Richard Guy Briggs
New tree rules copy the path twice and discard the intermediary copy. This saves one pointer at the expense of one path string copy. Signed-off-by: Richard Guy Briggs r...@redhat.com --- kernel/audit_tree.c |9 + kernel/auditfilter.c |5 +++-- 2 files changed, 8 insertions(+),