Commit Graph
1470 Commits
Author SHA1 Message Date
Colin Percival 703d3749c3 Prevent cross-site forgery attacks on ftpd(8) due to splitting
long commands into multiple requests. [08:12]

Avoid calling uninitialized function pointers in protocol switch
code. [08:13]

Merry Christmas everybody...

Approved by:	so (cperciva)
Approved by:	re (kensmith)
Security:	FreeBSD-SA-08:12.ftpd, FreeBSD-SA-08:13.protosw
2008-12-23 01:23:09 +00:00
John Baldwin 36b8942592 MFC: Use sysctl to fetch stats from the kernel instead of reading variables
directly via libkvm.
2008-06-27 02:20:37 +00:00
Marius Strobl 50cc4a77d5 MFC: libexec/rtld-elf/sparc64/reloc.c 1.16,
sys/sparc64/sparc64/elf_machdep.c 1.24

- Fix the handling of R_SPARC_OLO10, which is a bit of a special case
  in the way we implement handling of relocations.
  While at it replace some more ELF_R_TYPE which should have been
  ELF64_R_TYPE_ID but didn't cause problems so far.
- Sync a sanity check between kernel and rtld(1) and change it to be
  maintenance free regarding the type used for the lookup table.
- Sprinkle const on lookup tables.
- Use __FBSDID.
2007-12-04 20:00:48 +00:00
Christian S.J. Peron 4b3e87d334 MFC rtld.c revision 1.124
Unset potentially harmful environment variables.

Discussed on:	seacteam
PR:		kern/109836
2007-07-14 19:04:00 +00:00
Yaroslav Tykhiy a6f2929e7e MFC revs. 1.19-1.22: Assorted small fixes. 2007-07-12 13:11:00 +00:00
Pav Lucistnik a1a15f4d5a MFC 1.42:
Markup fixes.
MFC 1.44:
  Expand documentation for LD_TRACE_LOADED_OBJECTS_FMT? variables
MFC 1.45:
  Remove %m formatter, it's ifdef 0'ed in the code from the very beginning
2007-05-19 11:20:31 +00:00
David Xu c48692f588 MFC Revision 1.123:
> Fix a TLS memory leak.
2007-05-15 08:10:15 +00:00
Yaroslav Tykhiy 264a336979 MFC rev. 1.74: Remove references to S/Key and list OPIE. 2007-05-01 11:46:29 +00:00
Yaroslav Tykhiy ebd891089d MFC:
ftpd.c		1.212
	ftpcmd.y	1.66
	ftpd.8		1.72-1.73

Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).

PR:	bin/111714
2007-05-01 11:40:44 +00:00
John Baldwin 83b31ef0da MFC: Document LD_UTRACE. 2007-01-26 16:33:03 +00:00
John Baldwin b664b8e9a3 MFC: Add various utrace's to the ELF runtime linker/loader. 2007-01-23 22:31:45 +00:00
Konstantin Belousov a74283464d MFC rev. 1.117, 1.118 and 1.119.
- When looking up the symbol by dlsym, look it not only in the object
  given as dso handle, but also in the implicit dependencies of that dso.
- Const-ify the read-only parameter objlist of symlook_list.
- Clean up white spaces and fix style(9).

Patch backported by:	jkim
2007-01-16 07:51:04 +00:00
David E. O'Brien 8fe69c690a Fix ARM build:
1. NO_FORTH needs to be defined
2. bootpd.c rev 1.24: make tv_sec a time_t
3. authpf.c rev 1.7: handle timeval.tv_sec change from long to time_t

Approved by:	re(BMAH)
2006-11-17 00:32:53 +00:00
David E. O'Brien f8947bdc47 MFC: build bits matching LukeM's ftpd 31-Aug-2006 update. 2006-09-07 20:02:23 +00:00
Marcel Moolenaar f6707592ac Define TLS_TCB_SIZE, needed by allocate_tls() and free_tls(). 2006-09-03 05:15:00 +00:00
Marcel Moolenaar 641ea42296 MFC TLS variant I fixes. 2006-09-02 20:38:13 +00:00
cvs2svn 7cb45b973a This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-09-02 09:56:29 +00:00
Marcel Moolenaar 8d2b66f7ea MFC TLS fixes. 2006-09-02 00:59:35 +00:00
Doug Barton 4e753e1468 MFC revision 1.4 which silently ignores errors while sourcing rc.conf*
files, simplifies the file rotation logic, and makes it slightly
more secure.
2006-09-01 23:58:46 +00:00
Yaroslav Tykhiy 80951a62bd MFC r1.19:
- Improve and extend mark-up.
  - 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.
