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.


stic

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to