Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
cifsacl.c File Reference
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/keyctl.h>
#include <linux/key-type.h>
#include <keys/user-type.h>
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsacl.h"
#include "cifsproto.h"
#include "cifs_debug.h"

Go to the source code of this file.

Functions

int init_cifs_idmap (void)
 
void exit_cifs_idmap (void)
 
void cifs_destroy_idmaptrees (void)
 
int compare_sids (const struct cifs_sid *ctsid, const struct cifs_sid *cwsid)
 
struct cifs_ntsdget_cifs_acl (struct cifs_sb_info *cifs_sb, struct inode *inode, const char *path, u32 *pacllen)
 
int set_cifs_acl (struct cifs_ntsd *pnntsd, __u32 acllen, struct inode *inode, const char *path, int aclflag)
 
int cifs_acl_to_fattr (struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, struct inode *inode, const char *path, const __u16 *pfid)
 
int id_mode_to_cifs_acl (struct inode *inode, const char *path, __u64 nmode, uid_t uid, gid_t gid)
 

Variables

struct credroot_cred
 
struct key_type cifs_idmap_key_type
 

Function Documentation

int cifs_acl_to_fattr ( struct cifs_sb_info cifs_sb,
struct cifs_fattr fattr,
struct inode inode,
const char path,
const __u16 pfid 
)

Definition at line 1267 of file cifsacl.c.

void cifs_destroy_idmaptrees ( void  )

Definition at line 603 of file cifsacl.c.

int compare_sids ( const struct cifs_sid ctsid,
const struct cifs_sid cwsid 
)

Definition at line 635 of file cifsacl.c.

void exit_cifs_idmap ( void  )

Definition at line 593 of file cifsacl.c.

struct cifs_ntsd* get_cifs_acl ( struct cifs_sb_info cifs_sb,
struct inode inode,
const char path,
u32 pacllen 
)
read

Definition at line 1204 of file cifsacl.c.

int id_mode_to_cifs_acl ( struct inode inode,
const char path,
__u64  nmode,
uid_t  uid,
gid_t  gid 
)

Definition at line 1297 of file cifsacl.c.

int init_cifs_idmap ( void  )

Definition at line 529 of file cifsacl.c.

int set_cifs_acl ( struct cifs_ntsd pnntsd,
__u32  acllen,
struct inode inode,
const char path,
int  aclflag 
)

Definition at line 1222 of file cifsacl.c.

Variable Documentation

struct key_type cifs_idmap_key_type
Initial value:
= {
.name = "cifs.idmap",
.instantiate = cifs_idmap_key_instantiate,
.destroy = cifs_idmap_key_destroy,
.describe = user_describe,
.match = user_match,
}

Definition at line 190 of file cifsacl.c.

struct cred* root_cred

Definition at line 45 of file cifsacl.c.