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

Go to the source code of this file.

Functions

int tomoyo_mount_permission (const char *dev_name, struct path *path, const char *type, unsigned long flags, void *data_page)
 

Function Documentation

int tomoyo_mount_permission ( const char dev_name,
struct path path,
const char type,
unsigned long  flags,
void data_page 
)

tomoyo_mount_permission - Check permission for mount() operation.

: Name of device file. Maybe NULL. : Pointer to "struct path". : Name of filesystem type. Maybe NULL. : Mount options. : Optional data. Maybe NULL.

Returns 0 on success, negative value otherwise.

Definition at line 187 of file mount.c.