blob: 1750cc0721c17d5f5a3fb0e7912a825dad9ee7b1 [file] [log] [blame]
John Johansencdff2642010-07-29 14:47:57 -07001/*
2 * AppArmor security module
3 *
John Johansen12557dc2017-01-16 00:42:13 -08004 * This file contains AppArmor basic global
John Johansencdff2642010-07-29 14:47:57 -07005 *
6 * Copyright (C) 1998-2008 Novell/SUSE
7 * Copyright 2009-2010 Canonical Ltd.
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
John Johansen12557dc2017-01-16 00:42:13 -080018#include <linux/types.h>
John Johansencdff2642010-07-29 14:47:57 -070019
John Johansenad5ff3d2012-02-16 07:07:53 -080020/*
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
30
31#define AA_CLASS_LAST AA_CLASS_DOMAIN
32
John Johansencdff2642010-07-29 14:47:57 -070033/* Control parameters settable through module/boot flags */
34extern enum audit_mode aa_g_audit;
Rusty Russell90ab5ee2012-01-13 09:32:20 +103035extern bool aa_g_audit_header;
36extern bool aa_g_debug;
John Johansen6059f712014-10-24 09:16:14 -070037extern bool aa_g_hash_policy;
Rusty Russell90ab5ee2012-01-13 09:32:20 +103038extern bool aa_g_lock_policy;
39extern bool aa_g_logsyscall;
40extern bool aa_g_paranoid_load;
John Johansencdff2642010-07-29 14:47:57 -070041extern unsigned int aa_g_path_max;
42
John Johansencdff2642010-07-29 14:47:57 -070043#endif /* __APPARMOR_H */