1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3-rpc_server: Only allow epm insert and delete on NCALRPC.

Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2011-02-25 12:06:19 +01:00 committed by Günther Deschner
parent cc5b88545d
commit 53018dc37d

View File

@ -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;
}