summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-03-15 10:45:15 -0700
committerJeremy Allison <jra@samba.org>2010-03-15 14:49:06 -0700
commit5d6610a21580a1d588465ec9f144f5a6daad57cd (patch)
tree9d74de23fd24871d4d0ff1bbac3d28b17c9bfa93 /source3/include/proto.h
parent1332ce52b7b78b9e03e376f312120c0f1d7e302a (diff)
downloadsamba-5d6610a21580a1d588465ec9f144f5a6daad57cd.tar.gz
samba-5d6610a21580a1d588465ec9f144f5a6daad57cd.tar.bz2
samba-5d6610a21580a1d588465ec9f144f5a6daad57cd.zip
Add accessor functions for current uid, gid, unix token, NT token and vuid.
Jeremy.
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 453f8e99df..54500009c4 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -7117,6 +7117,11 @@ void become_root(void);
void unbecome_root(void);
bool become_user(connection_struct *conn, uint16 vuid);
bool unbecome_user(void);
+uid_t get_current_uid(connection_struct *conn);
+gid_t get_current_gid(connection_struct *conn);
+const UNIX_USER_TOKEN *get_current_utok(connection_struct *conn);
+const NT_USER_TOKEN *get_current_nttok(connection_struct *conn);
+uint16_t get_current_vuid(connection_struct *conn);
/* The following definitions come from smbd/utmp.c */