From 005d3feb53a9a10272d4a24b03991575d6a9bcb3 Mon Sep 17 00:00:00 2001 From: Marek Pospisil Date: Fri, 5 Mar 2010 13:16:08 -0800 Subject: PSARC/2009/354 Always on / no reboot Solaris Audit 6192139 Solaris auditing should be able to start collecting audit records without a reboot --- usr/src/uts/common/syscall/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/syscall/stat.c') diff --git a/usr/src/uts/common/syscall/stat.c b/usr/src/uts/common/syscall/stat.c index 87ede7fe62..90d191bd9e 100644 --- a/usr/src/uts/common/syscall/stat.c +++ b/usr/src/uts/common/syscall/stat.c @@ -103,7 +103,7 @@ cstatat_getvp(int fd, char *name, int follow, vnode_t **vp, cred_t **cred) } *cred = cr; - if (audit_active) + if (AU_AUDITING()) audit_setfsat_path(1); lookup: @@ -144,7 +144,7 @@ static int cstat(vnode_t *vp, struct stat *, int, cred_t *); return (set_errno(EFAULT)); \ if ((fp = getf(fd)) == NULL) \ return (set_errno(EBADF)); \ - if (audit_active) \ + if (AU_AUDITING()) \ audit_setfsat_path(1); \ error = statfn(fp->f_vnode, sb, 0, fp->f_cred); \ releasef(fd); \ -- cgit v1.2.3