Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
smackfs.c File Reference
#include <linux/kernel.h>
#include <linux/vmalloc.h>
#include <linux/security.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include <net/cipso_ipv4.h>
#include <linux/seq_file.h>
#include <linux/ctype.h>
#include <linux/audit.h>
#include "smack.h"

Go to the source code of this file.

Data Structures

struct  smack_master_list
 

Macros

#define SMK_DIGITLEN   4
 
#define SMK_CIPSOMIN   (SMK_LABELLEN + 2 * SMK_DIGITLEN)
 
#define SMK_CIPSOMAX   (SMK_CIPSOMIN + SMACK_CIPSO_MAXCATNUM * SMK_DIGITLEN)
 
#define SMK_OACCESS   "rwxa"
 
#define SMK_ACCESS   "rwxat"
 
#define SMK_OACCESSLEN   (sizeof(SMK_OACCESS) - 1)
 
#define SMK_ACCESSLEN   (sizeof(SMK_ACCESS) - 1)
 
#define SMK_OLOADLEN   (SMK_LABELLEN + SMK_LABELLEN + SMK_OACCESSLEN)
 
#define SMK_LOADLEN   (SMK_LABELLEN + SMK_LABELLEN + SMK_ACCESSLEN)
 
#define SMK_NETLBLADDRMIN   9
 
#define SMK_FIXED24_FMT   0 /* Fixed 24byte label format */
 
#define SMK_LONG_FMT   1 /* Variable long label format */
 
#define BEBITS   (sizeof(__be32) * 8)
 

Enumerations

enum  smk_inos {
  SMK_ROOT_INO = 2, SMK_LOAD = 3, SMK_CIPSO = 4, SMK_DOI = 5,
  SMK_DIRECT = 6, SMK_AMBIENT = 7, SMK_NETLBLADDR = 8, SMK_ONLYCAP = 9,
  SMK_LOGGING = 10, SMK_LOAD_SELF = 11, SMK_ACCESSES = 12, SMK_MAPPED = 13,
  SMK_LOAD2 = 14, SMK_LOAD_SELF2 = 15, SMK_ACCESS2 = 16, SMK_CIPSO2 = 17,
  SMK_REVOKE_SUBJ = 18
}
 

Functions

 LIST_HEAD (smk_netlbladdr_list)
 
 LIST_HEAD (smack_rule_list)
 
 __initcall (init_smk_fs)
 

Variables

charsmack_net_ambient
 
int smack_cipso_direct = SMACK_CIPSO_DIRECT_DEFAULT
 
int smack_cipso_mapped = SMACK_CIPSO_MAPPED_DEFAULT
 
charsmack_onlycap
 
const charsmack_cipso_option = SMACK_CIPSO_OPTION
 

Macro Definition Documentation

#define BEBITS   (sizeof(__be32) * 8)

Definition at line 973 of file smackfs.c.

#define SMK_ACCESS   "rwxat"

Definition at line 134 of file smackfs.c.

#define SMK_ACCESSLEN   (sizeof(SMK_ACCESS) - 1)

Definition at line 136 of file smackfs.c.

#define SMK_CIPSOMAX   (SMK_CIPSOMIN + SMACK_CIPSO_MAXCATNUM * SMK_DIGITLEN)

Definition at line 125 of file smackfs.c.

#define SMK_CIPSOMIN   (SMK_LABELLEN + 2 * SMK_DIGITLEN)

Definition at line 124 of file smackfs.c.

#define SMK_DIGITLEN   4

Definition at line 123 of file smackfs.c.

#define SMK_FIXED24_FMT   0 /* Fixed 24byte label format */

Definition at line 352 of file smackfs.c.

#define SMK_LOADLEN   (SMK_LABELLEN + SMK_LABELLEN + SMK_ACCESSLEN)

Definition at line 138 of file smackfs.c.

#define SMK_LONG_FMT   1 /* Variable long label format */

Definition at line 353 of file smackfs.c.

#define SMK_NETLBLADDRMIN   9

Definition at line 167 of file smackfs.c.

#define SMK_OACCESS   "rwxa"

Definition at line 133 of file smackfs.c.

#define SMK_OACCESSLEN   (sizeof(SMK_OACCESS) - 1)

Definition at line 135 of file smackfs.c.

#define SMK_OLOADLEN   (SMK_LABELLEN + SMK_LABELLEN + SMK_OACCESSLEN)

Definition at line 137 of file smackfs.c.

Enumeration Type Documentation

enum smk_inos
Enumerator:
SMK_ROOT_INO 
SMK_LOAD 
SMK_CIPSO 
SMK_DOI 
SMK_DIRECT 
SMK_AMBIENT 
SMK_NETLBLADDR 
SMK_ONLYCAP 
SMK_LOGGING 
SMK_LOAD_SELF 
SMK_ACCESSES 
SMK_MAPPED 
SMK_LOAD2 
SMK_LOAD_SELF2 
SMK_ACCESS2 
SMK_CIPSO2 
SMK_REVOKE_SUBJ 

Definition at line 35 of file smackfs.c.

Function Documentation

__initcall ( init_smk_fs  )
LIST_HEAD ( smk_netlbladdr_list  )
LIST_HEAD ( smack_rule_list  )

Variable Documentation

int smack_cipso_direct = SMACK_CIPSO_DIRECT_DEFAULT

Definition at line 75 of file smackfs.c.

int smack_cipso_mapped = SMACK_CIPSO_MAPPED_DEFAULT

Definition at line 82 of file smackfs.c.

const char* smack_cipso_option = SMACK_CIPSO_OPTION

Definition at line 115 of file smackfs.c.

char* smack_net_ambient

Definition at line 68 of file smackfs.c.

char* smack_onlycap

Definition at line 92 of file smackfs.c.