2
* Copyright (C) 2005 Novell/SUSE
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation, version 2 of the
9
* AppArmor capability definitions
14
static const char *capnames[] = {
48
const char *capability_to_name(unsigned int cap)
52
capname = (cap < (sizeof(capnames) / sizeof(char *))
53
? capnames[cap] : "invalid-capability");
58
static const char *syscall_names[] = {
65
const char *syscall_to_name(enum aasyscall call)
68
name = (call < (sizeof(syscall_names) / sizeof(char *))
69
? syscall_names[call] : "invalid-syscall");