torture: Improve winbindd.pac test to check multiple GENSEC mechanims
[Samba.git] / source3 / rpc_server / srv_access_check.h
blob72ce539568ee0e0790d27eb9ba941f0bf42914d0
1 /*
2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Andrew Tridgell 1992-1997,
5 * Copyright (C) Luke Kenneth Casson Leighton 1996-1997,
6 * Copyright (C) Paul Ashton 1997,
7 * Copyright (C) Marc Jacobsen 1999,
8 * Copyright (C) Jeremy Allison 2001-2008,
9 * Copyright (C) Jean François Micouleau 1998-2001,
10 * Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002,
11 * Copyright (C) Gerald (Jerry) Carter 2003-2004,
12 * Copyright (C) Simo Sorce 2003.
13 * Copyright (C) Volker Lendecke 2005.
14 * Copyright (C) Guenther Deschner 2008.
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, see <http://www.gnu.org/licenses/>.
30 #ifndef _RPC_SERVER_SRV_ACCESS_CHECK_H_
31 #define _RPC_SERVER_SRV_ACCESS_CHECK_H_
33 /* The following definitions come from rpc_server/srv_access_check.c */
35 NTSTATUS access_check_object( struct security_descriptor *psd, struct security_token *token,
36 enum sec_privilege needed_priv_1, enum sec_privilege needed_priv_2,
37 uint32 rights_mask,
38 uint32 des_access, uint32 *acc_granted,
39 const char *debug );
40 void map_max_allowed_access(const struct security_token *nt_token,
41 const struct security_unix_token *unix_token,
42 uint32_t *pacc_requested);
44 #endif /* _RPC_SERVER_SRV_ACCESS_CHECK_H_ */