2006-08-12 18:31:56 +00:00
Yaroslav Tykhiy efb8a018ad MFC: Make it actually possible to disable INET6 support in ftpd(8). 2006-06-14 07:42:45 +00:00
Pav Lucistnik 1189467c91 MFC 1.41:
- Document LD_32_* environment variables
  - Mention 32-bit files in FILES section
2006-05-14 19:25:36 +00:00
Hajimu UMEMOTO 7ff9c8d954 MFC 1.210:
- Reduce needless DNS query by lookup only appropriate address
  family.
- Specify appropriate hints to getaddrinfo(3).
- Obtain address family from peername in inetd mode.

Approved by:	re (mux)
2006-03-09 09:15:34 +00:00
Yaroslav Tykhiy 95eb73539b MFC recent ftpd fixes related to handling the pidfile and unneeded
open sockets when in stand-alone daemon mode:

ftpd.c    1.207-1.209
ftpd.8    1.70-1.71
2006-01-29 13:21:05 +00:00
Marcel Moolenaar 66f0e9fc6d MFC ia64 psABI conformance changes:
s/R_IA64_/R_IA_64_/
	s/DT_IA64_/DT_IA_64_/

	libexec/rtld-elf/ia64/reloc.c:1.17,1.18
	libexec/rtld-elf/ia64/rtld_start.S:1.4
	sys/boot/ia64/efi/start.S:1.9,1.10
	sys/ia64/ia64/elf_machdep.c:1.23
	sys/ia64/ia64/genassym.c:1.42
	sys/ia64/ia64/locore.S:1.39
	sys/ia64/include/elf.h:1.12,1.13,1.14
	usr.bin/elfdump/elfdump.c:1.14
2006-01-28 18:40:55 +00:00
Marcel Moolenaar 46e815f309 MFC standardization of the ELF types and update of the ELF constants:
lib/libc/gen/nlist.c:1.19
	libexec/rtld-elf/rtld.c:1.108
	libexec/rtld-elf/rtld.h:1.36
	libexec/rtld-elf/alpha/reloc.c:1.21
	libexec/rtld-elf/amd64/reloc.c:1.16
	libexec/rtld-elf/ia64/reloc.c:1.16
	libexec/rtld-elf/sparc64/reloc.c:1.11
	share/man/man5/elf.5:1.32-1.33
	sys/alpha/alpha/elf_machdep.c:1.20
	sys/amd64/amd64/elf_machdep.c:1.24
	sys/boot/common/bootstrap.h:1.42
	sys/boot/common/load_elf.c:1.33
	sys/boot/common/load_elf_obj.c:1.2
	sys/boot/common/reloc_elf.c:1.2
	sys/ia64/ia64/elf_machdep.c:1.21
	sys/kern/link_elf.c:1.87
	sys/kern/link_elf_obj.c:1.90
	sys/sparc64/sparc64/elf_machdep.c:1.20
	sys/sys/elf32.h:1.9-1.10
	sys/sys/elf64.h:1.11-1.13
	sys/sys/elf_common.h:1.16
	sys/sys/elf_generic.h:1.7
	sys/sys/imgact_elf.h:1.28
	sys/sys/linker.h:1.40
	usr.bin/elf2aout/elf2aout.c:1.10
	usr.bin/elfdump/elfdump.c:1.13
	usr.sbin/crunch/crunchide/exec_elf32.c:1.15
	usr.sbin/kldxref/ef.c:1.9
	usr.sbin/kldxref/ef.h:1.6
	usr.sbin/kldxref/ef_amd64.c:1.3
	usr.sbin/kldxref/ef_i386.c:1.3
	usr.sbin/kldxref/ef_obj.c:1.4
	usr.sbin/kldxref/ef_powerpc.c:1.3
	usr.sbin/kldxref/ef_sparc64.c:1.4-1.5
2005-12-30 22:13:59 +00:00
John Baldwin dddf918c35 MFC: Include the size of the DL_serpath structures in the total size used
in the RTLD_DI_SERINFOSIZE and RTLD_DI_SERINFO requests.
2005-11-28 19:19:39 +00:00
Ruslan Ermilov 44fa4da7cf MFC: 1.5: Style. 2005-11-16 08:01:07 +00:00
Peter Wemm 3b4399f6a7 Clean out the leftovers from the i386_set_gsbase() TLS conversion.
Like on libthr, there is an i386_set_gsbase() stub implementation here
to avoid libc.so.5 issues.  This should likely be a weak symbol and I
expect this will be fixed soon.

