1 /* aureport-options.h --
2 * Copyright 2005-06, 2008,2014 Red Hat Inc., Durham, North Carolina.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * Steve Grubb <sgrubb@redhat.com>
24 #ifndef AUREPORT_OPTIONS_H
25 #define AUREPORT_OPTIONS_H
28 #include <sys/types.h>
29 #include "ausearch-common.h"
31 /* Global variables that describe what search is to be performed */
32 extern const char *event_context;
34 typedef enum { RPT_UNSET, RPT_TIME, RPT_SUMMARY, RPT_AVC, RPT_MAC,
35 RPT_CONFIG, RPT_EVENT, RPT_FILE, RPT_HOST, RPT_LOGIN,
36 RPT_ACCT_MOD, RPT_PID, RPT_SYSCALL, RPT_TERM, RPT_USER,
37 RPT_EXE, RPT_ANOMALY, RPT_RESPONSE, RPT_CRYPTO,
38 RPT_AUTH, RPT_KEY, RPT_TTY, RPT_COMM, RPT_VIRT,
39 RPT_INTEG } report_type_t;
41 typedef enum { D_UNSET, D_SUM, D_DETAILED, D_SPECIFIC } report_det_t;
43 extern report_type_t report_type;
44 extern report_det_t report_detail;
45 extern report_t report_format;
48 /* Function to process commandline options */
49 extern int check_params(int count, char *vars[]);
52 #define UNIMPLEMENTED { fprintf(stderr,"Unimplemented option\n"); exit(1); }