Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
realpath.c File Reference
#include "common.h"
#include <linux/magic.h>

Go to the source code of this file.

Functions

chartomoyo_encode2 (const char *str, int str_len)
 
chartomoyo_encode (const char *str)
 
chartomoyo_realpath_from_path (struct path *path)
 
chartomoyo_realpath_nofollow (const char *pathname)
 

Function Documentation

char* tomoyo_encode ( const char str)

tomoyo_encode - Encode binary string to ascii string.

: String in binary format.

Returns pointer to in ascii format on success, NULL otherwise.

This function uses kzalloc(), so caller must kfree() if this function didn't return NULL.

Definition at line 76 of file realpath.c.

char* tomoyo_encode2 ( const char str,
int  str_len 
)

tomoyo_encode2 - Encode binary string to ascii string.

: String in binary format. : Size of in byte.

Returns pointer to in ascii format on success, NULL otherwise.

This function uses kzalloc(), so caller must kfree() if this function didn't return NULL.

Definition at line 21 of file realpath.c.

char* tomoyo_realpath_from_path ( struct path path)

tomoyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root.

: Pointer to "struct path".

Returns the realpath of the given on success, NULL otherwise.

If dentry is a directory, trailing '/' is appended. Characters out of 0x20 < c < 0x7F range are converted to style octal string. Character \ is converted to \ string.

These functions use kzalloc(), so the caller must call kfree() if these functions didn't return NULL.

Definition at line 250 of file realpath.c.

char* tomoyo_realpath_nofollow ( const char pathname)

tomoyo_realpath_nofollow - Get realpath of a pathname.

: The pathname to solve.

Returns the realpath of on success, NULL otherwise.

Definition at line 318 of file realpath.c.