aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-28 21:42:23 -0500
committerMike Frysinger <vapier@gentoo.org>2008-11-28 21:42:23 -0500
commitf7485cd5b9e2d6faf5278550e7ce7eb4757beb0b (patch)
tree8c04c43d494658da07cfba3010aee50b25ed2b1d
parentsandbox.bashrc: fix ccache default for non-root (diff)
downloadsandbox-f7485cd5b9e2d6faf5278550e7ce7eb4757beb0b.tar.gz
sandbox-f7485cd5b9e2d6faf5278550e7ce7eb4757beb0b.tar.bz2
sandbox-f7485cd5b9e2d6faf5278550e7ce7eb4757beb0b.zip
libsandbox: pass __xmknod through the wrap stagev1.3.1
Handle __xmknod properly in check_access(). URL: http://bugs.gentoo.org/248254 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Ryan Hill <dirtyepic@gentoo.org>
-rw-r--r--libsandbox/libsandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index db425f1..7a8f6a3 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -650,6 +650,7 @@ static int check_access(sbcontext_t *sbcontext, const char *func, const char *ab
(0 == strncmp(func, "creat64", 7)) ||
(0 == strncmp(func, "mkdir", 5)) ||
(0 == strncmp(func, "mknod", 5)) ||
+ (0 == strncmp(func, "__xmknod", 8)) ||
(0 == strncmp(func, "mkfifo", 6)) ||
(0 == strncmp(func, "link", 4)) ||
(0 == strncmp(func, "symlink", 7)) ||