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

Diff of /trunk/src/libsandbox.c

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

Revision 196 Revision 197
501 int result = -1; \ 501 int result = -1; \
502\ 502\
503 if FUNCTION_SANDBOX_SAFE("mknod", pathname) { \ 503 if FUNCTION_SANDBOX_SAFE("mknod", pathname) { \
504 check_dlsym(_name); \ 504 check_dlsym(_name); \
505 result = true_ ## _name(ver, pathname, mode, dev); \ 505 result = true_ ## _name(ver, pathname, mode, dev); \
506 } \
507\
508 return result; \
509}
510
511#define mkfifo_decl(_name) \
512\
513extern int _name(const char *, mode_t); \
514static int (*true_ ## _name) (const char *, mode_t) = NULL; \
515\
516int _name(const char *pathname, mode_t mode) \
517{ \
518 int result = -1; \
519\
520 if FUNCTION_SANDBOX_SAFE("mkfifo", pathname) { \
521 check_dlsym(_name); \
522 result = true_ ## _name(pathname, mode); \
506 } \ 523 } \
507\ 524\
508 return result; \ 525 return result; \
509} 526}
510 527

Legend:
Removed from v.196  
changed lines
  Added in v.197

  ViewVC Help
Powered by ViewVC 1.1.20