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

Diff of /trunk/sandbox.h

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

Revision 61 Revision 62
9 9
10#ifndef __SANDBOX_H__ 10#ifndef __SANDBOX_H__
11#define __SANDBOX_H__ 11#define __SANDBOX_H__
12 12
13#include "localdecls.h" 13#include "localdecls.h"
14#include "config.h"
14 15
15/* Uncomment below to use flock instead of fcntl (POSIX way) to lock/unlock files */ 16/* Uncomment below to use flock instead of fcntl (POSIX way) to lock/unlock files */
16/* #define USE_FLOCK */ 17/* #define USE_FLOCK */
17 18
18/* Uncomment below to use system() to execute the shell rather than execv */ 19/* Uncomment below to use system() to execute the shell rather than execv */
46#define ENV_SANDBOX_ON "SANDBOX_ON" 47#define ENV_SANDBOX_ON "SANDBOX_ON"
47#define ENV_SANDBOX_BEEP "SANDBOX_BEEP" 48#define ENV_SANDBOX_BEEP "SANDBOX_BEEP"
48 49
49#define DEFAULT_BEEP_COUNT 3 50#define DEFAULT_BEEP_COUNT 3
50 51
52#if !HAVE_DLVSYM
53# define dlvsym(lib, sym, ver) dlsym(lib, sym)
54#endif
55
51SB_STATIC char *get_sandbox_path(char *argv0); 56SB_STATIC char *get_sandbox_path(char *argv0);
52SB_STATIC char *get_sandbox_lib(char *sb_path); 57SB_STATIC char *get_sandbox_lib(char *sb_path);
53SB_STATIC char *get_sandbox_pids_file(void); 58SB_STATIC char *get_sandbox_pids_file(void);
54SB_STATIC char *get_sandbox_rc(char *sb_path); 59SB_STATIC char *get_sandbox_rc(char *sb_path);
55SB_STATIC char *get_sandbox_log(); 60SB_STATIC char *get_sandbox_log();

Legend:
Removed from v.61  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.20