diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-15 00:28:09 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-15 00:28:09 -0500 |
commit | 41621f114dcf879c45ae982c8c9796c4b050d4db (patch) | |
tree | 5c93506cd0920afbb866d9d9941e8ec35497039e /libsandbox/wrapper-funcs/__xmknodat.c | |
parent | libsandbox: simplify clean_env_entries a bit (diff) | |
download | sandbox-41621f114dcf879c45ae982c8c9796c4b050d4db.tar.gz sandbox-41621f114dcf879c45ae982c8c9796c4b050d4db.tar.bz2 sandbox-41621f114dcf879c45ae982c8c9796c4b050d4db.zip |
libsandbox: make sure all mknod symbols are wrapped
The mknodat() symbol on glibc is rewritten to __xmknodat(), so we need to
wrap that and check for all of them in the check_access() code.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs/__xmknodat.c')
-rw-r--r-- | libsandbox/wrapper-funcs/__xmknodat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libsandbox/wrapper-funcs/__xmknodat.c b/libsandbox/wrapper-funcs/__xmknodat.c new file mode 100644 index 0000000..97e4689 --- /dev/null +++ b/libsandbox/wrapper-funcs/__xmknodat.c @@ -0,0 +1,11 @@ +/* + * __xmknodat() wrapper. + * + * Copyright 1999-2008 Gentoo Foundation + * Licensed under the GPL-2 + */ + +#define WRAPPER_ARGS_PROTO int ver, int dirfd, const char *pathname, mode_t mode, dev_t *dev +#define WRAPPER_ARGS ver, dirfd, pathname, mode, dev +#define WRAPPER_SAFE() FUNCTION_SANDBOX_SAFE(pathname) +#include "__wrapper_simple.c" |