Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
main.c File Reference
#include <linux/dcache.h>
#include <linux/file.h>
#include <linux/module.h>
#include <linux/namei.h>
#include <linux/skbuff.h>
#include <linux/crypto.h>
#include <linux/mount.h>
#include <linux/pagemap.h>
#include <linux/key.h>
#include <linux/parser.h>
#include <linux/fs_stack.h>
#include <linux/slab.h>
#include <linux/magic.h>
#include "ecryptfs_kernel.h"

Go to the source code of this file.

Data Structures

struct  ecryptfs_cache_info
 

Enumerations

enum  {
  ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig, ecryptfs_opt_cipher, ecryptfs_opt_ecryptfs_cipher,
  ecryptfs_opt_ecryptfs_key_bytes, ecryptfs_opt_passthrough, ecryptfs_opt_xattr_metadata, ecryptfs_opt_encrypted_view,
  ecryptfs_opt_fnek_sig, ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes, ecryptfs_opt_unlink_sigs,
  ecryptfs_opt_mount_auth_tok_only, ecryptfs_opt_check_dev_ruid, ecryptfs_opt_err
}
 

Functions

 module_param (ecryptfs_verbosity, int, 0)
 
 MODULE_PARM_DESC (ecryptfs_verbosity,"Initial verbosity level (0 or 1; defaults to ""0, which is Quiet)")
 
 module_param (ecryptfs_message_buf_len, uint, 0)
 
 MODULE_PARM_DESC (ecryptfs_message_buf_len,"Number of message buffer elements")
 
 module_param (ecryptfs_message_wait_timeout, long, 0)
 
 MODULE_PARM_DESC (ecryptfs_message_wait_timeout,"Maximum number of seconds that an operation will ""sleep while waiting for a message response from ""userspace")
 
 module_param (ecryptfs_number_of_users, uint, 0)
 
 MODULE_PARM_DESC (ecryptfs_number_of_users,"An estimate of the number of ""concurrent users of eCryptfs")
 
void __ecryptfs_printk (const char *fmt,...)
 
int ecryptfs_get_lower_file (struct dentry *dentry, struct inode *inode)
 
void ecryptfs_put_lower_file (struct inode *inode)
 
 MODULE_AUTHOR ("Michael A. Halcrow <[email protected]>")
 
 MODULE_DESCRIPTION ("eCryptfs")
 
 MODULE_LICENSE ("GPL")
 

Variables

int ecryptfs_verbosity = 0
 
unsigned int ecryptfs_message_buf_len = ECRYPTFS_DEFAULT_MSG_CTX_ELEMS
 
signed long ecryptfs_message_wait_timeout = ECRYPTFS_MAX_MSG_CTX_TTL / HZ
 
unsigned int ecryptfs_number_of_users = ECRYPTFS_DEFAULT_NUM_USERS
 
struct kmem_cacheecryptfs_sb_info_cache
 

Enumeration Type Documentation

anonymous enum
Enumerator:
ecryptfs_opt_sig 
ecryptfs_opt_ecryptfs_sig 
ecryptfs_opt_cipher 
ecryptfs_opt_ecryptfs_cipher 
ecryptfs_opt_ecryptfs_key_bytes 
ecryptfs_opt_passthrough 
ecryptfs_opt_xattr_metadata 
ecryptfs_opt_encrypted_view 
ecryptfs_opt_fnek_sig 
ecryptfs_opt_fn_cipher 
ecryptfs_opt_fn_cipher_key_bytes 
ecryptfs_opt_unlink_sigs 
ecryptfs_opt_mount_auth_tok_only 
ecryptfs_opt_check_dev_ruid 
ecryptfs_opt_err 

Definition at line 172 of file main.c.

Function Documentation

void __ecryptfs_printk ( const char fmt,
  ... 
)

Definition at line 86 of file main.c.

int ecryptfs_get_lower_file ( struct dentry dentry,
struct inode inode 
)

Definition at line 138 of file main.c.

void ecryptfs_put_lower_file ( struct inode inode)

Definition at line 158 of file main.c.

MODULE_AUTHOR ( "Michael A. Halcrow <[email protected]>"  )
MODULE_DESCRIPTION ( "eCryptfs"  )
MODULE_LICENSE ( "GPL"  )
module_param ( ecryptfs_verbosity  ,
int  ,
 
)
module_param ( ecryptfs_message_buf_len  ,
uint  ,
 
)
module_param ( ecryptfs_message_wait_timeout  ,
long  ,
 
)
module_param ( ecryptfs_number_of_users  ,
uint  ,
 
)
MODULE_PARM_DESC ( ecryptfs_verbosity  ,
"Initial verbosity level (0 or 1; defaults to ""0, which is Quiet)"   
)
MODULE_PARM_DESC ( ecryptfs_message_buf_len  ,
"Number of message buffer elements  
)
MODULE_PARM_DESC ( ecryptfs_message_wait_timeout  ,
"Maximum number of seconds that an operation will ""sleep while waiting for a message response from ""userspace  
)
MODULE_PARM_DESC ( ecryptfs_number_of_users  ,
"An estimate of the number of ""concurrent users of eCryptfs"   
)

Variable Documentation

unsigned int ecryptfs_message_buf_len = ECRYPTFS_DEFAULT_MSG_CTX_ELEMS

Module parameter that defines the number of message buffer elements

Definition at line 55 of file main.c.

signed long ecryptfs_message_wait_timeout = ECRYPTFS_MAX_MSG_CTX_TTL / HZ

Module parameter that defines the maximum guaranteed amount of time to wait for a response from ecryptfsd. The actual sleep time will be, more than likely, a small amount greater than this specified value, but only less if the message successfully arrives.

Definition at line 67 of file main.c.

unsigned int ecryptfs_number_of_users = ECRYPTFS_DEFAULT_NUM_USERS

Module parameter that is an estimate of the maximum number of users that will be concurrently using eCryptfs. Set this to the right value to balance performance and memory use.

Definition at line 80 of file main.c.

struct kmem_cache* ecryptfs_sb_info_cache

Definition at line 482 of file main.c.

int ecryptfs_verbosity = 0

eCryptfs: Linux filesystem encryption layer

Copyright (C) 1997-2003 Erez Zadok Copyright (C) 2001-2003 Stony Brook University Copyright (C) 2004-2007 International Business Machines Corp. Author(s): Michael A. Halcrow mahal.nosp@m.cro@.nosp@m.us.ib.nosp@m.m.co.nosp@m.m Michael C. Thompson mctho.nosp@m.mps@.nosp@m.us.ib.nosp@m.m.co.nosp@m.m Tyler Hicks tyhic.nosp@m.ks@o.nosp@m.u.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Module parameter that defines the ecryptfs_verbosity level.

Definition at line 45 of file main.c.