diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-29 03:22:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:11 -0500 |
commit | 71a81e9dcbbdc3e8d443967e47110ce9187a7c1d (patch) | |
tree | 7bf3c3c33d6ec086f2dea426aaf324c21fca96dc /source4/ntvfs/posix/vfs_posix.c | |
parent | 8b4c1f448cd698c2f7fa01f537fc4216f3030279 (diff) | |
download | samba-71a81e9dcbbdc3e8d443967e47110ce9187a7c1d.tar.gz samba-71a81e9dcbbdc3e8d443967e47110ce9187a7c1d.tar.bz2 samba-71a81e9dcbbdc3e8d443967e47110ce9187a7c1d.zip |
r3990: take advantage of the uid->sid and gid->sid code to create a much
better default NT ACL in pvfs
(This used to be commit 9ff6ecbdb6c08528193f7958d7ea7d9a8df6defd)
Diffstat (limited to 'source4/ntvfs/posix/vfs_posix.c')
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index e340e8cbf6..ff3d3448f2 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -130,6 +130,11 @@ static NTSTATUS pvfs_connect(struct ntvfs_module_context *ntvfs, return NT_STATUS_INTERNAL_DB_CORRUPTION; } + pvfs->sidmap = sidmap_open(pvfs); + if (pvfs->sidmap == NULL) { + return NT_STATUS_INTERNAL_DB_CORRUPTION; + } + /* allocate the fnum id -> ptr tree */ pvfs->idtree_fnum = idr_init(pvfs); if (pvfs->idtree_fnum == NULL) { |