summaryrefslogtreecommitdiff
path: root/source4/lib/util/unix_privs.c
diff options
context:
space:
mode:
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;