diff options
author | Darren Tucker <dtucker@zip.com.au> | 2011-01-17 21:15:27 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2011-01-17 21:15:27 +1100 |
commit | ea52a829699e981a58a69a77342e7ca3715a5f5b (patch) | |
tree | 425c4f3bbd3c691479e707431e0caf8458573b97 /audit.c | |
parent | 263d43d2a58f0fc4cf211808410560c8c3e451d2 (diff) | |
download | openssh-git-ea52a829699e981a58a69a77342e7ca3715a5f5b.tar.gz |
- (dtucker) [LICENCE Makefile.in audit-bsm.c audit-linux.c audit.c audit.h
configure.ac defines.h loginrec.c] Bug #1402: add linux audit subsystem
support, based on patches from Tomas Mraz and jchadima at redhat.
Diffstat (limited to 'audit.c')
-rw-r--r-- | audit.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: audit.c,v 1.5 2006/09/01 05:38:36 djm Exp $ */ +/* $Id: audit.c,v 1.6 2011/01/17 10:15:30 dtucker Exp $ */ /* * Copyright (c) 2004, 2005 Darren Tucker. All rights reserved. @@ -147,9 +147,9 @@ audit_event(ssh_audit_event_t event) * within a single connection. */ void -audit_session_open(const char *ttyn) +audit_session_open(struct logininfo *li) { - const char *t = ttyn ? ttyn : "(no tty)"; + const char *t = li->line ? li->line : "(no tty)"; debug("audit session open euid %d user %s tty name %s", geteuid(), audit_username(), t); @@ -163,9 +163,9 @@ audit_session_open(const char *ttyn) * within a single connection. */ void -audit_session_close(const char *ttyn) +audit_session_close(struct logininfo *li) { - const char *t = ttyn ? ttyn : "(no tty)"; + const char *t = li->line ? li->line : "(no tty)"; debug("audit session close euid %d user %s tty name %s", geteuid(), audit_username(), t); |