aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-23 08:11:04 -0500
committerMike Frysinger <vapier@gentoo.org>2008-12-23 08:11:52 -0500
commit91381072e456175eca6da9b72b361cabd3c9f34a (patch)
treea7f27434b0640838f24fc07b56fcc65140ecc023 /libsandbox/libsandbox.c
parentlibsandbox: make sure SB_NR_* is always defined (diff)
downloadsandbox-1.3.2.tar.gz
sandbox-1.3.2.tar.bz2
sandbox-1.3.2.zip
libsandbox: handle unlinkat() like unlink() for symlinksv1.3.2
URL: http://bugs.gentoo.org/248254 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/libsandbox.c')
-rw-r--r--libsandbox/libsandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index 7e179b3..5a92b8e 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -696,6 +696,7 @@ static int check_access(sbcontext_t *sbcontext, int sb_nr, const char *func, con
* of the symlink's parent also have write access. */
struct stat st;
if ((sb_nr == SB_NR_UNLINK ||
+ sb_nr == SB_NR_UNLINKAT ||
sb_nr == SB_NR_LCHOWN ||
sb_nr == SB_NR_RENAME ||
sb_nr == SB_NR_SYMLINK) &&