#include "sandbox/linux/services/yama.h"
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "base/check.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/notreached.h"
#include "base/posix/eintr_wrapper.h"
#include "sandbox/linux/system_headers/linux_prctl.h"
namespace sandbox {
namespace {
bool SetYamaPtracersRestriction(bool enable_restrictions) { … }
bool CanAccessProcFS() { … }
}
bool Yama::RestrictPtracersToAncestors() { … }
bool Yama::DisableYamaRestrictions() { … }
int Yama::GetStatus() { … }
bool Yama::IsPresent() { … }
bool Yama::IsEnforcing() { … }
}