Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
process_keys.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/keyctl.h>
#include <linux/fs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/security.h>
#include <linux/user_namespace.h>
#include <asm/uaccess.h>
#include "internal.h"

Go to the source code of this file.

Functions

int install_user_keyrings (void)
 
int install_thread_keyring_to_cred (struct cred *new)
 
int install_process_keyring_to_cred (struct cred *new)
 
int install_session_keyring_to_cred (struct cred *cred, struct key *keyring)
 
void key_fsuid_changed (struct task_struct *tsk)
 
void key_fsgid_changed (struct task_struct *tsk)
 
key_ref_t search_my_process_keyrings (struct key_type *type, const void *description, key_match_func_t match, bool no_state_check, const struct cred *cred)
 
key_ref_t search_process_keyrings (struct key_type *type, const void *description, key_match_func_t match, const struct cred *cred)
 
int lookup_user_key_possessed (const struct key *key, const void *target)
 
key_ref_t lookup_user_key (key_serial_t id, unsigned long lflags, key_perm_t perm)
 
long join_session_keyring (const char *name)
 
void key_change_session_keyring (struct callback_head *twork)
 

Variables

struct key_user root_key_user
 

Function Documentation

int install_process_keyring_to_cred ( struct cred new)

Definition at line 170 of file process_keys.c.

int install_session_keyring_to_cred ( struct cred cred,
struct key keyring 
)

Definition at line 224 of file process_keys.c.

int install_thread_keyring_to_cred ( struct cred new)

Definition at line 128 of file process_keys.c.

int install_user_keyrings ( void  )

Definition at line 43 of file process_keys.c.

long join_session_keyring ( const char name)

Definition at line 765 of file process_keys.c.

void key_change_session_keyring ( struct callback_head twork)

Definition at line 838 of file process_keys.c.

void key_fsgid_changed ( struct task_struct tsk)

Definition at line 300 of file process_keys.c.

void key_fsuid_changed ( struct task_struct tsk)

Definition at line 286 of file process_keys.c.

key_ref_t lookup_user_key ( key_serial_t  id,
unsigned long  lflags,
key_perm_t  perm 
)

Definition at line 536 of file process_keys.c.

int lookup_user_key_possessed ( const struct key key,
const void target 
)

Definition at line 513 of file process_keys.c.

key_ref_t search_my_process_keyrings ( struct key_type *  type,
const void description,
key_match_func_t  match,
bool  no_state_check,
const struct cred cred 
)

Definition at line 332 of file process_keys.c.

key_ref_t search_process_keyrings ( struct key_type *  type,
const void description,
key_match_func_t  match,
const struct cred cred 
)

Definition at line 454 of file process_keys.c.

Variable Documentation

struct key_user root_key_user
Initial value:
= {
.usage = ATOMIC_INIT(3),
.cons_lock = __MUTEX_INITIALIZER(root_key_user.cons_lock),
.nkeys = ATOMIC_INIT(2),
.nikeys = ATOMIC_INIT(2),
}

Definition at line 31 of file process_keys.c.