apparmor.h 1.1 KB
Newer Older
1 2 3
/*
 * AppArmor security module
 *
4
 * This file contains AppArmor basic global
5 6
 *
 * Copyright (C) 1998-2008 Novell/SUSE
7
 * Copyright 2009-2017 Canonical Ltd.
8 9 10 11 12 13 14 15 16 17
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, version 2 of the
 * License.
 */

#ifndef __APPARMOR_H
#define __APPARMOR_H

18
#include <linux/types.h>
19

20 21 22 23 24 25 26 27 28 29
/*
 * Class of mediation types in the AppArmor policy db
 */
#define AA_CLASS_ENTRY		0
#define AA_CLASS_UNKNOWN	1
#define AA_CLASS_FILE		2
#define AA_CLASS_CAP		3
#define AA_CLASS_NET		4
#define AA_CLASS_RLIMITS	5
#define AA_CLASS_DOMAIN		6
30
#define AA_CLASS_LABEL		16
31

32
#define AA_CLASS_LAST		AA_CLASS_LABEL
33

34 35
/* Control parameters settable through module/boot flags */
extern enum audit_mode aa_g_audit;
36 37
extern bool aa_g_audit_header;
extern bool aa_g_debug;
38
extern bool aa_g_hash_policy;
39 40 41
extern bool aa_g_lock_policy;
extern bool aa_g_logsyscall;
extern bool aa_g_paranoid_load;
42 43 44
extern unsigned int aa_g_path_max;

#endif /* __APPARMOR_H */