diff options
-rw-r--r-- | lib/util/unix_privs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util/unix_privs.c b/lib/util/unix_privs.c index b30b2f5163..9aa9a45918 100644 --- a/lib/util/unix_privs.c +++ b/lib/util/unix_privs.c @@ -85,3 +85,9 @@ void *root_privileges(void) talloc_set_destructor(s, privileges_destructor); return s; } + +uid_t root_privileges_original_uid(void *s) +{ + struct saved_state *saved = talloc_get_type_abort(s, struct saved_state); + return saved->uid; +} |