return True;
}
-/****************************************************************************
- Become the specified uid and gid.
-****************************************************************************/
-
-static bool become_id(uid_t uid, gid_t gid)
-{
- return become_gid(gid) && become_uid(uid);
-}
-
/****************************************************************************
Drop back to root privileges in order to change to another user.
****************************************************************************/
return True;
}
+#ifndef HAVE_DARWIN_INITGROUPS
/****************************************************************************
- Change UNIX security context. Calls panic if not successful so no return value.
+ Become the specified uid and gid.
****************************************************************************/
-#ifndef HAVE_DARWIN_INITGROUPS
+static bool become_id(uid_t uid, gid_t gid)
+{
+ return become_gid(gid) && become_uid(uid);
+}
+/****************************************************************************
+ Change UNIX security context. Calls panic if not successful so no return value.
+****************************************************************************/
/* Normal credential switch path. */
static void set_unix_security_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups)