Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cifsacl.h File Reference

Go to the source code of this file.

Data Structures

struct  cifs_ntsd
 
struct  cifs_sid
 
struct  cifs_acl
 
struct  cifs_ace
 
struct  cifs_wksid
 
struct  cifs_sid_id
 

Macros

#define NUM_AUTHS   6 /* number of authority fields */
 
#define NUM_SUBAUTHS   5 /* number of sub authority fields */
 
#define NUM_WK_SIDS   7 /* number of well known sids */
 
#define SIDNAMELENGTH   20 /* long enough for the ones we care about */
 
#define DEFSECDESCLEN   192 /* sec desc len contaiting a dacl with three aces */
 
#define READ_BIT   0x4
 
#define WRITE_BIT   0x2
 
#define EXEC_BIT   0x1
 
#define UBITSHIFT   6
 
#define GBITSHIFT   3
 
#define ACCESS_ALLOWED   0
 
#define ACCESS_DENIED   1
 
#define SIDOWNER   1
 
#define SIDGROUP   2
 
#define SIDLEN   150 /* S- 1 revision- 6 authorities- max 5 sub authorities */
 
#define SID_ID_MAPPED   0
 
#define SID_ID_PENDING   1
 
#define SID_MAP_EXPIRE   (3600 * HZ) /* map entry expires after one hour */
 
#define SID_MAP_RETRY   (300 * HZ) /* wait 5 minutes for next attempt to map */
 

Functions

struct cifs_ntsd __attribute__ ((packed))
 
int compare_sids (const struct cifs_sid *, const struct cifs_sid *)
 

Variables

__le16 revision
 
__le16 type
 
__le32 osidoffset
 
__le32 gsidoffset
 
__le32 sacloffset
 
__le32 dacloffset
 
__u8 num_subauth
 
__u8 authority [6]
 
__le32 sub_auth [5]
 
__le16 size
 
__le32 num_aces
 
__u8 flags
 
__le32 access_req
 
struct cifs_sid sid
 
struct cifs_sid cifssid
 
char sidname [SIDNAMELENGTH]
 
struct cifs_sid_id __attribute__
 

Macro Definition Documentation

#define ACCESS_ALLOWED   0

Definition at line 39 of file cifsacl.h.

#define ACCESS_DENIED   1

Definition at line 40 of file cifsacl.h.

#define DEFSECDESCLEN   192 /* sec desc len contaiting a dacl with three aces */

Definition at line 30 of file cifsacl.h.

#define EXEC_BIT   0x1

Definition at line 34 of file cifsacl.h.

#define GBITSHIFT   3

Definition at line 37 of file cifsacl.h.

#define NUM_AUTHS   6 /* number of authority fields */

Definition at line 26 of file cifsacl.h.

#define NUM_SUBAUTHS   5 /* number of sub authority fields */

Definition at line 27 of file cifsacl.h.

#define NUM_WK_SIDS   7 /* number of well known sids */

Definition at line 28 of file cifsacl.h.

#define READ_BIT   0x4

Definition at line 32 of file cifsacl.h.

#define SID_ID_MAPPED   0

Definition at line 46 of file cifsacl.h.

#define SID_ID_PENDING   1

Definition at line 47 of file cifsacl.h.

#define SID_MAP_EXPIRE   (3600 * HZ) /* map entry expires after one hour */

Definition at line 48 of file cifsacl.h.

#define SID_MAP_RETRY   (300 * HZ) /* wait 5 minutes for next attempt to map */

Definition at line 49 of file cifsacl.h.

#define SIDGROUP   2

Definition at line 43 of file cifsacl.h.

#define SIDLEN   150 /* S- 1 revision- 6 authorities- max 5 sub authorities */

Definition at line 44 of file cifsacl.h.

#define SIDNAMELENGTH   20 /* long enough for the ones we care about */

Definition at line 29 of file cifsacl.h.

#define SIDOWNER   1

Definition at line 42 of file cifsacl.h.

#define UBITSHIFT   6

Definition at line 36 of file cifsacl.h.

#define WRITE_BIT   0x2

Definition at line 33 of file cifsacl.h.

Function Documentation

struct cifs_ntsd __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

int compare_sids ( const struct cifs_sid ,
const struct cifs_sid  
)

Definition at line 635 of file cifsacl.c.

Variable Documentation

__le32 access_req

Definition at line 83 of file cifsacl.h.

__u8 authority[6]

Definition at line 68 of file cifsacl.h.

struct cifs_sid cifssid

Definition at line 85 of file cifsacl.h.

__le32 dacloffset

Definition at line 64 of file cifsacl.h.

__u8 flags

Definition at line 81 of file cifsacl.h.

__le32 gsidoffset

Definition at line 62 of file cifsacl.h.

__le32 num_aces

Definition at line 74 of file cifsacl.h.

__u8 num_subauth

Definition at line 67 of file cifsacl.h.

__le32 osidoffset

Definition at line 61 of file cifsacl.h.

Definition at line 59 of file cifsacl.h.

__le32 sacloffset

Definition at line 63 of file cifsacl.h.

Definition at line 84 of file cifsacl.h.

char sidname[SIDNAMELENGTH]

Definition at line 86 of file cifsacl.h.

__le16 size

Definition at line 73 of file cifsacl.h.

__le32 sub_auth[5]

Definition at line 69 of file cifsacl.h.

Definition at line 60 of file cifsacl.h.