1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2001-2003 Cluster File Systems, Inc. <info@clusterfs.com>
6 * This file is part of Lustre, http://www.lustre.org.
8 * Lustre is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * Lustre is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Lustre; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * smfs data structures.
22 * See also lustre_idl.h for wire formats of requests.
26 #ifndef __LUSTRE_AUDIT_H
27 #define __LUSTRE_AUDIT_H
29 /* Audit plugin stuff */
30 #define AUDIT_MDS_NAME "audit_mds"
31 #define AUDIT_OST_NAME "audit_ost"
32 #define AUDIT_CLI_NAME "audit_client-"
33 #define AUDIT_ATTR_EA "audit"
34 #define AUDIT_ATTR_FILE "audit_setting"
35 //AUDIT OPCODES, also bit number in audit_setting mask
54 #define AUDIT_FAIL AUDIT_MAX
55 #define AUDIT_DIR (AUDIT_MAX + 1)
56 #define AUDIT_FS (AUDIT_MAX + 2)
58 #define AUD_BIT(a) (1 << a)
60 #define AUDIT_ALL_OPS ((1 << AUDIT_MAX) - 1)
63 #define IS_AUDIT_OP(mask,op) (mask & (1<<op))
64 #define IS_AUDIT(mask) (mask & AUDIT_ALL_OPS)
65 #define SET_AUDIT_OP(mask,op) (mask |= (1<<op))
67 //llog audit record 24 bytes
75 } __attribute__ ((packed));
78 struct audit_id_record {
84 } __attribute__ ((packed));
87 struct audit_name_record {
90 } __attribute__ ((packed));
99 struct audit_lov_msg {
100 struct lov_stripe_md * lsm;