Example:
version (linux) {
import core.sys.linux.unistd : getpid;
auto features = sandboxFeatures(getpid());
foreach (f; features) {
writeln("Feature: ", f);
}
}string[] sandboxFeatures(int pid) @trustedGets the list of sandboxing features applied to a process.
This function returns a list of active sandboxing mechanisms:
pid | The process ID to query. |
Example:
version (linux) {
import core.sys.linux.unistd : getpid;
auto features = sandboxFeatures(getpid());
foreach (f; features) {
writeln("Feature: ", f);
}
}