<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf/libmap.c, branch releng/10.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-08-28T18:11:05Z</updated>
<entry>
<title>MFC	r270256:</title>
<updated>2014-08-28T18:11:05Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-08-28T18:11:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=09ba6e48238c802eebff63b5e32809d7cb4d1c70'/>
<id>urn:sha1:09ba6e48238c802eebff63b5e32809d7cb4d1c70</id>
<content type='text'>
Always check the limits of array index variables before using them.

Obtained from:	DragonFlyBSD
</content>
</entry>
<entry>
<title>MFC r266411:</title>
<updated>2014-05-25T00:57:07Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2014-05-25T00:57:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=950c885239abf5a0e205a6ca6883250da9a583f3'/>
<id>urn:sha1:950c885239abf5a0e205a6ca6883250da9a583f3</id>
<content type='text'>
Fix LD_LIBMAP.
</content>
</entry>
<entry>
<title>Make the directory mapping functionality, which was previously only</title>
<updated>2013-09-21T21:03:52Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2013-09-21T21:03:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8182b3bee15162fd01b961d07515c2e766933822'/>
<id>urn:sha1:8182b3bee15162fd01b961d07515c2e766933822</id>
<content type='text'>
available in 32-bit compatibility mode, unconditional.

Overhaul the man page, which had evolved more by accretion than by design.

Approved by:	re (gjb)
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>rtld: Fix fd leak with parallel dlopen and fork/exec.</title>
<updated>2012-11-04T21:42:24Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2012-11-04T21:42:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e194282943c98622f529ff0e8c9a21f0e796367d'/>
<id>urn:sha1:e194282943c98622f529ff0e8c9a21f0e796367d</id>
<content type='text'>
Rtld did not set FD_CLOEXEC on its internal file descriptors; therefore,
such a file descriptor may be passed to a process created by another thread
running in parallel to dlopen() or fdlopen().

No other threads are expected to be running during parsing of the hints
and libmap files but the file descriptors need not be passed to child
processes so add O_CLOEXEC there as well.

This change will break fdlopen() (as used by OpenPAM) on kernels without
F_DUPFD_CLOEXEC (added in July). Note that running new userland on old
kernels is not supported.

Reviewed by:	kib
</content>
</entry>
<entry>
<title>open the resolved path</title>
<updated>2012-05-05T16:37:14Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2012-05-05T16:37:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5c98f30724c754a7cf5fa61ba804e05c63e12312'/>
<id>urn:sha1:5c98f30724c754a7cf5fa61ba804e05c63e12312</id>
<content type='text'>
fix debug message

Submitted by:	John Marino &lt;draco@marino.st&gt;
Approved by:	des (mentor)
</content>
</entry>
<entry>
<title>Add two special directives to libmap.conf:</title>
<updated>2012-04-30T21:26:35Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2012-04-30T21:26:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=faf66437f825629ed30ab5b93edeab52df135ef7'/>
<id>urn:sha1:faf66437f825629ed30ab5b93edeab52df135ef7</id>
<content type='text'>
include &lt;file&gt;:
  Parse the contents of file before continuing with the current file.
includedir &lt;dir&gt;:
  Parse the contents of every file in dir that ends in .conf before continuing
  with the current file.
Any file or directory encountered while processing include or includedir
directives will be parsed exactly once, even if it is encountered multiple
times.

Reviewed by:	kib, des
Approved by:	des (mentor)
MFC after:	1 month
</content>
</entry>
<entry>
<title>Rtld on diet 3.</title>
<updated>2012-03-14T15:39:59Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-03-14T15:39:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fea10fb9f8dc537044db93c109592422ec2a863'/>
<id>urn:sha1:6fea10fb9f8dc537044db93c109592422ec2a863</id>
<content type='text'>
Stop using strerror(3) in rtld, which brings in msgcat and stdio.
Directly access sys_errlist array of errno messages with private
rtld_strerror() function.

Now,
$ size /libexec/ld-elf.so.1
   text    data     bss     dec     hex filename
  96983    2480    8744  108207   1a6af /libexec/ld-elf.so.1

Reviewed by:	dim, kan
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Rtld on diet part 2:</title>
<updated>2012-03-12T12:16:08Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-03-12T12:16:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=68f1db20b31af4f4e539ebdeeca7a37264c7be76'/>
<id>urn:sha1:68f1db20b31af4f4e539ebdeeca7a37264c7be76</id>
<content type='text'>
Do not use stdio for libmap.conf read.  Directly map the file and
parse lines from the mappings.

Reviewed by:	kan
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Cosmetic nit:</title>
<updated>2012-03-06T09:34:30Z</updated>
<author>
<name>Sergey Kandaurov</name>
<email>pluknet@FreeBSD.org</email>
</author>
<published>2012-03-06T09:34:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=44976acae3059980972cc2e8c2c6d747469223bb'/>
<id>urn:sha1:44976acae3059980972cc2e8c2c6d747469223bb</id>
<content type='text'>
- rename isspace1() macro to the more appropriate rtld_isspace().

Discussed with:	kib
</content>
</entry>
<entry>
<title>The libmap.conf initialization is performed before TLS is functional.</title>
<updated>2012-03-05T20:43:06Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-03-05T20:43:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b36070f555e9a0e23acdd2e049eed461cf74d634'/>
<id>urn:sha1:b36070f555e9a0e23acdd2e049eed461cf74d634</id>
<content type='text'>
Since after r232498 the ctype macros require working access to
thread-local variables, rtld crashes when libmap.conf is present.

Use hand-made isspace1() macro which is enough to detect spaces in
libmap.conf.

Reported by:	alc, lme, many on current@
Tested by:	lme
Reviewed by:	dim, kan
MFC after:	1 week
</content>
</entry>
</feed>
