Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
keyctl.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <linux/key.h>
#include <linux/keyctl.h>
#include <linux/fs.h>
#include <linux/capability.h>
#include <linux/string.h>
#include <linux/err.h>
#include <linux/vmalloc.h>
#include <linux/security.h>
#include <asm/uaccess.h>
#include "internal.h"

Go to the source code of this file.

Functions

 SYSCALL_DEFINE5 (add_key, const char __user *, _type, const char __user *, _description, const void __user *, _payload, size_t, plen, key_serial_t, ringid)
 
 SYSCALL_DEFINE4 (request_key, const char __user *, _type, const char __user *, _description, const char __user *, _callout_info, key_serial_t, destringid)
 
long keyctl_get_keyring_ID (key_serial_t id, int create)
 
long keyctl_join_session_keyring (const char __user *_name)
 
long keyctl_update_key (key_serial_t id, const void __user *_payload, size_t plen)
 
long keyctl_revoke_key (key_serial_t id)
 
long keyctl_invalidate_key (key_serial_t id)
 
long keyctl_keyring_clear (key_serial_t ringid)
 
long keyctl_keyring_link (key_serial_t id, key_serial_t ringid)
 
long keyctl_keyring_unlink (key_serial_t id, key_serial_t ringid)
 
long keyctl_describe_key (key_serial_t keyid, char __user *buffer, size_t buflen)
 
long keyctl_keyring_search (key_serial_t ringid, const char __user *_type, const char __user *_description, key_serial_t destringid)
 
long keyctl_read_key (key_serial_t keyid, char __user *buffer, size_t buflen)
 
long keyctl_chown_key (key_serial_t id, uid_t user, gid_t group)
 
long keyctl_setperm_key (key_serial_t id, key_perm_t perm)
 
long keyctl_instantiate_key_common (key_serial_t id, const struct iovec *payload_iov, unsigned ioc, size_t plen, key_serial_t ringid)
 
long keyctl_instantiate_key (key_serial_t id, const void __user *_payload, size_t plen, key_serial_t ringid)
 
long keyctl_instantiate_key_iov (key_serial_t id, const struct iovec __user *_payload_iov, unsigned ioc, key_serial_t ringid)
 
long keyctl_negate_key (key_serial_t id, unsigned timeout, key_serial_t ringid)
 
long keyctl_reject_key (key_serial_t id, unsigned timeout, unsigned error, key_serial_t ringid)
 
long keyctl_set_reqkey_keyring (int reqkey_defl)
 
long keyctl_set_timeout (key_serial_t id, unsigned timeout)
 
long keyctl_assume_authority (key_serial_t id)
 
long keyctl_get_security (key_serial_t keyid, char __user *buffer, size_t buflen)
 
long keyctl_session_to_parent (void)
 
 SYSCALL_DEFINE5 (keyctl, int, option, unsigned long, arg2, unsigned long, arg3, unsigned long, arg4, unsigned long, arg5)
 

Function Documentation

long keyctl_assume_authority ( key_serial_t  id)

Definition at line 1364 of file keyctl.c.

long keyctl_chown_key ( key_serial_t  id,
uid_t  user,
gid_t  group 
)

Definition at line 779 of file keyctl.c.

long keyctl_describe_key ( key_serial_t  keyid,
char __user buffer,
size_t  buflen 
)

Definition at line 541 of file keyctl.c.

long keyctl_get_keyring_ID ( key_serial_t  id,
int  create 
)

Definition at line 248 of file keyctl.c.

long keyctl_get_security ( key_serial_t  keyid,
char __user buffer,
size_t  buflen 
)

Definition at line 1411 of file keyctl.c.

long keyctl_instantiate_key ( key_serial_t  id,
const void __user _payload,
size_t  plen,
key_serial_t  ringid 
)

Definition at line 1095 of file keyctl.c.

long keyctl_instantiate_key_common ( key_serial_t  id,
const struct iovec payload_iov,
unsigned  ioc,
size_t  plen,
key_serial_t  ringid 
)

Definition at line 1010 of file keyctl.c.

long keyctl_instantiate_key_iov ( key_serial_t  id,
const struct iovec __user _payload_iov,
unsigned  ioc,
key_serial_t  ringid 
)

Definition at line 1121 of file keyctl.c.

long keyctl_invalidate_key ( key_serial_t  id)

Definition at line 396 of file keyctl.c.

long keyctl_join_session_keyring ( const char __user _name)

Definition at line 277 of file keyctl.c.

long keyctl_keyring_clear ( key_serial_t  ringid)

Definition at line 425 of file keyctl.c.

long keyctl_keyring_link ( key_serial_t  id,
key_serial_t  ringid 
)

Definition at line 467 of file keyctl.c.

long keyctl_keyring_search ( key_serial_t  ringid,
const char __user _type,
const char __user _description,
key_serial_t  destringid 
)

Definition at line 619 of file keyctl.c.

long keyctl_keyring_unlink ( key_serial_t  id,
key_serial_t  ringid 
)

Definition at line 502 of file keyctl.c.

long keyctl_negate_key ( key_serial_t  id,
unsigned  timeout,
key_serial_t  ringid 
)

Definition at line 1167 of file keyctl.c.

long keyctl_read_key ( key_serial_t  keyid,
char __user buffer,
size_t  buflen 
)

Definition at line 713 of file keyctl.c.

long keyctl_reject_key ( key_serial_t  id,
unsigned  timeout,
unsigned  error,
key_serial_t  ringid 
)

Definition at line 1187 of file keyctl.c.

long keyctl_revoke_key ( key_serial_t  id)

Definition at line 362 of file keyctl.c.

long keyctl_session_to_parent ( void  )

Definition at line 1475 of file keyctl.c.

long keyctl_set_reqkey_keyring ( int  reqkey_defl)

Definition at line 1245 of file keyctl.c.

long keyctl_set_timeout ( key_serial_t  id,
unsigned  timeout 
)

Definition at line 1310 of file keyctl.c.

long keyctl_setperm_key ( key_serial_t  id,
key_perm_t  perm 
)

Definition at line 896 of file keyctl.c.

long keyctl_update_key ( key_serial_t  id,
const void __user _payload,
size_t  plen 
)

Definition at line 310 of file keyctl.c.

SYSCALL_DEFINE4 ( request_key  ,
const char __user ,
_type  ,
const char __user ,
_description  ,
const char __user ,
_callout_info  ,
key_serial_t  ,
destringid   
)

Definition at line 157 of file keyctl.c.

SYSCALL_DEFINE5 ( add_key  ,
const char __user ,
_type  ,
const char __user ,
_description  ,
const void __user ,
_payload  ,
size_t  ,
plen  ,
key_serial_t  ,
ringid   
)

Definition at line 57 of file keyctl.c.

SYSCALL_DEFINE5 ( keyctl  ,
int  ,
option  ,
unsigned  long,
arg2  ,
unsigned  long,
arg3  ,
unsigned  long,
arg4  ,
unsigned  long,
arg5   
)

Definition at line 1568 of file keyctl.c.