[GIT PULL] Audit fixes for 4.7 (#1)

From: Paul Moore
Date: Wed Jun 29 2016 - 12:58:18 EST


Hi Linus,

Two small patches to fix audit problems in 4.7-rcX; the first fixes a
potential kref leak, the second removes some header file noise. The
first is an important bug fix that really should go in before 4.7 is
released, the second is not critical, but falls into the
very-nice-to-have category so I'm including in the pull request; if
you object to the second let me know and I'll send a new request with
just the first patch.

Both patches are straightforward, self-contained, and pass our
testsuite without problem; please merge into the next v4.7-rcX
release.

Thanks,
-Paul

---
The following changes since commit 188e3c5cd2b672620291e64a21f1598fe91e40b6:

tty: provide tty_name() even without CONFIG_TTY (2016-04-27 17:12:58 -0400)

are available in the git repository at:

git://git.infradead.org/users/pcmoore/audit stable-4.7

for you to fetch changes up to 3f5be2da8565c1cce5655bb0948fcc957c6eb6c6:

audit: move audit_get_tty to reduce scope and kabi changes
(2016-06-28 15:48:48 -0400)

----------------------------------------------------------------
Richard Guy Briggs (2):
audit: move calcs after alloc and check when logging set loginuid
audit: move audit_get_tty to reduce scope and kabi changes

include/linux/audit.h | 24 ------------------------
kernel/audit.c | 17 +++++++++++++++++
kernel/audit.h | 4 ++++
kernel/auditsc.c | 8 ++++----
4 files changed, 25 insertions(+), 28 deletions(-)

--
paul moore
security @ redhat