]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Add idmap key and related data structures and functions (try #17 repost)
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Thu, 28 Apr 2011 04:34:35 +0000 (23:34 -0500)
committerSteve French <sfrench@us.ibm.com>
Thu, 19 May 2011 14:10:51 +0000 (14:10 +0000)
commitc67b4bdeea4fff0df62e0662b1b7142162bd3fa2
tree55e377f53c761e70d5b90a1f901f70609ffcbcc7
parenta157836b5d9c7ee6522edd33bd73f48018f96eee
cifs: Add idmap key and related data structures and functions (try #17 repost)

Define (global) data structures to store ids, uids and gids, to which a
SID maps.  There are two separate trees, one for SID/uid and another one
for SID/gid.

A new type of key, cifs_idmap_key_type, is used.

Keys are instantiated and searched using credential of the root by
overriding and restoring the credentials of the caller requesting the key.

Id mapping functions are invoked under config option of cifs acl.

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsacl.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h