#include "sandbox/linux/services/namespace_utils.h"
#include <fcntl.h>
#include <sched.h>
#include <stddef.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/notreached.h"
#include "base/posix/eintr_wrapper.h"
#include "base/process/launch.h"
#include "base/strings/safe_sprintf.h"
namespace sandbox {
namespace {
const char kProcSelfSetgroups[] = …;
}
bool NamespaceUtils::WriteToIdMapFile(const char* map_file, generic_id_t id) { … }
bool NamespaceUtils::KernelSupportsUnprivilegedNamespace(int type) { … }
bool NamespaceUtils::KernelSupportsDenySetgroups() { … }
bool NamespaceUtils::DenySetgroups() { … }
}