Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
capability.h File Reference
#include <linux/sched.h>

Go to the source code of this file.

Data Structures

struct  aa_caps
 

Functions

int aa_capable (struct task_struct *task, struct aa_profile *profile, int cap, int audit)
 

Function Documentation

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.