aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Stop mentioning /usr/X11R6.Xin LI2007-07-241-1/+1
| | | | | | | Approved by: re (hrs) Notes: svn path=/head/; revision=171562
* Unbreak the dynamic linker by not creating a cache for rtld-elfMarcel Moolenaar2007-07-151-2/+6
| | | | | | | | | | | | itself. It needs mmap(2), which now needs getosreldate(3) and which in turn uses a global variable to cache the result. This cannot be done before linking is done. See also: ../sparc64/reloc.c:1.15 Approved by: re (kensmith) Notes: svn path=/head/; revision=171462
* Cache does not serve any purpose when rtld is relocating itself, doKen Smith2007-07-131-2/+6
| | | | | | | | | | not bother allocating one. Submitted by: kan Approved by: re (bmah) Notes: svn path=/head/; revision=171432
* Add r_debug_state to the list of symbols exported from rtld. GDB needs toAlexander Kabaev2007-07-111-0/+1
| | | | | | | | | be able to find it in order to trap shared library events from rtld. Approved by: re (rwatson) Notes: svn path=/head/; revision=171385
* Significantly reduce the memory leak as noted in BUGS section forSean Farley2007-07-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith) Notes: svn path=/head/; revision=171195
* Link pf 4.1 to the build:Max Laier2007-07-033-14/+11
| | | | | | | | | | | - move ftp-proxy from libexec to usr.sbin - add tftp-proxy - new altq mtag link Approved by: re (kensmith) Notes: svn path=/head/; revision=171173
* Note PAM support in atrun(8).Yaroslav Tykhiy2007-06-171-4/+17
| | | | | | | | Sort FILES section while there. Touch document date. Notes: svn path=/head/; revision=170881
* Add PAM support to atrun(8).Yaroslav Tykhiy2007-06-152-11/+36
| | | | Notes: svn path=/head/; revision=170773
* Actually use new features of perr() and perrx().Yaroslav Tykhiy2007-06-151-44/+33
| | | | Notes: svn path=/head/; revision=170769
* Catch up with perr() becoming variadic.Yaroslav Tykhiy2007-06-151-1/+1
| | | | Notes: svn path=/head/; revision=170768
* Make perr() variadic and add perrx() to use in cases whereYaroslav Tykhiy2007-06-151-4/+30
| | | | | | | | errno is irrelevant. Some code duplication can be reduced if perr() is variadic and perrx() is available. Notes: svn path=/head/; revision=170767
* Use a single setusercontext(3) instead of a bunch of basic syscalls.Yaroslav Tykhiy2007-06-142-0/+29
| | | | | | | | Besides aesthetic benefits, that makes at(1) jobs subject to such login.conf(5) settings as resource limits. Notes: svn path=/head/; revision=170741
* Spotted another copy of the loony error message.Yaroslav Tykhiy2007-06-141-1/+1
| | | | Notes: svn path=/head/; revision=170739
* Fix an error message that was beside the point.Yaroslav Tykhiy2007-06-141-1/+1
| | | | Notes: svn path=/head/; revision=170728
* Fix a typical off-by-one error that can result in an unterminated string:Yaroslav Tykhiy2007-06-141-1/+1
| | | | | | | | | | | strncpy(dst, src, sizeof(dst)); by substituting the safer strlcpy() for strncpy(). X-Security: none (the source string isn't user-supplied) Notes: svn path=/head/; revision=170726
* Correct a typo.Bjoern A. Zeeb2007-06-031-1/+1
| | | | | | | | PR: 106049 Submitted by: edwin (as part of a larger patch) Notes: svn path=/head/; revision=170240
* Update the man page to reflect that certain variables will be unset inChristian S.J. Peron2007-05-171-2/+4
| | | | | | | | the case that the program is set-user-ID or set-group-ID. Add missing annotations for LIBMAP and LIBMAP_DISABLE. Notes: svn path=/head/; revision=169663
* In the event a process is tainted (setuid/setgid binaries), un-set anyChristian S.J. Peron2007-05-171-10/+20
| | | | | | | | | | | | | | | | | | | | | | | potentially dangerous environment variables all together. It should be noted that the run-time linker will not honnor these environment variables if the process is tainted currently. However, once a child of the tainted process calls setuid(2), it's status as being tainted (as defined by issetugid(2)) will be removed. This could be problematic because subsequent activations of the run-time linker could honnor these dangerous variables. This is more of an anti foot-shot mechanism, there is nothing I am aware of in base that does this, however there may be third party utilities which do, and there is no real negative impact of clearing these environment variables. Discussed on: secteam Reviewed by: cperciva PR: kern/109836 MFC after: 2 weeks Notes: svn path=/head/; revision=169661
* Don't enable symbol versioning on ia64 for now. It causesMarcel Moolenaar2007-05-161-0/+2
| | | | | | | | | | symbol lookup failures that later result in null-pointer dereferences. This needs looking into, but since we're close to release it's possible that it's not resolved before that time. Notes: svn path=/head/; revision=169630
* We don't need --export-dynamic for ld-elf.so.1, because it's aMarcel Moolenaar2007-05-161-1/+0
| | | | | | | shared object. Notes: svn path=/head/; revision=169629
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.Daniel Eischen2007-05-131-1/+3
| | | | | | | | | | | | | Warning, after symbol versioning is enabled, going back is not easy (use WITHOUT_SYMVER at your own risk). Change the default thread library to libthr. There most likely still needs to be a version bump for at least the thread libraries. If necessary, this will happen later. Notes: svn path=/head/; revision=169524
* Remove %m formatter, it's ifdef 0'ed in the code from the very beginningPav Lucistnik2007-05-121-2/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=169501
* Expand documentation for LD_TRACE_LOADED_OBJECTS_FMT? variablesPav Lucistnik2007-05-121-0/+6
| | | | | | | | | PR: docs/66265 (inspired by) Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 1 week Notes: svn path=/head/; revision=169500
* Fix a TLS memory leak.David Xu2007-05-051-0/+1
| | | | | | | | PR: threads/112297 MFC: 1 week Notes: svn path=/head/; revision=169276
* Back out all POSIXified *env() changes.Andrey A. Chernov2007-05-011-4/+4
| | | | | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs. Notes: svn path=/head/; revision=169177
* Catch up with the private namespace change (s/FBSDprivate/FBSDprivate_1.0).Daniel Eischen2007-05-011-1/+1
| | | | Notes: svn path=/head/; revision=169171
* Prepare for upcoming POSIXed putenv() rewrite:Andrey A. Chernov2007-04-301-4/+4
| | | | | | | don't allow putenv() arg be on the stack, replace putenv() with setenv() Notes: svn path=/head/; revision=169121
* Retire rtld-specific Versions.def. Symbols exported by rtld are supposedAlexander Kabaev2007-04-292-9/+3
| | | | | | | | | | to override weak symbols exported by libc, so by definition these two are using the same symbol version names. Reflect the reality by referring to libc's Versions.def directly. Notes: svn path=/head/; revision=169095
* Give the private version namespace a number to match libc.Daniel Eischen2007-04-291-1/+1
| | | | Notes: svn path=/head/; revision=169093
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-292-2/+6
| | | | Notes: svn path=/head/; revision=169092
* Remove references to S/Key and list OPIE.Tom Rhodes2007-04-201-8/+7
| | | | Notes: svn path=/head/; revision=168899
* Reword the description of the UTF8 option (-8) so I can swearYaroslav Tykhiy2007-04-191-14/+13
| | | | | | | | | to myself that I understand it. Bump document date. Notes: svn path=/head/; revision=168871
* Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).Yaroslav Tykhiy2007-04-183-3/+45
| | | | | | | | | | | | | | | | | The support for RFC 2640 (UTF8) is optional and rudimentary. The server just advertises its capability to handle UTF-8 file names and relies on its own 8-bit cleanness, as well as on the backward compatibility of UTF-8 with ASCII. So uploaded files will have UTF-8 names, but the initial server contents should be prepared in UTF-8 by hand, no on-the-fly conversion of file names will be done. PR: bin/111714 Submitted by: Zhang Weiwu <see email in the PR> MFC after: 1 week Notes: svn path=/head/; revision=168849
* Bring rtld exports in line with corresponding symbols exported fromAlexander Kabaev2007-04-093-2/+8
| | | | | | | | | | libc. Disable SYMVER_DEFAULT n rtld until its implications are understood better. Notes: svn path=/head/; revision=168558
* Remove reference to FBSDprivate version. We do not use it in thisAlexander Kabaev2007-04-071-7/+0
| | | | | | | module yet. Notes: svn path=/head/; revision=168480
* Catch up on rtld's special status. Since it does not appear onAlexander Kabaev2007-04-071-0/+2
| | | | | | | | | | | main object list, its versioning information needs to be examined separately. This hopefully fixes problems that people running with SYMVER_ENABLED are experiencing. Notes: svn path=/head/; revision=168479
* Prepare rtld for symbol versioning. Disable it by default for now.Alexander Kabaev2007-04-034-22/+50
| | | | Notes: svn path=/head/; revision=168319
* Implement dl_iterate_phdr function.Alexander Kabaev2007-04-033-21/+80
| | | | | | | | Convert boolean flags in internal Obj_Entry structure into bitfields. Properly check for loaded segment alignment in map_object. Notes: svn path=/head/; revision=168312
* Use u_int for variable manipulated by atomic ops to match atomicAlexander Kabaev2007-04-031-1/+1
| | | | | | | ops function prototypes. Notes: svn path=/head/; revision=168311
* Let automatic TCP send buffer sizing do its job for ftpd(8): stopYaroslav Tykhiy2007-02-091-9/+1
| | | | | | | | setting the SO_SNDBUF socket option. Using a hard-coded value for it was a poor idea anyway in the face of diverse network conditions. Notes: svn path=/head/; revision=166598
* Document LD_UTRACE.John Baldwin2007-01-231-2/+7
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=166205
* Add various utrace's for use with ktrace to the ELF runtime linker. ToJohn Baldwin2007-01-091-0/+67
| | | | | | | | | | | activate the traces, set the LD_UTRACE (or LD_32_UTRACE) environment variable. This also includes code in kdump(8) to parse the traces. Reviewed by: kan, jdp MFC after: 2 weeks Notes: svn path=/head/; revision=165916
* Fix TLS on sparc64 for statically and dynamically linked binariesKip Macy2006-10-081-2/+3
| | | | | | | | Approved by: rwatson (mentor) Reviewed by: jmg and marcel Notes: svn path=/head/; revision=163118
* Clean up white spaces and fix style(9).Jung-uk Kim2006-09-191-34/+32
| | | | Notes: svn path=/head/; revision=162449
* Fix the buggy rev. 1.117. dagmembers are only initialized for dlopen'edKonstantin Belousov2006-09-191-5/+63
| | | | | | | | | | | | | | | | dso that are actually loading. If dso a.so depends on b.so, then dlsym with handle from dlopen("b.so") will fail unconditionally. Correct implementation shall use the Obj_Entry.needed list to walk dependencies DAG. Test provided by: jkim Tested (prev. version) by: jkim, Nicolas Blais <nb_root at videotron ca>, h.blanke at chello nl Pointy hat to: kib Approved by: kan (mentor) Notes: svn path=/head/; revision=162438
* Markup fixes.Ruslan Ermilov2006-09-172-3/+5
| | | | Notes: svn path=/head/; revision=162387
* When looking up the symbol by dlsym, look it not only in the objectKonstantin Belousov2006-09-081-13/+10
| | | | | | | | | | | | | given as dso handle, but also in the implicit dependencies of that dso. Also, const-ify the read-only parameter objlist of symlook_list. Reported by: "Simon 'corecode' Schubert" <corecode at fs ei tum de> Approved by: kan (mentor) X-MFC-After: 6.2 Notes: svn path=/head/; revision=162156
* Fix the variant I allocation for KSE: Allow a larger TCB and assumeMarcel Moolenaar2006-09-011-51/+37
| | | | | | | | that the documented TCB is at the tail of the extended TCB. In other words, the base of the TCB has a negative offset from the TLS. Notes: svn path=/head/; revision=161800
* o Fix the static TLS relocation. We were subtracting the size ofMarcel Moolenaar2006-09-011-2/+2
| | | | | | | | | the TCB. o Use NULL for null pointer argument. o Replace magic 8 with TLS_TCB_SIZE. Notes: svn path=/head/; revision=161799
* Use NULL for null-pointer argument.Marcel Moolenaar2006-09-011-1/+1
| | | | Notes: svn path=/head/; revision=161798