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:
parent
cc5b88545d
commit
53018dc37d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user