smbd: Add mem_ctx to {f,}get_nt_acl VFS call
authorAndrew Bartlett <abartlet@samba.org>
Wed, 10 Oct 2012 00:50:27 +0000 (11:50 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 11 Oct 2012 01:25:11 +0000 (12:25 +1100)
commitc8ade07760ae0ccfdf2d875c9f3027926e62321b
treeabac36ce81b1e0737bfeb607699a41773beb958e
parent9158974540d0e311021f04789ed75ebda466c5b3
smbd: Add mem_ctx to {f,}get_nt_acl VFS call

This makes it clear which context the returned SD is allocated on, as
a number of callers do not want it on talloc_tos().

As the ACL transformation allocates and then no longer needs a great
deal of memory, a talloc_stackframe() call is used to contain the
memory that is not returned further up the stack.

Andrew Bartlett
25 files changed:
examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c
source3/include/vfs.h
source3/include/vfs_macros.h
source3/modules/nfs4_acls.c
source3/modules/nfs4_acls.h
source3/modules/vfs_acl_common.c
source3/modules/vfs_afsacl.c
source3/modules/vfs_aixacl2.c
source3/modules/vfs_catia.c
source3/modules/vfs_default.c
source3/modules/vfs_full_audit.c
source3/modules/vfs_gpfs.c
source3/modules/vfs_media_harmony.c
source3/modules/vfs_shadow_copy2.c
source3/modules/vfs_time_audit.c
source3/modules/vfs_zfsacl.c
source3/rpc_server/srvsvc/srv_srvsvc_nt.c
source3/smbd/file_access.c
source3/smbd/nttrans.c
source3/smbd/open.c
source3/smbd/posix_acls.c
source3/smbd/proto.h
source3/smbd/vfs.c
source3/torture/cmd_vfs.c