mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3: Lift the smbd_messaging_context from winreg_get_printer_secdesc
This commit is contained in:
parent
bd8a1d8a86
commit
4fb993f613
@ -2100,6 +2100,7 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum,
|
||||
|
||||
result = winreg_get_printer_secdesc(mem_ctx,
|
||||
server_info,
|
||||
smbd_messaging_context(),
|
||||
pname,
|
||||
&secdesc);
|
||||
if (!W_ERROR_IS_OK(result)) {
|
||||
|
@ -5406,6 +5406,7 @@ static WERROR update_printer_sec(struct policy_handle *handle,
|
||||
nothing may have actually changed. */
|
||||
result = winreg_get_printer_secdesc(p->mem_ctx,
|
||||
p->server_info,
|
||||
p->msg_ctx,
|
||||
printer,
|
||||
&old_secdesc);
|
||||
if (!W_ERROR_IS_OK(result)) {
|
||||
|
@ -2222,6 +2222,7 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
|
||||
|
||||
result = winreg_get_printer_secdesc(info2,
|
||||
server_info,
|
||||
msg_ctx,
|
||||
printer,
|
||||
&info2->secdesc);
|
||||
if (!W_ERROR_IS_OK(result)) {
|
||||
@ -2254,6 +2255,7 @@ done:
|
||||
|
||||
WERROR winreg_get_printer_secdesc(TALLOC_CTX *mem_ctx,
|
||||
struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx,
|
||||
const char *sharename,
|
||||
struct spoolss_security_descriptor **psecdesc)
|
||||
{
|
||||
@ -2283,7 +2285,7 @@ WERROR winreg_get_printer_secdesc(TALLOC_CTX *mem_ctx,
|
||||
|
||||
result = winreg_printer_openkey(tmp_ctx,
|
||||
server_info,
|
||||
smbd_messaging_context(),
|
||||
msg_ctx,
|
||||
&winreg_pipe,
|
||||
path,
|
||||
"",
|
||||
@ -2448,6 +2450,7 @@ WERROR winreg_set_printer_secdesc(TALLOC_CTX *mem_ctx,
|
||||
|
||||
result = winreg_get_printer_secdesc(tmp_ctx,
|
||||
server_info,
|
||||
smbd_messaging_context(),
|
||||
sharename,
|
||||
&old_secdesc);
|
||||
if (!W_ERROR_IS_OK(result)) {
|
||||
|
@ -148,6 +148,7 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
|
||||
*/
|
||||
WERROR winreg_get_printer_secdesc(TALLOC_CTX *mem_ctx,
|
||||
struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx,
|
||||
const char *sharename,
|
||||
struct spoolss_security_descriptor **psecdesc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user