From 53018dc37dffc1d2eba08347cac3f3db723f741d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 25 Feb 2011 12:06:19 +0100 Subject: s3-rpc_server: Only allow epm insert and delete on NCALRPC. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/rpc_server/epmapper/srv_epmapper.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c index 1852b5bf97..f0bd9c63f5 100644 --- a/source3/rpc_server/epmapper/srv_epmapper.c +++ b/source3/rpc_server/epmapper/srv_epmapper.c @@ -233,7 +233,8 @@ error_status_t _epm_Insert(struct pipes_struct *p, uint32_t i; /* If this is not a priviledged users, return */ - if (!is_priviledged_pipe(p->session_info)) { + if (p->transport != NCALRPC || + !is_priviledged_pipe(p->session_info)) { return EPMAPPER_STATUS_CANT_PERFORM_OP; } @@ -349,7 +350,8 @@ error_status_t _epm_Delete(struct pipes_struct *p, r->in.num_ents)); /* If this is not a priviledged users, return */ - if (!is_priviledged_pipe(p->session_info)) { + if (p->transport != NCALRPC || + !is_priviledged_pipe(p->session_info)) { return EPMAPPER_STATUS_CANT_PERFORM_OP; } -- cgit