1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

Working UNIX -> NT ACL mapper.

Jeremy.
(This used to be commit f09c53f6b15e96ab1d306c044cbdcd086006c977)
This commit is contained in:
Jeremy Allison 2000-05-31 17:56:08 +00:00
parent a811ade9aa
commit 6c96a55ef5
2 changed files with 531 additions and 568 deletions

File diff suppressed because it is too large Load Diff

View File

@ -442,12 +442,14 @@ size_t get_nt_acl(files_struct *fsp, SEC_DESC **ppdesc)
}
/****************************************************************************
Reply to set a security descriptor on an fsp. If it succeeds it returns
Reply to set a security descriptor on an fsp. security_info_sent is the
description of the following NT ACL.
This should be the only external function needed for the UNIX style set ACL.
****************************************************************************/
BOOL set_nt_acl(files_struct *fsp, SEC_DESC *pdesc)
BOOL set_nt_acl(files_struct *fsp, uint32 security_info_sent, SEC_DESC *psd)
{
connection_struct *conn = fsp->conn;
uid_t user = (uid_t)-1;
gid_t grp = (gid_t)-1;
mode_t perms = 0;