Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
path.c File Reference
#include <linux/magic.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/nsproxy.h>
#include <linux/path.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/fs_struct.h>
#include "include/apparmor.h"
#include "include/path.h"
#include "include/policy.h"

Go to the source code of this file.

Macros

#define CHROOT_NSCONNECT   (PATH_CHROOT_REL | PATH_CHROOT_NSCONNECT)
 

Functions

which points to

to a position in

: Returns - contains position of path name in @buffer (NOT NULL)

get_name_to_buffer - get the pathname to a buffer ensure dir / is appended : path to get name for (NOT NULL) : flags controlling path lookup : buffer to put name in (NOT NULL) : size of buffer

Returns: %0 else error on failure

may contain a partial or invalid name that can be used for audit purposes, but it can not be used for mediation.

We need PATH_IS_DIR to indicate whether the file is a directory or not because the file may not yet exist, and so we cannot check the inode's file type.

Returns: %0 else error code if could retrieve name

int aa_path_name (struct path *path, int flags, char **buffer, const char **name, const char **info)
 

Macro Definition Documentation

#define CHROOT_NSCONNECT   (PATH_CHROOT_REL | PATH_CHROOT_NSCONNECT)

Definition at line 40 of file path.c.

Function Documentation

int aa_path_name ( struct path path,
int  flags,
char **  buffer,
const char **  name,
const char **  info 
)

Definition at line 207 of file path.c.