Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#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 |
#define | AA_CLASS_LAST AA_CLASS_DOMAIN |
#define | AA_DEBUG(fmt, args...) |
#define | AA_ERROR(fmt, args...) |
Functions | |
char * | aa_split_fqname (char *args, char **ns_name) |
void | aa_info_message (const char *str) |
void * | kvmalloc (size_t size) |
void | kvfree (void *buffer) |
Variables | |
enum audit_mode | aa_g_audit |
bool | aa_g_audit_header |
bool | aa_g_debug |
bool | aa_g_lock_policy |
bool | aa_g_logsyscall |
bool | aa_g_paranoid_load |
unsigned int | aa_g_path_max |
int apparmor_initialized | __initdata |
#define AA_CLASS_CAP 3 |
Definition at line 28 of file apparmor.h.
#define AA_CLASS_DOMAIN 6 |
Definition at line 31 of file apparmor.h.
#define AA_CLASS_ENTRY 0 |
Definition at line 25 of file apparmor.h.
#define AA_CLASS_FILE 2 |
Definition at line 27 of file apparmor.h.
#define AA_CLASS_LAST AA_CLASS_DOMAIN |
Definition at line 33 of file apparmor.h.
#define AA_CLASS_NET 4 |
Definition at line 29 of file apparmor.h.
#define AA_CLASS_RLIMITS 5 |
Definition at line 30 of file apparmor.h.
#define AA_CLASS_UNKNOWN 1 |
Definition at line 26 of file apparmor.h.
#define AA_DEBUG | ( | fmt, | |
args... | |||
) |
Definition at line 49 of file apparmor.h.
#define AA_ERROR | ( | fmt, | |
args... | |||
) |
Definition at line 55 of file apparmor.h.
aa_split_fqname - split a fqname into a profile and namespace name : a full qualified name in namespace profile format (NOT NULL) : pointer to portion of the string containing the ns name (NOT NULL)
Returns: profile name or NULL if one is not specified
Split a namespace name from a profile name (see policy.c for naming description). If a portion of the name is missing it returns NULL for that portion.
NOTE: may modify the string. The pointers returned point into the string.
kvmalloc - do allocation preferring kmalloc but falling back to vmalloc : size of allocation
Return: allocated buffer or NULL if failed
It is possible that policy being loaded from the user is larger than what can be allocated by kmalloc, in those cases fall back to vmalloc.
enum audit_mode aa_g_audit |