Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
lsm.c File Reference
#include <linux/security.h>
#include <linux/moduleparam.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/ptrace.h>
#include <linux/ctype.h>
#include <linux/sysctl.h>
#include <linux/audit.h>
#include <linux/user_namespace.h>
#include <net/sock.h>
#include "include/apparmor.h"
#include "include/apparmorfs.h"
#include "include/audit.h"
#include "include/capability.h"
#include "include/context.h"
#include "include/file.h"
#include "include/ipc.h"
#include "include/path.h"
#include "include/policy.h"
#include "include/procattr.h"

Go to the source code of this file.

Macros

#define param_check_aabool   param_check_bool
 
#define param_check_aauint   param_check_uint
 
#define param_check_aalockpolicy   param_check_bool
 

Functions

 module_param_call (mode, param_set_mode, param_get_mode,&aa_g_profile_mode, S_IRUSR|S_IWUSR)
 
 module_param_named (debug, aa_g_debug, aabool, S_IRUSR|S_IWUSR)
 
 module_param_call (audit, param_set_audit, param_get_audit,&aa_g_audit, S_IRUSR|S_IWUSR)
 
 module_param_named (audit_header, aa_g_audit_header, aabool, S_IRUSR|S_IWUSR)
 
 module_param_named (lock_policy, aa_g_lock_policy, aalockpolicy, S_IRUSR|S_IWUSR)
 
 module_param_named (logsyscall, aa_g_logsyscall, aabool, S_IRUSR|S_IWUSR)
 
 module_param_named (path_max, aa_g_path_max, aauint, S_IRUSR|S_IWUSR)
 
 module_param_named (paranoid_load, aa_g_paranoid_load, aabool, S_IRUSR|S_IWUSR)
 
 module_param_named (enabled, apparmor_enabled, aabool, S_IRUSR)
 
 __setup ("apparmor=", apparmor_enabled_setup)
 
 security_initcall (apparmor_init)
 

Variables

int apparmor_initialized __initdata
 
enum profile_mode aa_g_profile_mode = APPARMOR_ENFORCE
 
bool aa_g_debug
 
enum audit_mode aa_g_audit
 
bool aa_g_audit_header = 1
 
bool aa_g_lock_policy
 
bool aa_g_logsyscall
 
unsigned int aa_g_path_max = 2 * PATH_MAX
 
bool aa_g_paranoid_load = 1
 

Macro Definition Documentation

#define param_check_aabool   param_check_bool

Definition at line 668 of file lsm.c.

#define param_check_aalockpolicy   param_check_bool

Definition at line 684 of file lsm.c.

#define param_check_aauint   param_check_uint

Definition at line 676 of file lsm.c.

Function Documentation

__setup ( )
module_param_call ( mode  ,
param_set_mode  ,
param_get_mode  ,
aa_g_profile_mode,
S_IRUSR S_IWUSR 
)
module_param_call ( audit  ,
param_set_audit  ,
param_get_audit  ,
aa_g_audit,
S_IRUSR S_IWUSR 
)
module_param_named ( debug  ,
aa_g_debug  ,
aabool  ,
S_IRUSR S_IWUSR 
)
module_param_named ( audit_header  ,
aa_g_audit_header  ,
aabool  ,
S_IRUSR S_IWUSR 
)
module_param_named ( lock_policy  ,
aa_g_lock_policy  ,
aalockpolicy  ,
S_IRUSR S_IWUSR 
)
module_param_named ( logsyscall  ,
aa_g_logsyscall  ,
aabool  ,
S_IRUSR S_IWUSR 
)
module_param_named ( path_max  ,
aa_g_path_max  ,
aauint  ,
S_IRUSR S_IWUSR 
)
module_param_named ( paranoid_load  ,
aa_g_paranoid_load  ,
aabool  ,
S_IRUSR S_IWUSR 
)
module_param_named ( enabled  ,
apparmor_enabled  ,
aabool  ,
S_IRUSR   
)
security_initcall ( apparmor_init  )

Variable Documentation

int apparmor_initialized __initdata

Definition at line 40 of file lsm.c.

enum audit_mode aa_g_audit

Definition at line 710 of file lsm.c.

bool aa_g_audit_header = 1

Definition at line 717 of file lsm.c.

bool aa_g_debug

Definition at line 706 of file lsm.c.

bool aa_g_lock_policy

Definition at line 725 of file lsm.c.

bool aa_g_logsyscall

Definition at line 730 of file lsm.c.

bool aa_g_paranoid_load = 1

Definition at line 740 of file lsm.c.

unsigned int aa_g_path_max = 2 * PATH_MAX

Definition at line 734 of file lsm.c.

enum profile_mode aa_g_profile_mode = APPARMOR_ENFORCE

Definition at line 701 of file lsm.c.