Home | History | Annotate | Download | only in services

Lines Matching full:yama

5 #include "sandbox/linux/services/yama.h"
32 // Enable or disable the Yama ptracers restrictions.
33 // Return false if Yama is not present on this kernel.
48 // ENOSYS or EINVAL means Yama is not in the current kernel.
66 bool Yama::RestrictPtracersToAncestors() {
71 bool Yama::DisableYamaRestrictions() {
76 int Yama::GetStatus() {
81 static const char kPtraceScopePath[] = "/proc/sys/kernel/yama/ptrace_scope";
88 // The status is known, yama is not present.
112 bool Yama::IsPresent() { return GetStatus() & STATUS_PRESENT; }
115 bool Yama::IsEnforcing() { return GetStatus() & STATUS_ENFORCING; }