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

Diff of /trunk/libsandbox.c

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

Revision 36 Revision 37
134 int num_predict_prefixes; 134 int num_predict_prefixes;
135 char **write_denied_prefixes; 135 char **write_denied_prefixes;
136 int num_write_denied_prefixes; 136 int num_write_denied_prefixes;
137} sbcontext_t; 137} sbcontext_t;
138 138
139void __attribute__ ((constructor)) _init(void); 139void __attribute__ ((constructor)) libsb_init(void);
140void __attribute__ ((destructor)) _fini(void); 140void __attribute__ ((destructor)) libsb_fini(void);
141 141
142/* glibc modified realpath() functions */ 142/* glibc modified realpath() functions */
143static char *erealpath(const char *name, char *resolved); 143static char *erealpath(const char *name, char *resolved);
144/* glibc modified getcwd() functions */ 144/* glibc modified getcwd() functions */
145static char *egetcwd(char *, size_t); 145static char *egetcwd(char *, size_t);
273 273
274 return symaddr; 274 return symaddr;
275} 275}
276 276
277 277
278/* Apparently this attribute is needed, but testing still shows it
279 * needs to be named '_fini', so DO NOT CHANGE ! */
280void __attribute__ ((destructor)) _fini(void) 278void __attribute__ ((destructor)) libsb_fini(void)
281{ 279{
282 free(sandbox_pids_file); 280 free(sandbox_pids_file);
283} 281}
284 282
285/* Apparently this attribute is needed, but testing still shows it
286 * needs to be named '_init', so DO NOT CHANGE ! */
287void __attribute__ ((constructor)) _init(void) 283void __attribute__ ((constructor)) libsb_init(void)
288{ 284{
289 int old_errno = errno; 285 int old_errno = errno;
290 char *tmp_string = NULL; 286 char *tmp_string = NULL;
291 287
292#ifdef SB_MEM_DEBUG 288#ifdef SB_MEM_DEBUG

Legend:
Removed from v.36  
changed lines
  Added in v.37

  ViewVC Help
Powered by ViewVC 1.1.20