summaryrefslogtreecommitdiff
path: root/lib/uid_wrapper/uid_wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uid_wrapper/uid_wrapper.h')
-rw-r--r--lib/uid_wrapper/uid_wrapper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.h b/lib/uid_wrapper/uid_wrapper.h
index b3b11d954a..c0aebcfafc 100644
--- a/lib/uid_wrapper/uid_wrapper.h
+++ b/lib/uid_wrapper/uid_wrapper.h
@@ -21,6 +21,7 @@
int uwrap_enabled(void);
int uwrap_seteuid(uid_t euid);
+int uwrap_setreuid(uid_t reuid, uid_t euid);
uid_t uwrap_geteuid(void);
int uwrap_setegid(gid_t egid);
uid_t uwrap_getegid(void);
@@ -34,6 +35,11 @@ gid_t uwrap_getgid(void);
#endif
#define seteuid uwrap_seteuid
+#ifdef setreuid
+#undef setreuid
+#endif
+#define setreuid uwrap_setreuid
+
#ifdef setegid
#undef setegid
#endif