From 03efd16d3465473f58dc7b91b7c45396dfa89f5a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 8 Jul 2001 18:22:46 +0000 Subject: added sec_initial_uid() function so we can ask if a file is owned by the initial uid (This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882) --- source3/lib/util_sec.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3') diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c index 5b8bdb44c1..985b07f421 100644 --- a/source3/lib/util_sec.c +++ b/source3/lib/util_sec.c @@ -58,6 +58,14 @@ void sec_init(void) initial_uid = geteuid(); } +/**************************************************************************** +some code (eg. winbindd) needs to know what uid we started as +****************************************************************************/ +uid_t sec_initial_uid(void) +{ + return initial_uid; +} + /**************************************************************************** are we running in non-root mode? ****************************************************************************/ -- cgit