audit_worker.c (181053) | audit_worker.c (182371) |
---|---|
1/*- 2 * Copyright (c) 1999-2005 Apple Inc. 3 * Copyright (c) 2006-2008 Robert N. M. Watson 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999-2005 Apple Inc. 3 * Copyright (c) 2006-2008 Robert N. M. Watson 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/security/audit/audit_worker.c 181053 2008-07-31 09:54:35Z rwatson $"); | 32__FBSDID("$FreeBSD: head/sys/security/audit/audit_worker.c 182371 2008-08-28 15:23:18Z attilio $"); |
33 34#include <sys/param.h> 35#include <sys/condvar.h> 36#include <sys/conf.h> 37#include <sys/file.h> 38#include <sys/filedesc.h> 39#include <sys/fcntl.h> 40#include <sys/ipc.h> --- 82 unchanged lines hidden (view full) --- 123 * First, gather statistics on the audit log file and file system so 124 * that we know how we're doing on space. Consider failure of these 125 * operations to indicate a future inability to write to the file. 126 */ 127 error = VFS_STATFS(vp->v_mount, mnt_stat, curthread); 128 if (error) 129 goto fail; 130 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); | 33 34#include <sys/param.h> 35#include <sys/condvar.h> 36#include <sys/conf.h> 37#include <sys/file.h> 38#include <sys/filedesc.h> 39#include <sys/fcntl.h> 40#include <sys/ipc.h> --- 82 unchanged lines hidden (view full) --- 123 * First, gather statistics on the audit log file and file system so 124 * that we know how we're doing on space. Consider failure of these 125 * operations to indicate a future inability to write to the file. 126 */ 127 error = VFS_STATFS(vp->v_mount, mnt_stat, curthread); 128 if (error) 129 goto fail; 130 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); |
131 error = VOP_GETATTR(vp, &vattr, cred, curthread); | 131 error = VOP_GETATTR(vp, &vattr, cred); |
132 VOP_UNLOCK(vp, 0); 133 if (error) 134 goto fail; 135 audit_fstat.af_currsz = vattr.va_size; 136 137 /* 138 * We handle four different space-related limits: 139 * --- 348 unchanged lines hidden --- | 132 VOP_UNLOCK(vp, 0); 133 if (error) 134 goto fail; 135 audit_fstat.af_currsz = vattr.va_size; 136 137 /* 138 * We handle four different space-related limits: 139 * --- 348 unchanged lines hidden --- |