diff --git a/sandboxed_api/sandbox2/policybuilder.cc b/sandboxed_api/sandbox2/policybuilder.cc index c9c4fb6..622a7b1 100644 --- a/sandboxed_api/sandbox2/policybuilder.cc +++ b/sandboxed_api/sandbox2/policybuilder.cc @@ -15,14 +15,12 @@ #include "sandboxed_api/sandbox2/policybuilder.h" #include // For TCGETS -#include -#include // For the fcntl flags +#include // For the fcntl flags #include #include #include // For SYS_CONNECT #include // For GRND_NONBLOCK #include // For mmap arguments -#include #include #include #include @@ -648,11 +646,6 @@ PolicyBuilder& PolicyBuilder::AllowRename() { return *this; } -PolicyBuilder& PolicyBuilder::AllowPrctlSetName() { - AddPolicyOnSyscall(__NR_prctl, {ARG_32(0), JEQ(PR_SET_NAME, ALLOW)}); - return *this; -} - PolicyBuilder& PolicyBuilder::AllowFutexOp(int op) { return AddPolicyOnSyscall( __NR_futex, { diff --git a/sandboxed_api/sandbox2/policybuilder.h b/sandboxed_api/sandbox2/policybuilder.h index 48ddcee..f249462 100644 --- a/sandboxed_api/sandbox2/policybuilder.h +++ b/sandboxed_api/sandbox2/policybuilder.h @@ -379,11 +379,6 @@ class PolicyBuilder final { // - renameat2 PolicyBuilder& AllowRename(); - // Appends code to allow setting the name of a thread - // Allows the following - // - prctl(PR_SET_NAME, ...) - PolicyBuilder& AllowPrctlSetName(); - // Enables the syscalls necessary to start a statically linked binary // // NOTE: This will call BlockSyscallWithErrno(__NR_readlink, ENOENT). If you