1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Pawel Jakub Dawidek under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/trail.c#3 $ |
30 */ 31 |
32#include <config/config.h> |
33 34#include <sys/param.h> 35#include <sys/stat.h> 36 37#include <dirent.h> 38#include <errno.h> 39#include <fcntl.h> 40#include <stdbool.h> --- 14 unchanged lines hidden (view full) --- 55#endif 56#ifndef HAVE_OPENAT 57#include "openat.h" 58#endif 59#ifndef HAVE_UNLINKAT 60#include "unlinkat.h" 61#endif 62 |
63#include "pjdlog.h" |
64#include "trail.h" 65 66#define TRAIL_MAGIC 0x79a11 67struct trail { 68 int tr_magic; 69 /* Path usually to /var/audit/dist/ directory. */ 70 char tr_dirname[PATH_MAX]; 71 /* Descriptor to td_dirname directory. */ --- 540 unchanged lines hidden --- |