|
Linux Kernel
3.7.1
|
#include <linux/capability.h>#include <linux/errno.h>#include <linux/gfp.h>#include "include/apparmor.h"#include "include/capability.h"#include "include/context.h"#include "include/policy.h"#include "include/audit.h"#include "capability_names.h"Go to the source code of this file.
Data Structures | |
| struct | audit_cache |
Functions | |
| int | aa_capable (struct task_struct *task, struct aa_profile *profile, int cap, int audit) |
| int aa_capable | ( | struct task_struct * | task, |
| struct aa_profile * | profile, | ||
| int | cap, | ||
| int | audit | ||
| ) |
aa_capable - test permission to use capability : task doing capability test against (NOT NULL) : profile confining (NOT NULL) : capability to be tested : whether an audit record should be generated
Look up capability in profile capability set.
Returns: 0 on success, or else an error code.
Definition at line 131 of file capability.c.
1.8.2