mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit f956908cde7dd40643ff49cf433d0cf7765027de)
This commit is contained in:
commit
c98419d367
@ -104,19 +104,31 @@ interface xattr
|
|||||||
|
|
||||||
/* we store the NT ACL a NTACL xattr. It is versioned so we
|
/* we store the NT ACL a NTACL xattr. It is versioned so we
|
||||||
can later add other acl attribs (such as posix acl mapping)
|
can later add other acl attribs (such as posix acl mapping)
|
||||||
|
|
||||||
we put this xattr in the security namespace to ensure that
|
we put this xattr in the security namespace to ensure that
|
||||||
only trusted users can write to the ACL
|
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";
|
const char *XATTR_NTACL_NAME = "security.NTACL";
|
||||||
|
|
||||||
|
typedef [public] struct {
|
||||||
|
security_descriptor *sd;
|
||||||
|
NTTIME last_changed;
|
||||||
|
} security_descriptor_timestamp;
|
||||||
|
|
||||||
typedef [switch_type(uint16)] union {
|
typedef [switch_type(uint16)] union {
|
||||||
[case(1)] security_descriptor *sd;
|
[case(1)] security_descriptor *sd;
|
||||||
|
[case(2)] security_descriptor_timestamp *sd_ts;
|
||||||
} xattr_NTACL_Info;
|
} xattr_NTACL_Info;
|
||||||
|
|
||||||
typedef [public] struct {
|
typedef [public] struct {
|
||||||
uint16 version;
|
uint16 version;
|
||||||
[switch_is(version)] xattr_NTACL_Info info;
|
[switch_is(version)] xattr_NTACL_Info info;
|
||||||
} xattr_NTACL;
|
} xattr_NTACL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user