summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-07-31 10:19:58 +0200
committerMichael Adam <obnox@samba.org>2014-07-31 18:49:48 +0200
commitde1f924f08b2da65871645041c06443d2b6e6a87 (patch)
tree70f2d1fa56fa36265cbcf07b759c3f367b8a3afa /lib
parent41d7b64744c4ed33634ad106e5becd1d816f33a2 (diff)
downloadsamba-de1f924f08b2da65871645041c06443d2b6e6a87.tar.gz
uwrap: Add logging if uwrap is enabled correctly.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/uid_wrapper/uid_wrapper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c
index 0bc961ebdf7..f53aa470992 100644
--- a/lib/uid_wrapper/uid_wrapper.c
+++ b/lib/uid_wrapper/uid_wrapper.c
@@ -578,6 +578,8 @@ static void uwrap_init(void)
return;
}
+ UWRAP_LOG(UWRAP_LOG_DEBUG, "Initialize uid_wrapper");
+
/*
* If we hold a lock and the application forks, then the child
* is not able to unlock the mutex and we are in a deadlock.
@@ -611,9 +613,15 @@ static void uwrap_init(void)
}
uwrap.enabled = true;
+
+ UWRAP_LOG(UWRAP_LOG_DEBUG,
+ "Enabled uid_wrapper as %s",
+ uwrap.myuid == 0 ? "root" : "user");
}
pthread_mutex_unlock(&uwrap_id_mutex);
+
+ UWRAP_LOG(UWRAP_LOG_DEBUG, "Succeccfully initialized uid_wrapper");
}
bool uid_wrapper_enabled(void)