/[path-sandbox]/trunk/src/sandbox.c
Gentoo

Diff of /trunk/src/sandbox.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 77 Revision 78
667 } 667 }
668 668
669 setenv(ENV_SANDBOX_DIR, sandbox_dir, 1); 669 setenv(ENV_SANDBOX_DIR, sandbox_dir, 1);
670 setenv(ENV_SANDBOX_LIB, sandbox_lib, 1); 670 setenv(ENV_SANDBOX_LIB, sandbox_lib, 1);
671 setenv(ENV_SANDBOX_BASHRC, sandbox_rc, 1); 671 setenv(ENV_SANDBOX_BASHRC, sandbox_rc, 1);
672 if (NULL != getenv("LD_PRELOAD")) { 672 if ((NULL != getenv("LD_PRELOAD")) &&
673 /* FIXME: for now, do not use current LD_PRELOAD if
674 * it contains libtsocks, as it breaks sandbox, bug #91541.
675 */
676 (NULL == strstr(getenv("LD_PRELOAD"), "libtsocks"))) {
673 tmp_string = malloc(strlen(getenv("LD_PRELOAD")) + 677 tmp_string = malloc(strlen(getenv("LD_PRELOAD")) +
674 strlen(sandbox_lib) + 2); 678 strlen(sandbox_lib) + 2);
675 if (NULL == tmp_string) { 679 if (NULL == tmp_string) {
676 perror(">>> Out of memory (LD_PRELOAD)"); 680 perror(">>> Out of memory (LD_PRELOAD)");
677 exit(1); 681 exit(1);

Legend:
Removed from v.77  
changed lines
  Added in v.78

  ViewVC Help
Powered by ViewVC 1.1.20