summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-06-29 20:34:03 +0200
committerGünther Deschner <gd@samba.org>2009-07-13 15:38:20 +0200
commitf7ff6bd1425cc4f0aa13ce8e7498cdac3967acf3 (patch)
tree2d00247662e99b2453c4dbfa8b8aa1503c8cb8b2 /source3/include
parent05fbe0c7f763fbe8c1c48eb82ebdfe04bfa034ea (diff)
downloadsamba-f7ff6bd1425cc4f0aa13ce8e7498cdac3967acf3.tar.gz
samba-f7ff6bd1425cc4f0aa13ce8e7498cdac3967acf3.tar.bz2
samba-f7ff6bd1425cc4f0aa13ce8e7498cdac3967acf3.zip
s3-rpc_server: pass down full unix token to map_max_allowed_access().
Also use unix_token->uid instead of geteuid() when checking for mapping of the SEC_FLAG_MAXIMUM_ALLOWED flag. Guenther
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 44132b6519..c0ce35a865 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -7253,8 +7253,9 @@ NTSTATUS access_check_object( SEC_DESC *psd, NT_USER_TOKEN *token,
SE_PRIV *rights, uint32 rights_mask,
uint32 des_access, uint32 *acc_granted,
const char *debug);
-void map_max_allowed_access(const NT_USER_TOKEN *token,
- uint32_t *pacc_requested);
+void map_max_allowed_access(const NT_USER_TOKEN *nt_token,
+ const struct unix_user_token *unix_token,
+ uint32_t *pacc_requested);
/* The following definitions come from ../libds/common/flag_mapping.c */