aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-08 07:14:17 -0400
committerMike Frysinger <vapier@gentoo.org>2009-03-08 08:47:05 -0400
commit7b0b914b4ea0e594867bad91fe1aaffa0c21d87b (patch)
treea0cbb36e49c17f91017c75c1c9b2e0cc80a1f53e /localdecls.h
parentlibsandbox: push errno save/restore down in openat() (diff)
downloadsandbox-7b0b914b4ea0e594867bad91fe1aaffa0c21d87b.tar.gz
sandbox-7b0b914b4ea0e594867bad91fe1aaffa0c21d87b.tar.bz2
sandbox-7b0b914b4ea0e594867bad91fe1aaffa0c21d87b.zip
libsandbox: handle symlinks properly
Make sure we handle edge cases that involve symlinks and functions that operate on symlinks. This includes newer style *at functions that can go between operating on symlinks and operating on the linked files, and on symlinks to files that live in explicitly denied paths. URL: http://bugs.gentoo.org/254914 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Mike Auty <ikelos@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
index a1a517c..2567ccd 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -68,6 +68,7 @@ typedef __sighandler_t sighandler_t;
*/
#ifndef AT_FDCWD
# define AT_FDCWD -100
+# define AT_SYMLINK_NOFOLLOW 0
#endif
#if !HAVE_DLVSYM