2
* Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
3
* NOVELL (All rights reserved)
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of version 2.1 of the GNU Lesser General
7
* Public License published by the Free Software Foundation.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program; if not, <http://www.gnu.org/licenses/>.
19
#ifndef __AA_LOG_PARSER_H__
20
#define __AA_LOG_PARSER_H__
22
extern void _init_log_record(aa_log_record *record);
23
extern aa_log_record *_parse_yacc(char *str);
24
extern char *hex_to_string(char *str);
25
extern char *ipproto_to_string(unsigned int proto);
27
/* FIXME: this ought to be pulled from <linux/audit.h> but there's no
28
* guarantee these will exist there. */
29
#define AUDIT_APPARMOR_AUDIT 1501 /* AppArmor audited grants */
30
#define AUDIT_APPARMOR_ALLOWED 1502 /* Allowed Access for learning */
31
#define AUDIT_APPARMOR_DENIED 1503
32
#define AUDIT_APPARMOR_HINT 1504 /* Process Tracking information */
33
#define AUDIT_APPARMOR_STATUS 1505 /* Changes in config */
34
#define AUDIT_APPARMOR_ERROR 1506 /* Internal AppArmor Errors */