summaryrefslogtreecommitdiff
path: root/source4/lib/util/unix_privs.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-06 00:24:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:16 -0500
commitc287cc247d90c996894cab18e870c992e7f84f85 (patch)
tree01bcabc38219d24c75b4ba494eed2b4e475f7f2a /source4/lib/util/unix_privs.c
parent77ffddec1911ac5de3a96a36c9476dce6e67f4f4 (diff)
downloadsamba-c287cc247d90c996894cab18e870c992e7f84f85.tar.gz
samba-c287cc247d90c996894cab18e870c992e7f84f85.tar.bz2
samba-c287cc247d90c996894cab18e870c992e7f84f85.zip
r13851: More doc improvements.
(This used to be commit 936d26ae64b93ef8f8b2fbc632b1c2fd60840405)
Diffstat (limited to 'source4/lib/util/unix_privs.c')
-rw-r--r--source4/lib/util/unix_privs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/util/unix_privs.c b/source4/lib/util/unix_privs.c
index 13b0aa203c..c94cf619a3 100644
--- a/source4/lib/util/unix_privs.c
+++ b/source4/lib/util/unix_privs.c
@@ -59,6 +59,12 @@ static int privileges_destructor(void *ptr)
return 0;
}
+/**
+ * Obtain root privileges for the current process.
+ *
+ * The privileges can be dropped by talloc_free()-ing the
+ * token returned by this function
+ */
void *root_privileges(void)
{
struct saved_state *s;