summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/zone.c
diff options
context:
space:
mode:
authorMarek Pospisil <Marek.Pospisil@Sun.COM>2010-03-05 13:16:08 -0800
committerMarek Pospisil <Marek.Pospisil@Sun.COM>2010-03-05 13:16:08 -0800
commit005d3feb53a9a10272d4a24b03991575d6a9bcb3 (patch)
tree3c239c5ec7be3de4c1719c4539033149da56a799 /usr/src/uts/common/os/zone.c
parent83d7a2524bdbf7b1da1c47b52bc20eee0f12c60e (diff)
downloadillumos-joyent-005d3feb53a9a10272d4a24b03991575d6a9bcb3.tar.gz
PSARC/2009/354 Always on / no reboot Solaris Audit
6192139 Solaris auditing should be able to start collecting audit records without a reboot
Diffstat (limited to 'usr/src/uts/common/os/zone.c')
-rw-r--r--usr/src/uts/common/os/zone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/zone.c b/usr/src/uts/common/os/zone.c
index ed1286bf97..4f08e77f59 100644
--- a/usr/src/uts/common/os/zone.c
+++ b/usr/src/uts/common/os/zone.c
@@ -3072,7 +3072,8 @@ zone_chdir(vnode_t *vp, vnode_t **vpp, proc_t *pp)
/* we're going to hold a reference here to the directory */
VN_HOLD(vp);
- if (audit_active) /* update abs cwd/root path see c2audit.c */
+ /* update abs cwd/root path see c2/audit.c */
+ if (AU_AUDITING())
audit_chdirec(vp, vpp);
mutex_enter(&pp->p_lock);