#include "remoting/host/setup/start_host_as_root.h"
#include <errno.h>
#include <grp.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "base/check.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/process/launch.h"
#include "base/strings/string_split.h"
namespace remoting {
constexpr char kChromotingGroupName[] = …;
void PrintGroupMembershipError(const char* user_name) { … }
bool CheckChromotingGroupMembership(const char* user_name,
gid_t user_group_id) { … }
int StartHostAsRoot(int argc, char** argv) { … }
}