s3:rpc_server: wrap make_auth4_context() into {become,unbecome}_root()
commit1f5a297b516b56ab6afbfc4ba1513dc73764dcf7
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Jun 2017 11:26:17 +0000 (30 13:26 +0200)
committerGarming Sam <garming@samba.org>
Mon, 3 Jul 2017 06:15:29 +0000 (3 08:15 +0200)
tree48b7897d7cd9169655f3972ae513c7e3d4fcbe12
parent59bee844b88ea917b2e7036b9d8deecf5b5f5f2b
s3:rpc_server: wrap make_auth4_context() into {become,unbecome}_root()

This need to create a temporary messaging context in order to do
the auth logging. This can only be done as root.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12850

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Mon Jul  3 08:15:29 CEST 2017 on sn-devel-144
source3/rpc_server/srv_pipe.c