/[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 89 Revision 90
33#include <fcntl.h> 33#include <fcntl.h>
34#include "sandbox.h" 34#include "sandbox.h"
35 35
36#define SB_BUF_LEN 2048 36#define SB_BUF_LEN 2048
37 37
38int preload_adaptable = 1;
39int cleaned_up = 0; 38int cleaned_up = 0;
40int print_debug = 0; 39int print_debug = 0;
41int stop_called = 0; 40int stop_called = 0;
42 41
43/* Read pids file, and load active pids into an array. Return number of pids in array */ 42/* Read pids file, and load active pids into an array. Return number of pids in array */
106 105
107 /* Generate sandbox pids-file path */ 106 /* Generate sandbox pids-file path */
108 sandbox_pids_file = get_sandbox_pids_file(); 107 sandbox_pids_file = get_sandbox_pids_file();
109 108
110 /* Remove this sandbox's bash pid from the global pids 109 /* Remove this sandbox's bash pid from the global pids
111 * file if it has rights to adapt the ld.so.preload file */ 110 * file if we have not already done so */
112 if ((1 == preload_adaptable) && (0 == cleaned_up)) { 111 if (0 == cleaned_up) {
113 cleaned_up = 1; 112 cleaned_up = 1;
114 success = 1; 113 success = 1;
115 114
116 if (print_debug) 115 if (print_debug)
117 printf("Cleaning up pids file.\n"); 116 printf("Cleaning up pids file.\n");

Legend:
Removed from v.89  
changed lines
  Added in v.90

  ViewVC Help
Powered by ViewVC 1.1.20