Пример #1
0
static NTSTATUS elog_close( pipes_struct *p, struct policy_handle *hnd )
{
        if ( !( close_policy_hnd( p, hnd ) ) ) {
                return NT_STATUS_INVALID_HANDLE;
        }

	return NT_STATUS_OK;
}
Пример #2
0
NTSTATUS _reg_close(pipes_struct *p, REG_Q_CLOSE *q_u, REG_R_CLOSE *r_u)
{
	/* set up the REG unknown_1 response */
	ZERO_STRUCT(r_u->pol);

	/* close the policy handle */
	if (!close_policy_hnd(p, &q_u->pol))
		return NT_STATUS_OBJECT_NAME_INVALID;

	return NT_STATUS_OK;
}
Пример #3
0
void close_policy_by_pipe(pipes_struct *p)
{
	p->pipe_handles->pipe_ref_count--;

	if (p->pipe_handles->pipe_ref_count == 0) {
		/*
		 * Last pipe open on this list - free the list.
		 */
		while (p->pipe_handles->Policy)
			close_policy_hnd(p, &p->pipe_handles->Policy->pol_hnd);

		p->pipe_handles->Policy = NULL;
		p->pipe_handles->count = 0;

		SAFE_FREE(p->pipe_handles);
		DEBUG(10,("close_policy_by_pipe: deleted handle list for pipe %s\n", p->name ));
	}
}
Пример #4
0
void close_policy_by_pipe(pipes_struct *p)
{
    p->pipe_handles->pipe_ref_count--;

    if (p->pipe_handles->pipe_ref_count == 0) {
        /*
         * Last pipe open on this list - free the list.
         */
        while (p->pipe_handles->Policy)
            close_policy_hnd(p, &p->pipe_handles->Policy->pol_hnd);

        p->pipe_handles->Policy = NULL;
        p->pipe_handles->count = 0;

        SAFE_FREE(p->pipe_handles);
        DEBUG(10,("close_policy_by_pipe: deleted handle list for "
                  "pipe %s\n",
                  get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
    }
}
Пример #5
0
/****************************************************************************
  close dirent handle
****************************************************************************/
BOOL dirent_close_hnd(PDENT_HND hnd)
{
	return close_policy_hnd(hnd);
}
Пример #6
0
/****************************************************************************
  close file handle
****************************************************************************/
BOOL file_close_hnd(PFILE_HND hnd)
{
	return close_policy_hnd(hnd);
}