Re: [PATCH] audit: move calcs after alloc and check when logging set loginuid

2016-06-28 Thread Paul Moore
On Tue, Jun 28, 2016 at 12:06 PM, Richard Guy Briggs wrote: > Move the calculations of values after the allocation in case the > allocation fails. This avoids wasting effort in the rare case that it > fails, but more importantly saves us extra logic to release the tty ref. > > Signed-off-by: Rich

[PATCH] audit: move calcs after alloc and check when logging set loginuid

2016-06-28 Thread Richard Guy Briggs
Move the calculations of values after the allocation in case the allocation fails. This avoids wasting effort in the rare case that it fails, but more importantly saves us extra logic to release the tty ref. Signed-off-by: Richard Guy Briggs --- kernel/auditsc.c |7 --- 1 files changed,