~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to libraries/libapparmor/src/parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
3
 * NOVELL (All rights reserved)
 
4
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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/>.
 
16
 */
 
17
 
 
18
 
 
19
#ifndef __AA_LOG_PARSER_H__
 
20
#define __AA_LOG_PARSER_H__
 
21
 
 
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);
 
26
 
 
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 */
 
35
 
 
36
#endif
 
37