Approved by:	re
2005-06-29 23:15:36 +00:00
Ruslan Ermilov cc4fdb1de9 Removed trailing whitespace.
Approved by:	re (blanket)
2005-06-14 08:41:11 +00:00
Ruslan Ermilov bfeb5e379c Bump document date on behalf of a recent change.
Approved by:	re (blanket)
2005-06-14 08:40:10 +00:00
Jacques Vidrine a8e0b2e8ab Remove rexecd(8), a server that implements a particularly insecure
method of executing commands remotely.  There are no rexec clients in
the FreeBSD tree, and the client function rexec(3) is present only in
libcompat.  It has been documented as "obsolete" since 4.3BSD, and its
use has been discouraged in the man page for over 10 years.
2005-06-10 20:52:36 +00:00
Dag-Erling Smørgrav ee66677a7a Remove kludges intended to support src trees with partial obj trees.
Discussed with:	ru
2005-06-10 06:12:53 +00:00
Marius Strobl 8698905073 MFNetBSD: src/libexec/ld.elf_so/arch/sparc64/mdreloc.c 1.26 (partial)
Fix an obvious bug in the 64-bit PLT fixup: the SLLX was by 12 bits, when
it should be 32.

MFC after:	1 month
2005-06-04 20:49:15 +00:00
Marcel Moolenaar d4337d869f Fix the load64 and store64 macros, created to handle 8-byte unaligned
loads and stores (resp.) The ldq_u and stq_u instruction mask off the
lower 3 bits of the final address before loading from or storing to
the address, so as to avoid unaligned loads and stores. They do not
themselves allow loads from or stores to unaligned addresses. Replace
the macro definitions by a packed struct dereference.

Submitted by: Richard Henderson (rth at twiddle dot net)
2005-06-02 05:34:08 +00:00
Maxim Konovalov 208ac62dc6 o Missed colon in getopt(3) argument makes tftpd(8) crash. Fix that.
PR:		misc/81732
Submitted by:	Denis Grudkin
MFC after:	2 weeks
2005-05-31 17:22:53 +00:00
Eivind Eklund d609e438da Fixup of last commit: Use the name X instead of XFree86 for the server binary,
thus being compatible with both XFree86 and X.org.

Noticed by: danfe
2005-05-27 06:07:21 +00:00
Eivind Eklund ce81b111e6 Make the example for using xterm as a login manager to match the X of the
noughties, not eighties.
2005-05-27 00:39:11 +00:00
Doug Rabson 9310a53def Align the stack to a 16 byte boundary before calling _rtld so that we can
safely initialise shared libraries that use SSE in their init sections.

MFC After: 1 week
2005-05-19 07:32:42 +00:00
Giorgos Keramidas 8d44de8fdf Switch to WARNS=2 instead of tinkering directly with CFLAGS (level 2 was
picked because higher warn levels are broken for ftp-proxy at the moment).

Approved by:	mlaier
2005-05-18 12:19:50 +00:00
David E. O'Brien e2c421f7f2 Enable lukemftpd for 6.0-RELEASE. 2005-05-16 17:12:23 +00:00
Hajimu UMEMOTO 4f10131848 NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
Juli Mallett ed3836bb08 Spell SHUT_RDWR as SHUT_RDWR not 2 as the how argument to shutdown(2). 2005-05-11 02:43:04 +00:00
Juli Mallett 5aae7838e7 Spell SHUT_RDWR as SHUT_RDWR not 1+1 as the how argument to shutdown(2). 2005-05-11 02:41:39 +00:00
Xin LI b49407ee43 Prevent usage of nested externs. 2005-05-06 15:28:54 +00:00
David Xu 9b0c632a4c Fix compilation problem. 2005-04-27 13:17:23 +00:00
Peter Wemm 8d598c0d01 Stop calling _amd64_set_gsbase() for COMPAT_32BIT. The amd64 kernel
implements i386_set_gsbase(), so there is no need for the variation.
2005-04-26 20:38:44 +00:00
David Schultz 8318eaae8b s/int/size_t/ as appropriate.
Noticed by:	bde
2005-04-17 01:06:37 +00:00
Peter Wemm 8a477e0a7a Attempt to use i386_set_gsbase(), and gracefully fall back to LDT methods
if the direct access methods are not implemented.
2005-04-14 00:04:50 +00:00
Doug Barton 2005d17979 The script mistakenly ignores the entropy_save_sz variable from
rc.conf[.local]. Fix this, and leave the default as 2048.

Update the copyright year to include the present.

Update the assignment of the copyright to be me personally,
instead of "The FreeBSD Project" which is not a legal entity,
and therefore not a proper assignee. My intention remains the
same however, that this code continue to be BSD licensed, and
freely available to anyone that wants it under those terms.

PR:		conf/75722
Submitted by:	Nicolas Rachinsky <[email protected]>
2005-04-11 02:07:33 +00:00