<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/patch.git/src/safe.h, branch testing</title>
<subtitle>git.savannah.gnu.org: git/patch.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/'/>
<entry>
<title>Add symlink-safe system call replacements</title>
<updated>2015-01-31T21:13:44+00:00</updated>
<author>
<name>Tim Waugh</name>
<email>twaugh@redhat.com</email>
</author>
<published>2015-01-28T17:10:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=025a54b789bd88ed15430f8633514e296826983e'/>
<id>025a54b789bd88ed15430f8633514e296826983e</id>
<content type='text'>
Add wrappers around system calls that traverse relative pathnames without
following symlinks. Written by Tim Waugh &lt;twaugh@redhat.com&gt; and Andreas
Gruenbacher &lt;agruenba@redhat.com&gt;.
* src/safe.h: Declare functions here.
* src/safe.c: Implement safe_* system call replacements that do not follow
symlinks along pathnames. Pathname components are resolved with openat().
Lookup results are cached to keep the overhead reasonably low.
* tests/deep-directories: New path traversal cache test.
* src/Makefile.am (patch_SOURCES): Add safe.[ch].
* tests/Makefile.am (TESTS): Add new test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add wrappers around system calls that traverse relative pathnames without
following symlinks. Written by Tim Waugh &lt;twaugh@redhat.com&gt; and Andreas
Gruenbacher &lt;agruenba@redhat.com&gt;.
* src/safe.h: Declare functions here.
* src/safe.c: Implement safe_* system call replacements that do not follow
symlinks along pathnames. Pathname components are resolved with openat().
Lookup results are cached to keep the overhead reasonably low.
* tests/deep-directories: New path traversal cache test.
* src/Makefile.am (patch_SOURCES): Add safe.[ch].
* tests/Makefile.am (TESTS): Add new test.
</pre>
</div>
</content>
</entry>
</feed>
