]>
Commit | Line | Data |
---|---|---|
cdff2642 JJ |
1 | /* |
2 | * AppArmor security module | |
3 | * | |
12557dcb | 4 | * This file contains AppArmor basic global |
cdff2642 JJ |
5 | * |
6 | * Copyright (C) 1998-2008 Novell/SUSE | |
637f688d | 7 | * Copyright 2009-2017 Canonical Ltd. |
cdff2642 JJ |
8 | * |
9 | * This program is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU General Public License as | |
11 | * published by the Free Software Foundation, version 2 of the | |
12 | * License. | |
13 | */ | |
14 | ||
15 | #ifndef __APPARMOR_H | |
16 | #define __APPARMOR_H | |
17 | ||
12557dcb | 18 | #include <linux/types.h> |
cdff2642 | 19 | |
ad5ff3db JJ |
20 | /* |
21 | * Class of mediation types in the AppArmor policy db | |
22 | */ | |
23 | #define AA_CLASS_ENTRY 0 | |
24 | #define AA_CLASS_UNKNOWN 1 | |
25 | #define AA_CLASS_FILE 2 | |
26 | #define AA_CLASS_CAP 3 | |
27 | #define AA_CLASS_NET 4 | |
28 | #define AA_CLASS_RLIMITS 5 | |
29 | #define AA_CLASS_DOMAIN 6 | |
21fad8c3 | 30 | #define AA_CLASS_MOUNT 7 |
b2d09ae4 | 31 | #define AA_CLASS_PTRACE 9 |
84632f19 | 32 | #define AA_CLASS_SIGNAL 10 |
637f688d | 33 | #define AA_CLASS_LABEL 16 |
ad5ff3db | 34 | |
637f688d | 35 | #define AA_CLASS_LAST AA_CLASS_LABEL |
ad5ff3db | 36 | |
cdff2642 JJ |
37 | /* Control parameters settable through module/boot flags */ |
38 | extern enum audit_mode aa_g_audit; | |
90ab5ee9 RR |
39 | extern bool aa_g_audit_header; |
40 | extern bool aa_g_debug; | |
6059f71f | 41 | extern bool aa_g_hash_policy; |
90ab5ee9 RR |
42 | extern bool aa_g_lock_policy; |
43 | extern bool aa_g_logsyscall; | |
44 | extern bool aa_g_paranoid_load; | |
cdff2642 JJ |
45 | extern unsigned int aa_g_path_max; |
46 | ||
cdff2642 | 47 | #endif /* __APPARMOR_H */ |