Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
procattr.h File Reference

Go to the source code of this file.

Macros

#define AA_DO_TEST   1
 
#define AA_ONEXEC   1
 

Functions

int aa_getprocattr (struct aa_profile *profile, char **string)
 
int aa_setprocattr_changehat (char *args, size_t size, int test)
 
int aa_setprocattr_changeprofile (char *fqname, bool onexec, int test)
 
int aa_setprocattr_permipc (char *fqname)
 

Macro Definition Documentation

#define AA_DO_TEST   1

Definition at line 18 of file procattr.h.

#define AA_ONEXEC   1

Definition at line 19 of file procattr.h.

Function Documentation

int aa_getprocattr ( struct aa_profile profile,
char **  string 
)

aa_getprocattr - Return the profile information for : the profile to print profile info about (NOT NULL) : Returns - string containing the profile info (NOT NULL)

Returns: length of on success else error on failure

Requires: profile != NULL

Creates a string containing the namespace_name://profile_name for .

Returns: size of string placed in else error code on failure

Definition at line 36 of file procattr.c.

int aa_setprocattr_changehat ( char args,
size_t  size,
int  test 
)

aa_setprocattr_chagnehat - handle procattr interface to change_hat : args received from writing to /proc/<pid>/attr/current (NOT NULL) : size of the args

Test:
: true if this is a test of change_hat permissions

Returns: %0 or error code if change_hat fails

Definition at line 114 of file procattr.c.

int aa_setprocattr_changeprofile ( char fqname,
bool  onexec,
int  test 
)

aa_setprocattr_changeprofile - handle procattr interface to changeprofile : args received from writting to /proc/<pid>/attr/current (NOT NULL) : true if change_profile should be delayed until exec

Test:
: true if this is a test of change_profile permissions

Returns: %0 or error code if change_profile fails

Definition at line 159 of file procattr.c.

int aa_setprocattr_permipc ( char fqname)

Definition at line 167 of file procattr.c.