Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
hooks.c File Reference
#include <linux/init.h>
#include <linux/kd.h>
#include <linux/kernel.h>
#include <linux/tracehook.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/security.h>
#include <linux/xattr.h>
#include <linux/capability.h>
#include <linux/unistd.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/proc_fs.h>
#include <linux/swap.h>
#include <linux/spinlock.h>
#include <linux/syscalls.h>
#include <linux/dcache.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netfilter_ipv6.h>
#include <linux/tty.h>
#include <net/icmp.h>
#include <net/ip.h>
#include <net/tcp.h>
#include <net/net_namespace.h>
#include <net/netlabel.h>
#include <linux/uaccess.h>
#include <asm/ioctls.h>
#include <linux/atomic.h>
#include <linux/bitops.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/netlink.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/dccp.h>
#include <linux/quota.h>
#include <linux/un.h>
#include <net/af_unix.h>
#include <linux/parser.h>
#include <linux/nfs_mount.h>
#include <net/ipv6.h>
#include <linux/hugetlb.h>
#include <linux/personality.h>
#include <linux/audit.h>
#include <linux/string.h>
#include <linux/selinux.h>
#include <linux/mutex.h>
#include <linux/posix-timers.h>
#include <linux/syslog.h>
#include <linux/user_namespace.h>
#include <linux/export.h>
#include <linux/msg.h>
#include <linux/shm.h>
#include "avc.h"
#include "objsec.h"
#include "netif.h"
#include "netnode.h"
#include "netport.h"
#include "xfrm.h"
#include "netlabel.h"
#include "audit.h"
#include "avc_ss.h"

Go to the source code of this file.

Macros

#define NUM_SEL_MNT_OPTS   5
 
#define SEL_MOUNT_FAIL_MSG   "SELinux: duplicate or incompatible mount options\n"
 
#define INITCONTEXTLEN   255
 
#define MAY_LINK   0
 
#define MAY_UNLINK   1
 
#define MAY_RMDIR   2
 

Enumerations

enum  {
  Opt_error = -1, Opt_context = 1, Opt_fscontext = 2, Opt_defcontext = 3,
  Opt_rootcontext = 4, Opt_labelsupport = 5
}
 

Functions

void selinux_complete_init (void)
 
 security_initcall (selinux_init)
 

Variables

struct security_operations * security_ops
 
int selinux_enabled = 1
 

Macro Definition Documentation

#define INITCONTEXTLEN   255
#define MAY_LINK   0

Definition at line 1609 of file hooks.c.

#define MAY_RMDIR   2

Definition at line 1611 of file hooks.c.

#define MAY_UNLINK   1

Definition at line 1610 of file hooks.c.

#define NUM_SEL_MNT_OPTS   5

Definition at line 96 of file hooks.c.

#define SEL_MOUNT_FAIL_MSG   "SELinux: duplicate or incompatible mount options\n"

Definition at line 320 of file hooks.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_error 
Opt_context 
Opt_fscontext 
Opt_defcontext 
Opt_rootcontext 
Opt_labelsupport 

Definition at line 302 of file hooks.c.

Function Documentation

security_initcall ( selinux_init  )
void selinux_complete_init ( void  )

Definition at line 5717 of file hooks.c.

Variable Documentation

struct security_operations* security_ops
int selinux_enabled = 1

Definition at line 128 of file hooks.c.