summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Update the man page to reflect that certain variables will be unset incsjp2007-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.
* In the event a process is tainted (setuid/setgid binaries), un-set anycsjp2007-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
* Don't enable symbol versioning on ia64 for now. It causesmarcel2007-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.
* We don't need --export-dynamic for ld-elf.so.1, because it's amarcel2007-05-161-1/+0
| | | | shared object.
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.deischen2007-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.
* Remove %m formatter, it's ifdef 0'ed in the code from the very beginningpav2007-05-121-2/+0
| | | | MFC after: 1 week
* Expand documentation for LD_TRACE_LOADED_OBJECTS_FMT? variablespav2007-05-121-0/+6
| | | | | | PR: docs/66265 (inspired by) Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 1 week
* Fix a TLS memory leak.davidxu2007-05-051-0/+1
| | | | | PR: threads/112297 MFC: 1 week
* Back out all POSIXified *env() changes.ache2007-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.
* Catch up with the private namespace change (s/FBSDprivate/FBSDprivate_1.0).deischen2007-05-011-1/+1
|
* Prepare for upcoming POSIXed putenv() rewrite:ache2007-04-301-4/+4
| | | | don't allow putenv() arg be on the stack, replace putenv() with setenv()
* Retire rtld-specific Versions.def. Symbols exported by rtld are supposedkan2007-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.
* Give the private version namespace a number to match libc.deischen2007-04-291-1/+1
|
* Use C comments since we now preprocess these files with CPP.deischen2007-04-292-2/+6
|
* Remove references to S/Key and list OPIE.trhodes2007-04-201-8/+7
|
* Reword the description of the UTF8 option (-8) so I can swearyar2007-04-191-14/+13
| | | | | | to myself that I understand it. Bump document date.
* Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).yar2007-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
* Bring rtld exports in line with corresponding symbols exported fromkan2007-04-093-2/+8
| | | | | | | libc. Disable SYMVER_DEFAULT n rtld until its implications are understood better.
* Remove reference to FBSDprivate version. We do not use it in thiskan2007-04-071-7/+0
| | | | module yet.
* Catch up on rtld's special status. Since it does not appear onkan2007-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.
* Prepare rtld for symbol versioning. Disable it by default for now.kan2007-04-034-22/+50
|
* Implement dl_iterate_phdr function.kan2007-04-033-21/+80
| | | | | Convert boolean flags in internal Obj_Entry structure into bitfields. Properly check for loaded segment alignment in map_object.
* Use u_int for variable manipulated by atomic ops to match atomickan2007-04-031-1/+1
| | | | ops function prototypes.
* Let automatic TCP send buffer sizing do its job for ftpd(8): stopyar2007-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.
* Document LD_UTRACE.jhb2007-01-231-2/+7
| | | | MFC after: 3 days
* Add various utrace's for use with ktrace to the ELF runtime linker. Tojhb2007-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
* Fix TLS on sparc64 for statically and dynamically linked binarieskmacy2006-10-081-2/+3
| | | | | Approved by: rwatson (mentor) Reviewed by: jmg and marcel
* Clean up white spaces and fix style(9).jkim2006-09-191-34/+32
|
* Fix the buggy rev. 1.117. dagmembers are only initialized for dlopen'edkib2006-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)
* Markup fixes.ru2006-09-172-3/+5
|
* When looking up the symbol by dlsym, look it not only in the objectkib2006-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
* Fix the variant I allocation for KSE: Allow a larger TCB and assumemarcel2006-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.
* o Fix the static TLS relocation. We were subtracting the size ofmarcel2006-09-011-2/+2
| | | | | | the TCB. o Use NULL for null pointer argument. o Replace magic 8 with TLS_TCB_SIZE.
* Use NULL for null-pointer argument.marcel2006-09-011-1/+1
|
* Replace magic 16 with TLS_TCB_SIZE.marcel2006-08-312-2/+4
|
* Not needed any more, vendor sources have PAM support.obrien2006-08-311-153/+0
|
* Catch up with the import of ftpd.c rev 1.1.1.6.obrien2006-08-311-0/+11
|
* FreeBSD doesn't have the simple pidfile(3), so craft it using FreeBSD'sobrien2006-08-311-0/+30
| | | | primitives.
* Prevent dead code elimination for the TP assignmient by using inlinemarcel2006-08-301-2/+3
| | | | assembly.
* 1. Attempt to take one bullet out of the foot-shooting gun by silentlydougb2006-08-281-10/+10
| | | | | | | | | | | | | | ignoring errors when sourcing rc.conf* files. The most common error occurs when users put a command of some sort into those files. (ifconfig is a popular choice) 2. Make the file rotation logic simpler by starting one down from the "top" of the list, rather than at the top. 3. Try to make file rotation more secure by calling unlink(1) on all new file names before rotating an old file to the new name, rather than merely calling 'rm -f' on any files that exceed the number of files to save.
* Remove alpha left-overs.ru2006-08-225-959/+0
|
* - Improve and extend mark-up.yar2006-08-071-20/+32
| | | | | | | | | | - Don't use full path in .Nm (we just don't do that). - Correct some frivolous and poorly rendering language, such as using possessive case for .Nm or .Fl . - Use the same capitalization for "user ID" as in setuid(2) and getuid(2). - Bring SEE ALSO in accord with the text. MFC after: 5 days
* In symlook_obj(): fix _rtld_error output.delphij2006-08-041-2/+2
| | | | MFC After: 2 weeks
* inetd and telnetd are not included in the standard releaseyar2006-07-311-0/+3
| | | | | | | crunched floppies, but they can be included as options in src/release/picobsd (omitted by default though.) Therefore preserve the RELEASE_CRUNCH knob in their Makefiles, but tell its real purpose in a comment.
* Stop enforcing dependencies between MK_* options at Makefile level.yar2006-07-311-1/+2
| | | | All the dependencies are satisfied now in <bsd.own.mk>.
* telnetd(8) doesn't really go to the crunched floppies,yar2006-07-311-2/+0
| | | | | | so its Makefile needn't test for RELEASE_CRUNCH. Suggested by: ru
* The lukemftpd code depends on INET6. Therefore MK_INET6_SUPPORTyar2006-07-281-0/+5
| | | | should be respected.
* Respect MK_INET6_SUPPORT.yar2006-07-271-4/+8
| | | | Apply style.Makefile(5).
* Cook CFLAGS by the modern recipe:yar2006-07-271-1/+7
| | | | | - use WARNS; - respect MK_INET6_SUPPORT.
* Fix compilation of ftpcmd.y without -DINET6.yar2006-06-052-1/+8
| | | | | | | Respect MK_INET6_SUPPORT in Makefile. Requested by: Attila Nagy <bra at fsn dot hu> MFC after: 1 week
OpenPOWER on IntegriCloud