summaryrefslogtreecommitdiff
path: root/cifsacl.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-12-13 08:58:54 -0500
committerJeff Layton <jlayton@samba.org>2012-12-19 09:27:14 -0500
commitd4f9df9159c5ac93b97c36b0f98ffbd318866e38 (patch)
tree68e480c67296af98aba217be5e13eb5e985d7cb9 /cifsacl.h
parentb4dc50798e6baf026d6101ff3775ffc0c3a0e2f2 (diff)
downloadcifs-utils-d4f9df9159c5ac93b97c36b0f98ffbd318866e38.tar.gz
cifs-utils-d4f9df9159c5ac93b97c36b0f98ffbd318866e38.tar.bz2
cifs-utils-d4f9df9159c5ac93b97c36b0f98ffbd318866e38.zip
cifs-utils: struct cifs_sid definition to new cifsidmap.h header
People who want to build a plugin for the idmapping routines will need a header to describe the data types that they need. Add a cifsidmap.h file and move the struct cifs_sid definition into it, along with the constants needed to describe it. Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'cifsacl.h')
-rw-r--r--cifsacl.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/cifsacl.h b/cifsacl.h
index 68fe0fd..ca72dd4 100644
--- a/cifsacl.h
+++ b/cifsacl.h
@@ -20,6 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "cifsidmap.h"
+
#ifndef _CIFSACL_H
#define _CIFSACL_H
@@ -96,9 +98,6 @@
#define COMPMASK 0x8
#define COMPALL (COMPSID|COMPTYPE|COMPFLAG|COMPMASK)
-#define NUM_AUTHS (6) /* number of authority fields */
-#define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */
-
/*
* While not indicated here, the structs below represent on-the-wire data
* structures. Any multi-byte values are expected to be little-endian!
@@ -114,13 +113,6 @@ struct cifs_ntsd {
uint32_t dacloffset;
} __attribute__((packed));
-struct cifs_sid {
- uint8_t revision; /* revision level */
- uint8_t num_subauth;
- uint8_t authority[NUM_AUTHS];
- uint32_t sub_auth[SID_MAX_SUB_AUTHORITIES];
-} __attribute__((packed));
-
struct cifs_ctrl_acl {
uint16_t revision; /* revision level */
uint16_t size;