mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
s3-printing: Use become_user_by_session() function.
We create a fake connection here and don't have an vuid. So work with the session_info directly here. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 11 22:56:12 CEST 2011 on sn-devel-104
This commit is contained in:
parent
b137156acb
commit
e3c3b4daa4
@ -636,7 +636,7 @@ static uint32 get_correct_cversion(struct pipes_struct *p,
|
||||
goto error_free_conn;
|
||||
}
|
||||
|
||||
if (!become_user(conn, get_current_vuid(conn))) {
|
||||
if (!become_user_by_session(conn, p->session_info)) {
|
||||
DEBUG(0, ("failed to become user\n"));
|
||||
*perr = WERR_ACCESS_DENIED;
|
||||
goto error_free_conn;
|
||||
@ -1019,7 +1019,7 @@ WERROR move_driver_to_download_area(struct pipes_struct *p,
|
||||
goto err_free_conn;
|
||||
}
|
||||
|
||||
if (!become_user(conn, get_current_vuid(conn))) {
|
||||
if (!become_user_by_session(conn, p->session_info)) {
|
||||
DEBUG(0, ("failed to become user\n"));
|
||||
err = WERR_ACCESS_DENIED;
|
||||
goto err_free_conn;
|
||||
@ -1948,7 +1948,7 @@ bool delete_driver_files(const struct auth_serversupplied_info *session_info,
|
||||
goto err_free_conn;
|
||||
}
|
||||
|
||||
if (!become_user(conn, get_current_vuid(conn))) {
|
||||
if (!become_user_by_session(conn, session_info)) {
|
||||
DEBUG(0, ("failed to become user\n"));
|
||||
ret = false;
|
||||
goto err_free_conn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user