/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * * Copyright (C) 2001-2003 Cluster File Systems, Inc. * * This file is part of Lustre, http://www.lustre.org. * * Lustre is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * Lustre is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Lustre; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * smfs data structures. * See also lustre_idl.h for wire formats of requests. * */ #ifndef __LUSTRE_AUDIT_H #define __LUSTRE_AUDIT_H /* Audit plugin stuff */ #define AUDIT_MDS_NAME "audit_mds" #define AUDIT_OST_NAME "audit_ost" #define AUDIT_CLI_NAME "audit_client-" #define AUDIT_ATTR_EA "audit" #define AUDIT_ATTR_FILE "audit_setting" //AUDIT OPCODES, also bit number in audit_setting mask typedef enum { AUDIT_UNKNOWN = 0, AUDIT_CREATE, AUDIT_LINK, AUDIT_UNLINK, AUDIT_RENAME, AUDIT_SETATTR, AUDIT_WRITE, AUDIT_READ, AUDIT_OPEN, AUDIT_STAT, AUDIT_MMAP, AUDIT_READLINK, AUDIT_READDIR, AUDIT_MAX, } audit_op; #define AUDIT_FAIL AUDIT_MAX #define AUDIT_DIR (AUDIT_MAX + 1) #define AUDIT_FS (AUDIT_MAX + 2) #define AUDIT_SYNC (AUDIT_MAX + 3) #define AUDIT_NULL (AUDIT_MAX + 4) #define AUD_BIT(a) (1 << a) #define AUDIT_ALL_OPS ((1 << AUDIT_MAX) - 1) #define AUDIT_OFF 0 #define IS_AUDIT_OP(mask,op) (mask & (1<