summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-02-25 12:06:19 +0100
committerGünther Deschner <gd@samba.org>2011-03-08 11:41:30 +0100
commit53018dc37dffc1d2eba08347cac3f3db723f741d (patch)
treeb1b424ce62e36450102ee9c30e5915952a284a43 /source3/rpc_server
parentcc5b88545de27ae37a8e8876490d0207c80fae6f (diff)
downloadsamba-53018dc37dffc1d2eba08347cac3f3db723f741d.tar.gz
samba-53018dc37dffc1d2eba08347cac3f3db723f741d.tar.bz2
samba-53018dc37dffc1d2eba08347cac3f3db723f741d.zip
s3-rpc_server: Only allow epm insert and delete on NCALRPC.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/epmapper/srv_epmapper.c6
1 files changed, 4 insertions, 2 deletions
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;
}