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

Diff of /trunk/libsandbox/libsandbox.h

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

Revision 397 Revision 398
7 * Licensed under the GPL-2 7 * Licensed under the GPL-2
8 */ 8 */
9 9
10#ifndef __LIBSANDBOX_H__ 10#ifndef __LIBSANDBOX_H__
11#define __LIBSANDBOX_H__ 11#define __LIBSANDBOX_H__
12
13/* glibc sometimes redefines this crap on us */
14#undef strdup
12 15
13/* Macros to check if a function should be executed */ 16/* Macros to check if a function should be executed */
14#define FUNCTION_SANDBOX_SAFE_AT(_dirfd, _func, _path) \ 17#define FUNCTION_SANDBOX_SAFE_AT(_dirfd, _func, _path) \
15 ((0 == is_sandbox_on()) || (1 == before_syscall(_dirfd, _func, _path))) 18 ((0 == is_sandbox_on()) || (1 == before_syscall(_dirfd, _func, _path)))
16#define FUNCTION_SANDBOX_SAFE(_func, _path) \ 19#define FUNCTION_SANDBOX_SAFE(_func, _path) \

Legend:
Removed from v.397  
changed lines
  Added in v.398

  ViewVC Help
Powered by ViewVC 1.1.20