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

« back to all changes in this revision

Viewing changes to parser/libapparmor_re/apparmor_re.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-08-10 18:12:34 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110810181234-b6obckg60cp99crg
Tags: upstream-2.7.0~beta1+bzr1774
ImportĀ upstreamĀ versionĀ 2.7.0~beta1+bzr1774

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *   Copyright (c) 2003, 2004, 2005, 2006, 2007 Novell, Inc.
3
 
 *   (All rights reserved)
4
 
 *
5
 
 *   The libapparmor library is licensed under the terms of the GNU
6
 
 *   Lesser General Public License, version 2.1. Please see the file
7
 
 *   COPYING.LGPL.
8
 
 */
 
2
 * (C) 2006, 2007 Andreas Gruenbacher <agruen@suse.de>
 
3
 * Copyright (c) 2003-2008 Novell, Inc. (All rights reserved)
 
4
 * Copyright 2009-2010 Canonical Ltd.
 
5
 *
 
6
 * The libapparmor library is licensed under the terms of the GNU
 
7
 * Lesser General Public License, version 2.1. Please see the file
 
8
 * COPYING.LGPL.
 
9
 *
 
10
 * This library 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 Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
  */
9
18
 
10
19
#ifndef APPARMOR_RE_H
11
20
#define APPARMOR_RE_H
21
30
  DFA_CONTROL_REMOVE_UNREACHABLE =      1 << 7,
22
31
  DFA_CONTROL_TRANS_HIGH =      1 << 8,
23
32
 
 
33
  DFA_DUMP_MIN_PARTS =          1 << 13,
24
34
  DFA_DUMP_UNIQ_PERMS =         1 << 14,
25
35
  DFA_DUMP_MIN_UNIQ_PERMS =     1 << 15,
26
36
  DFA_DUMP_TREE_STATS =         1 << 16,
41
51
  DFA_DUMP_NODE_TO_DFA =        1 << 31,
42
52
} dfaflags_t;
43
53
 
44
 
#ifdef __cplusplus
45
 
extern "C" {
46
 
#endif
47
 
 
48
 
struct aare_ruleset;
49
 
 
50
 
typedef struct aare_ruleset aare_ruleset_t;
51
 
 
52
 
aare_ruleset_t *aare_new_ruleset(int reverse);
53
 
void aare_delete_ruleset(aare_ruleset_t *rules);
54
 
int aare_add_rule(aare_ruleset_t *rules, char *rule, int deny,
55
 
                  uint32_t perms, uint32_t audit, dfaflags_t flags);
56
 
int aare_add_rule_vec(aare_ruleset_t *rules, int deny, uint32_t perms,
57
 
                      uint32_t audit, int count, char **rulev, dfaflags_t flags);
58
 
void *aare_create_dfa(aare_ruleset_t *rules, size_t *size, dfaflags_t flags);
59
 
void aare_reset_matchflags(void);
60
 
 
61
 
#ifdef __cplusplus
62
 
}
63
 
#endif
64
 
 
65
54
#endif /* APPARMOR_RE_H */