Bug 956961 - Stop disabling sandboxing when DMD is enabled. r=kang

--HG--
extra : amend_source : 66f2453794e6a8a581e1564e786cfc8cac1f6bbd
This commit is contained in:
Jed Davis 2014-07-02 11:28:48 -07:00
Родитель adc6a05bd1
Коммит 1ef012aafb
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -211,15 +211,6 @@ InstallSyscallReporter(void)
static int
InstallSyscallFilter(const sock_fprog *prog)
{
#ifdef MOZ_DMD
char* e = PR_GetEnv("DMD");
if (e && strcmp(e, "") != 0 && strcmp(e, "0") != 0) {
LOG_ERROR("SANDBOX DISABLED FOR DMD! See bug 956961.");
// Must treat this as "failure" in order to prevent infinite loop;
// cf. the PR_GET_SECCOMP check below.
return 1;
}
#endif
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
return 1;
}