summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr/xattr.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-24 14:09:42 -0700
committerJeremy Allison <jra@samba.org>2009-07-24 14:09:42 -0700
commit1bab4fdaafd5930a02ae5a0d603176720ef15220 (patch)
tree7ec6fb3cdf29e03fceca04194203e3963f0d5a1f /librpc/gen_ndr/xattr.h
parent6b801d6c4cdaaf47191b7051c81cf9498acd64f1 (diff)
downloadsamba-1bab4fdaafd5930a02ae5a0d603176720ef15220.tar.gz
samba-1bab4fdaafd5930a02ae5a0d603176720ef15220.tar.bz2
samba-1bab4fdaafd5930a02ae5a0d603176720ef15220.zip
Fix hash function in acl_xattr to be SHA256, make
the hash function selectable. Upgrade version. Compiles but not fully tested yet (coming). Make vfs_acl_tdb.c compile - this needs updating to match acl_xattr (also coming soon). Jeremy.
Diffstat (limited to 'librpc/gen_ndr/xattr.h')
-rw-r--r--librpc/gen_ndr/xattr.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/librpc/gen_ndr/xattr.h b/librpc/gen_ndr/xattr.h
index 1ce58f7ec6..39f1cb0884 100644
--- a/librpc/gen_ndr/xattr.h
+++ b/librpc/gen_ndr/xattr.h
@@ -17,6 +17,9 @@
#define XATTR_MAX_STREAM_SIZE ( 0x4000 )
#define XATTR_MAX_STREAM_SIZE_TDB ( 0x100000 )
#define XATTR_NTACL_NAME ( "security.NTACL" )
+#define XATTR_SD_HASH_SIZE ( 64 )
+#define XATTR_SD_HASH_TYPE_NONE ( 0x0 )
+#define XATTR_SD_HASH_TYPE_SHA256 ( 0x1 )
struct xattr_DosInfo1 {
uint32_t attrib;
uint32_t ea_size;
@@ -75,14 +78,21 @@ struct xattr_DosStreams {
struct xattr_DosStream *streams;/* [unique,size_is(num_streams)] */
}/* [public] */;
-struct security_descriptor_hash {
+struct security_descriptor_hash_v2 {
struct security_descriptor *sd;/* [unique] */
uint8_t hash[16];
}/* [public] */;
+struct security_descriptor_hash_v3 {
+ struct security_descriptor *sd;/* [unique] */
+ uint16_t hash_type;
+ uint8_t *hash;
+}/* [public] */;
+
union xattr_NTACL_Info {
struct security_descriptor *sd;/* [unique,case] */
- struct security_descriptor_hash *sd_hs;/* [unique,case(2)] */
+ struct security_descriptor_hash_v2 *sd_hs2;/* [unique,case(2)] */
+ struct security_descriptor_hash_v3 *sd_hs3;/* [unique,case(3)] */
}/* [switch_type(uint16)] */;
struct xattr_NTACL {