2007-07-28 15:41:04 +00:00
|
|
|
/*
|
2011-02-23 14:02:45 -08:00
|
|
|
* Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
|
|
|
* NOVELL (All rights reserved)
|
2007-07-28 15:41:04 +00:00
|
|
|
*
|
2011-02-23 14:02:45 -08:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of version 2.1 of the GNU Lesser General
|
|
|
|
* Public License published by the Free Software Foundation.
|
2007-07-28 15:41:04 +00:00
|
|
|
*
|
2011-02-23 14:02:45 -08:00
|
|
|
* This program 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 Lesser General Public License for more details.
|
2007-07-28 15:41:04 +00:00
|
|
|
*
|
2011-02-23 14:02:45 -08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with this program; if not, <http://www.gnu.org/licenses/>.
|
2007-07-28 15:41:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __AA_LOG_PARSER_H__
|
|
|
|
#define __AA_LOG_PARSER_H__
|
|
|
|
|
2024-09-04 12:00:13 -07:00
|
|
|
// Internal-only type
|
|
|
|
struct string_buf {
|
|
|
|
char *buf;
|
|
|
|
unsigned int buf_len;
|
|
|
|
unsigned int buf_alloc;
|
|
|
|
};
|
|
|
|
|
2007-07-28 15:41:04 +00:00
|
|
|
extern void _init_log_record(aa_log_record *record);
|
2007-09-17 05:22:40 +00:00
|
|
|
extern char *hex_to_string(char *str);
|
2008-02-26 12:30:48 +00:00
|
|
|
extern char *ipproto_to_string(unsigned int proto);
|
2007-07-28 15:41:04 +00:00
|
|
|
|
2007-09-14 14:00:48 +00:00
|
|
|
/* FIXME: this ought to be pulled from <linux/audit.h> but there's no
|
|
|
|
* guarantee these will exist there. */
|
|
|
|
#define AUDIT_APPARMOR_AUDIT 1501 /* AppArmor audited grants */
|
|
|
|
#define AUDIT_APPARMOR_ALLOWED 1502 /* Allowed Access for learning */
|
|
|
|
#define AUDIT_APPARMOR_DENIED 1503
|
|
|
|
#define AUDIT_APPARMOR_HINT 1504 /* Process Tracking information */
|
|
|
|
#define AUDIT_APPARMOR_STATUS 1505 /* Changes in config */
|
|
|
|
#define AUDIT_APPARMOR_ERROR 1506 /* Internal AppArmor Errors */
|
|
|
|
|
2007-07-28 15:41:04 +00:00
|
|
|
#endif
|
|
|
|
|