Supporting SACLs using EAs and a VFS module?

tridge at samba.org tridge at samba.org
Wed Mar 15 03:26:21 GMT 2006


Simo,

 > I'd also like to put a version number in the EA so that we can easily
 > upgrade EA contents if we need to change the format in future.

right. This is what I used in Samba4:

	typedef [switch_type(uint16)] union {
		[case(1)] security_descriptor *sd;
	} xattr_NTACL_Info;

	typedef [public] struct {
		uint16 version;
		[switch_is(version)] xattr_NTACL_Info info;
	} xattr_NTACL;

which allows for easy versioning/upgrade.

Jerry, do you think the pidl stuff in Samba3 is far enough along for
you to consider using IDL/NDR for the SACL ?

Cheers, Tridge


More information about the samba-technical mailing list