summaryrefslogtreecommitdiffstats
path: root/source3/lib/smbd_shim.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-10-23 11:02:39 +0200
committerStefan Metzmacher <metze@samba.org>2013-10-29 15:52:58 +0100
commit13d840ad2ff0db7320e0cbef86cd47872493292c (patch)
tree41f0d4aa405e984e68f32349ce26cfcf52f828eb /source3/lib/smbd_shim.c
parent9e723f9d69bbbaefd9e15399654668693854628b (diff)
downloadsamba-13d840ad2ff0db7320e0cbef86cd47872493292c.tar.gz
samba-13d840ad2ff0db7320e0cbef86cd47872493292c.tar.xz
samba-13d840ad2ff0db7320e0cbef86cd47872493292c.zip
s3-smbd_shim: Add become_authenticated_pipe_user().
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib/smbd_shim.c')
-rw-r--r--source3/lib/smbd_shim.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/smbd_shim.c b/source3/lib/smbd_shim.c
index d5ad577975..1b5b4e6ca5 100644
--- a/source3/lib/smbd_shim.c
+++ b/source3/lib/smbd_shim.c
@@ -58,6 +58,24 @@ bool change_to_root_user(void)
return false;
}
+bool become_authenticated_pipe_user(struct auth_session_info *session_info)
+{
+ if (shim.become_authenticated_pipe_user) {
+ return shim.become_authenticated_pipe_user(session_info);
+ }
+
+ return false;
+}
+
+bool unbecome_authenticated_pipe_user(void)
+{
+ if (shim.unbecome_authenticated_pipe_user) {
+ return shim.unbecome_authenticated_pipe_user();
+ }
+
+ return false;
+}
+
/**
* The following two functions need to be called from inside the low-level BRL
* code for oplocks correctness in smbd. Since other utility binaries also