mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:services_db: remove the TALLOC_CTX argument from svcctl_set_secdesc
This commit is contained in:
parent
91d5446390
commit
9bfd587358
@ -4397,7 +4397,8 @@ bool init_service_op_table( void );
|
||||
|
||||
void svcctl_init_keys( void );
|
||||
struct security_descriptor *svcctl_get_secdesc( TALLOC_CTX *ctx, const char *name, struct security_token *token );
|
||||
bool svcctl_set_secdesc( TALLOC_CTX *ctx, const char *name, struct security_descriptor *sec_desc, struct security_token *token );
|
||||
bool svcctl_set_secdesc(const char *name, struct security_descriptor *sec_desc,
|
||||
struct security_token *token);
|
||||
const char *svcctl_lookup_dispname(TALLOC_CTX *ctx, const char *name, struct security_token *token );
|
||||
const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, struct security_token *token );
|
||||
struct regval_ctr *svcctl_fetch_regvalues( const char *name, struct security_token *token );
|
||||
|
@ -956,8 +956,7 @@ WERROR _svcctl_SetServiceObjectSecurity(struct pipes_struct *p,
|
||||
|
||||
/* store the new SD */
|
||||
|
||||
if ( !svcctl_set_secdesc( p->mem_ctx, info->name, sec_desc,
|
||||
p->server_info->ptok) )
|
||||
if (!svcctl_set_secdesc(info->name, sec_desc, p->server_info->ptok))
|
||||
return WERR_ACCESS_DENIED;
|
||||
|
||||
return WERR_OK;
|
||||
|
@ -574,7 +574,8 @@ done:
|
||||
Wrapper to make storing a Service sd easier
|
||||
********************************************************************/
|
||||
|
||||
bool svcctl_set_secdesc( TALLOC_CTX *ctx, const char *name, struct security_descriptor *sec_desc, struct security_token *token )
|
||||
bool svcctl_set_secdesc(const char *name, struct security_descriptor *sec_desc,
|
||||
struct security_token *token)
|
||||
{
|
||||
struct registry_key *key = NULL;
|
||||
WERROR wresult;
|
||||
|
Loading…
Reference in New Issue
Block a user