kernel/process_capability: Handle debug capability flags

This commit is contained in:
Lioncash
2018-12-20 23:40:30 -05:00
parent 10824c5d63
commit d09fb82113
2 changed files with 18 additions and 1 deletions

View File

@ -165,6 +165,17 @@ public:
return kernel_version;
}
/// Whether or not this process can be debugged.
bool IsDebuggable() const {
return is_debuggable;
}
/// Whether or not this process can forcibly debug another
/// process, even if that process is not considered debuggable.
bool CanForceDebug() const {
return can_force_debug;
}
private:
/// Attempts to parse a given sequence of capability descriptors.
///