summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-07-10 18:07:51 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-07-10 18:07:51 +1000
commitc98419d3674f2b21c35240cde90ba895e3aea1c8 (patch)
tree5e6ea62ecbb5ebda9bc7c23e53010d082c5cffbd /source4
parenta5e3c5e236794aef2ccc332449824f4e9a18b09d (diff)
parent87f1a6c151aa9c4fd61dda30653b3d7acebbfc5d (diff)
downloadsamba-c98419d3674f2b21c35240cde90ba895e3aea1c8.tar.gz
samba-c98419d3674f2b21c35240cde90ba895e3aea1c8.tar.bz2
samba-c98419d3674f2b21c35240cde90ba895e3aea1c8.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit f956908cde7dd40643ff49cf433d0cf7765027de)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/xattr.idl16
1 files changed, 14 insertions, 2 deletions
diff --git a/source4/librpc/idl/xattr.idl b/source4/librpc/idl/xattr.idl
index 520341e6aa..ba0123aed0 100644
--- a/source4/librpc/idl/xattr.idl
+++ b/source4/librpc/idl/xattr.idl
@@ -104,19 +104,31 @@ interface xattr
/* we store the NT ACL a NTACL xattr. It is versioned so we
can later add other acl attribs (such as posix acl mapping)
-
+
we put this xattr in the security namespace to ensure that
only trusted users can write to the ACL
+
+ stored in "security.NTACL"
+
+ Version 1. raw SD stored as Samba4 does it.
+ Version 2. raw SD + last changed timestamp so we
+ can discard if this doesn't match the POSIX st_ctime.
*/
+
const char *XATTR_NTACL_NAME = "security.NTACL";
+ typedef [public] struct {
+ security_descriptor *sd;
+ NTTIME last_changed;
+ } security_descriptor_timestamp;
+
typedef [switch_type(uint16)] union {
[case(1)] security_descriptor *sd;
+ [case(2)] security_descriptor_timestamp *sd_ts;
} xattr_NTACL_Info;
typedef [public] struct {
uint16 version;
[switch_is(version)] xattr_NTACL_Info info;
} xattr_NTACL;
-
}