/[path-sandbox]/trunk/src/libsandbox.h
Gentoo

Diff of /trunk/src/libsandbox.h

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

Revision 222 Revision 223
7 */ 7 */
8 8
9#ifndef __LIBSANDBOX_H__ 9#ifndef __LIBSANDBOX_H__
10#define __LIBSANDBOX_H__ 10#define __LIBSANDBOX_H__
11 11
12#if !defined(OUTSIDE_LIBSANDBOX) && !defined(HAVE_RTLD_NEXT) 12#if !defined(OUTSIDE_LIBSANDBOX)
13/* Need to disable sandbox, as on non-RTLD_NEXT libc's, opendir() 13/* Need to disable sandbox, as on non-linux libc's, opendir() is
14 * used by some getcwd() implementations resolves to the sandbox 14 * used by some getcwd() implementations and resolves to the sandbox
15 * opendir() wrapper ... */ 15 * opendir() wrapper, causing infinit recursion and finially crashes.
16 */
16extern int sandbox_on; 17extern int sandbox_on;
17# define set_sandbox_on sandbox_on = 1 18# define set_sandbox_on sandbox_on = 1
18# define set_sandbox_off sandbox_on = 0 19# define set_sandbox_off sandbox_on = 0
19#else 20#else
20# define set_sandbox_on 21# define set_sandbox_on

Legend:
Removed from v.222  
changed lines
  Added in v.223

  ViewVC Help
Powered by ViewVC 1.1.20