[Samba] Switching between (status update)

Steve Tice stic6021 at gmail.com
Fri Jan 25 17:25:01 MST 2013

Steve Tice <stic6021 <at> gmail.com> writes:

> I look forward to testing the proposal above and reporting back here
> with results.

Motivated by a desire to stay employed, I have now accomplished what I set
out to do. Using the tdb API, reading records from file_ntacls.tdb was a
bit easier than expected. Using the setxattr system call, writing an ACL to
an extended attribute, such that the acl_xattr module correctly reads the
ACEs, was much easier than expected. I was able to copy the ACL data from
the TDB to the EA with no translation or reformatting.

To get started, I used source3/utils/smbcacls.c as a template utility
program. I studied the tdb API. For guidance on how to open and read
file_ntacls.tdb, I studied source3/modules/vfs_acl_tdb.c and
source3/modules/vfs_acl_common.c. For guidance on how to write an ACL to an
extended attribute, I studied source3/modules/vfs_acl_xattr.c.

I'm still testing, but it's looking good.

Thanks to everybody for patiently answering my questions and offering help.


More information about the samba mailing list