Commit Graph

559 Commits

Author SHA1 Message Date
cjs 77629eb339 PR 3667 from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>.
Fix section number for spray(8).
1997-05-25 03:55:58 +00:00
cjs 93b985ed90 Allow setting the directory to which anonymous users chdir from
the command line. Document -u option. A couple of minor cleanups.
1997-05-23 22:09:48 +00:00
pk 37d70219e5 * NULL => 0 (Arne Juul; PR#3629)
* Nuke spacoids.
1997-05-17 19:35:14 +00:00
pk 58efb9d20c NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:24:44 +00:00
pk ff90cf758b Keep track of `dlsym()' symbol lookup scope differently. There's (currently)
only one special case: a NULL argument to dlopen(); return a special
token for that case.
1997-05-03 08:00:02 +00:00
tls 037708cbd4 Sync to 4.4BSD-Lite2 1997-04-29 21:19:05 +00:00
tls 80eef670d5 fix a couple of unlikely buffer overflows. 1997-04-29 21:01:54 +00:00
tls 83c7e41542 Sync to 4.4BSD-Lite2 1997-04-29 20:39:10 +00:00
tls eec1ea6c3f Import from 4.4BSD-Lite2 1997-04-29 20:07:31 +00:00
cjs 6ed41b9085 /etc/ftpusers now matches globs against the username. mycroft suggested this. 1997-04-29 04:00:39 +00:00
lukem 66783f1f43 * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
1997-04-27 03:21:38 +00:00
mrg 8a6057d663 get rid of supplementary groups. 1997-04-22 10:33:07 +00:00
mrg cae2d6411c KNF. RCSids. be safe with buffers. 1997-04-21 11:29:26 +00:00
thorpej 85ea5d090f Don't compile this with -O on the PowerPC - cc1 cores. 1997-04-19 05:13:26 +00:00
thorpej cb232ac37b STRIP -> STRIPFLAG (sign, I guess I forgot to check this one in last night) 1997-04-17 22:17:27 +00:00
christos d3d1227320 Ld directory reorganization:
- separate out the common files used by rtld ldd ld
	- move machine dependent files into arch
	- move ld in its own directory
	- factor out .PATH and CFLAGS common to all Makefiles
1997-04-16 16:49:28 +00:00
cgd 7631ac43fd make sure that ld.elf_so's path is in the data segment 1997-04-15 07:15:46 +00:00
cgd aee2cfeaa1 pull in arch-specific Makefile.inc only if it exists 1997-04-10 17:39:20 +00:00
mikel f78e29b2a9 descend unconditionally for clean and cleandir targets 1997-04-09 06:23:40 +00:00
cjs a5d6da371a Change the syntax of /etc/ftpusers to have both allow and deny
information in the same file by following the username with `allow'
or `deny'. Also, the user `*' can be used to set the default for
users not listed in the file. This is entirely backward compatable
with old /etc/ftpusers files.
  Also, do the /etc/ftpusers and the valid login shell checks after
the password is verified, rather than before, so as not to give away
whether or not a particular user ID is present on the system.
1997-04-06 07:53:10 +00:00
cjs ff88177058 Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
1997-03-30 22:53:36 +00:00
cjs 76d4734615 4.4lite2 update. (The one minor bugfix between 4.4lite and 4.4lite2
was already in our sources, thus just the sccsid line is changed.)
1997-03-28 21:55:41 +00:00
christos d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
christos 0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
cgd fbf6ff628e put in two identifying notes, which new binutils snapshots will turn
into PT_NOTE sections so they can be examined by execve() to figure
out whether this is a native binary, what emulation it's to be run under,
etc.
1997-03-21 05:39:42 +00:00
perry ab8dd6a331 fix typos per pr-3349 submitted by SAITOH Masanobu 1997-03-18 14:25:29 +00:00
perry a73d94202d add rmail 1997-03-13 03:00:41 +00:00
perry e44e016feb add SYMLINKS to keep an symlink from /bin for back uucp compatibility 1997-03-13 02:51:29 +00:00
perry 94a8f86c1d Remove BUGS -- rmail is now not in /bin any more 1997-03-13 02:50:18 +00:00
mouse 80c0d60f84 alternate -> alternative, per PR 2643 1997-03-08 13:47:08 +00:00
cgd 3192bd314f turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks 1997-02-23 20:42:24 +00:00
thorpej b817db1eaf Fix reporting of disk statistics that's been broken since new disk
framework went in.  From Jarle Greipsland <jarle@runit.sintef.no>, PR #3200.
1997-02-22 01:41:34 +00:00
cgd 1948031343 use 'normal' ELF library lookup rules 1997-02-17 19:32:05 +00:00
cgd e513f97a8b don't include members of Struct_Obj_Entry conditionally. 1997-02-14 22:30:25 +00:00
cgd f87e04ac68 that which thou openest, thou shalt close. 1997-02-03 19:45:02 +00:00
explorer c80b5ae409 Doh! MAXHOSTNAMELEN, not MAXHOSTNAME 1997-01-29 10:30:14 +00:00
explorer 143a02016e Allow local hostname to be longer than 32 characters, and make certain it will
fit in the buffer space provided.  Also, ensure null termination.
1997-01-29 03:21:01 +00:00
mrg 3771fb912e set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop. 1997-01-23 05:57:55 +00:00
thorpej 9fef925ff0 RCS ID police. 1997-01-20 21:01:28 +00:00
cjs 2d1967471a PR 3089: fingerd.8 could be misleading.
Patch from Klaus Klein <kleink@layla.inka.de>, with a few minor mods by cjs.
1997-01-08 00:12:44 +00:00
scottr 372fe2ff92 Catch up with const changes to dlopen() and dlsym() prototypes in
<dlfcn.h>.  Tested on i386 and hp300 for crt0.o and ld.so, verified
other references by inspection.
1997-01-03 22:37:58 +00:00
pk db6c2ee527 <link.h> has moved in with the run-time linker source. 1996-12-23 22:13:03 +00:00
pk 49dc4d2fe7 Deal with weak symbols when looking up in shared libraries. 1996-12-21 21:53:16 +00:00
cgd 0b2b5475a4 nclude dlfcn.h, and pull RLTD_LAZY in from there. Assume that RTLD_NOW is
RLTD_LAZY + 1 (for now), if it's not defined.  RTLD_NOW should be defined
in dlfcn.h, since some code (e.g. X11) wants it and assumes that it has
the value currently used by our RTLD_LAZY.
1996-12-18 22:27:29 +00:00
cgd 7492fca28d telnetd is usually spelled with two "t"s. 1996-12-18 22:11:09 +00:00
thorpej c2958a4c33 RCS id police. 1996-12-18 05:39:57 +00:00
thorpej 25cc72bed2 Perform the same "don't build telnet stuff if the domestic counterparts
are present in the source tree" kludge that telnet(1) and libtelnet do.
XXX !!
1996-12-18 05:39:13 +00:00
cgd df19e8aaf2 remove /usr/localelf/lib from default library path 1996-12-17 05:04:10 +00:00
jonathan 20d6ace077 Mipsel changes to ELF ldd/ld.so:
* don't abort() on NetBSD/pmax 1.1 elf binaries;
  * Assume 32-bit elf unless compiling for Alpha;
  * note bugs in ldd's README.
1996-12-17 03:42:44 +00:00
cgd 41fe218b25 First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.).  This runs, but it's
in serious need of cleaning and/or a fair bit of reworking.  See the README
file for more information, and a list of things to do.
1996-12-16 20:37:55 +00:00
cgd 5a09b2d886 on the alpha, if ELF_TOOLCHAIN, add ld.elf_so to the subdirs list 1996-12-16 20:01:34 +00:00
thorpej d303db9334 Fix newline/carriage return handling during login.
From D'Arcy J.M. Cain <darcy@druid.com>, PR #2969.
1996-12-01 00:44:48 +00:00
gwr d2ae1a2c2f After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root") 1996-11-14 19:25:50 +00:00
lukem 9e4b2c6012 - implement -a (verfiy all hostnames) with code taken from rshd(8).
closes [misc/543] and [bin/1295]
- syslog() failures of iruserok(), which should help debugging why
  a .rhosts authentication failed.
- log a successful iruserok() if -L given. idea from rshd(8).
- allow root .rhosts to authenticate, the same way that rshd(8) does.
  the prior behaviour meant that 'rsh foo csh -i' could get a shell
  without a password, but 'rlogin foo' couldn't; very inconsistant.
  closes [bin/1078] and [bin/1239]
1996-11-08 07:47:44 +00:00
ws 79b6fe9805 Add machine dependent code for NetBSD/powerpc 1996-11-03 18:02:42 +00:00
thorpej 7f9ea0f2ed Use ${INSTALL}. 1996-10-18 05:45:01 +00:00
pk c51687391d Actually set the RTLD_DL flag in dlopen'ed shared objects, per PR#2791. 1996-10-06 19:03:32 +00:00
cgd d09d0bdcc7 disable use of dk_xfer since it's no longer in the kernel. eventually,
this should be updated to use the new disk statistics structures, but it
would be good if there were an efficient way to get them from the kernel
before that's done.  Also, while here, terminate nlist struct array with
an entry with a NULL name, not the name "".
1996-10-01 04:01:52 +00:00
thorpej 3d93807910 Don't truncate long host names.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
1996-09-27 02:30:05 +00:00
thorpej 4d99eaeb74 Don't truncate long hostnames.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
1996-09-27 02:15:35 +00:00
thorpej 7d468e4a0c Iff __m68k__, use a `slight hack' to determine the magic of the executable
we're doing a dynamic link for, and change the page size used for offset
and size calculations if necessary.  Allows the same ld.so to be used with
mixed m68k4k and m68k8k executables and libraries.

Thanks a million to Gordon Ross for the help in making this work!
1996-09-10 22:17:51 +00:00
explorer ec9e28aab1 Block ENV and BASH_ENV from client. From David Holland <dholland@hcs.harvard.edu> 1996-09-07 21:45:52 +00:00
thorpej 176865a07b RCS id police. 1996-08-30 20:15:06 +00:00
thorpej 52110e02f0 RCS id police. 1996-08-30 20:03:54 +00:00
thorpej 78e6c4ebc5 RCS id police. 1996-08-30 17:41:29 +00:00
mark 48d30b1294 Fixed NetBSD tag. 1996-08-21 18:43:29 +00:00
explorer 036dc5d351 fix extra Ta strings in man page. closes pr bin/2685 1996-08-11 04:24:57 +00:00
explorer e670f342d9 Replace our fingerd with one from OpenBSD, which fixes some security holes
and adds new features.
1996-08-10 22:10:17 +00:00
thorpej 3ff0b1a74c RCS id police. 1996-07-31 20:33:02 +00:00
phil cc13fe98cb Fix for dynamically linked functions returning structs. PR#2586/Pfaller 1996-07-31 06:22:41 +00:00
rat c8b88b5da7 Use snprintf(3) when printing into arrays allocated on the stack.
Patch submitted by David Holland <dholland@hcs.HARVARD.EDU>
1996-07-17 18:46:58 +00:00
thorpej 648aed921f RCS id police. 1996-07-03 03:28:09 +00:00
pk 721a11bff8 Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524). 1996-06-08 22:22:26 +00:00
mrg d0e431b53a log the IP address if the hostname is > UT_HOSTSIZE, as per telnet. pr#1946 1996-05-21 12:22:31 +00:00
mrg 2a6bfcfdcf call setlogin. from pr#1292 (James Jegers <jimj@miller.cs.uwm.edu>) 1996-05-21 11:06:49 +00:00
mark 060e1bc8f1 Initial commit of arm32 machine dependant code for ld.
Currently only supports static linking.
1996-05-17 21:51:07 +00:00
jtc 01120f4477 Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:46:50 +00:00
christos c522811711 Explain why identd is using LOG_DAEMON to log messages instead of LOG_AUTH. 1996-05-13 16:50:43 +00:00
jtc 93153c7796 Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.
1996-04-08 19:03:11 +00:00
tls 9f01fb5000 apply Thorsten's patch to add gettytab support to telnetd. 1996-03-20 04:25:53 +00:00
ragge 5005458ad0 Removed a couple of "ifdef vax" that caused rstatd not to work. 1996-03-10 15:24:20 +00:00
thorpej 14c6919f1d RCS id cosmetics. 1996-02-28 20:38:08 +00:00
thorpej 7c0f11b167 Move the RCS id to the proper place in the file. 1996-02-28 20:30:33 +00:00
jtk 47dc9102de restore lost local change (be careful with 'long' vs. 'int'
distinctions)
1996-02-24 19:13:37 +00:00
jtk aefee90c37 RCS Id Police 1996-02-24 01:34:44 +00:00
jtk 42e1b6b73d update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
1996-02-24 01:22:12 +00:00
pk 05105a9150 Define RELOC_INIT_SEGMENT_RELOC for the ns32k (Matthias Pfaller; PR#2103). 1996-02-22 00:19:57 +00:00
cgd 02172229ba add -Dunix to CFLAGS 1996-02-16 02:07:41 +00:00
mycroft c16462643c Make sure that the user name cannot ever be interpreted as an option to
login(8).  Note: This does *not* fix any security holes.
1996-02-08 06:19:14 +00:00
mycroft 90f0c26840 Make sure that the user name cannot ever be interpreted as an option to
login(8).  Note: This does *not* fix any security holes.
1996-02-08 06:05:31 +00:00
jtc e25f83b8be Fixed to use ffs instead of ufs; See PR #1984 1996-02-01 02:50:52 +00:00
thorpej 08f474ecc4 Correct the instructions regarding the password database in
~ftp/etc, from Rob Windsor <windsor@ksu.ksu.edu> in PR #544.
1996-01-14 20:55:23 +00:00
pk 55d51fbb95 Relax checking of minor version number in `findhint()'. Also use the
directories from the hints (v.2) file for directory traversing.
This should take care of PR#1146.
1996-01-14 00:35:17 +00:00
pk ccc1c895ef Deal with v.2 hint files (hint srch dirs not yet used). 1996-01-09 00:02:28 +00:00
pk d98240030c Define LD_HINTS_VERSION_2:
- no longer hash on minor version number in hints file.
	- add list of ldconfig(8) search directories.
1996-01-09 00:00:11 +00:00
tls 0f47839ca2 fix small documentation bug -- we have no bftp(1). 1996-01-05 04:10:10 +00:00
jtc 0250d4039d Fix userid format to conform to RFC1413. Fix from der Mouse in PR1848. 1996-01-02 22:01:55 +00:00
thorpej 2e1dc487c5 Add -fno-function-cse to PICFLAGS. Without it, Very Bad Things happen
when ld.so is compiled with gcc 2.7.2 on the m68k.  From
Niklas Hallqvist <niklas@appli.se> in PR #1557.  (Thanks, Nik, for reminding
me about this PR...)
1996-01-02 08:54:28 +00:00
pk 4162cf6459 Simplify update of r_addend field in relocation record if `-r' is on.
The old quirky code did strange things.
1995-12-28 18:04:59 +00:00
pk 2bb60e32ec Make dlopen() search for libraries if given a name of the form
`lib<name>.so[.xx[.yy]]' (per Erik M. Theisen; PR#1763; patch from PR
used in simplified form).
1995-12-28 17:57:32 +00:00
thorpej d6cc013968 Now that we compile the tree with -Werror, remove an explicit #warning
and replace it with an XXX comment.
1995-12-14 21:58:33 +00:00
pk 35c8aad7b3 Flush after diddling text, so we get predictable results on machines
with separate I & D caches.
1995-11-28 19:29:45 +00:00
ragge 6ac54c7a78 Vax support for ld, so we (at least) can link static binaries. 1995-10-19 13:10:17 +00:00
ghudson 75ec1de458 Cleanup, from Mark Eichin. 1995-10-19 12:47:28 +00:00
ghudson 070618219e Filter potentially dangerous environment variables passed from
telnet client.
1995-10-18 05:44:26 +00:00
pk d04fcadcc2 Fix typo. 1995-10-09 09:24:59 +00:00
pk 9d43c41208 New style RCS IDs. 1995-10-09 00:09:39 +00:00
pk b74b1d6456 Allow customized trace output, so ldd(1) can be more conveniently used
as a filter.

Rearrange cascading stuff: remove two-level limit.
1995-10-08 23:43:28 +00:00
mycroft d31086db17 Update from kernel source. 1995-10-05 08:51:31 +00:00
mycroft 4a508a1252 Change to use SET(), CLR(), and ISSET() macros. Copy current sgtty->termios
conversion code from kernel.
1995-10-05 07:16:25 +00:00
mycroft a38b5c448f Fix some other problems created during the termios switch. 1995-10-05 00:54:45 +00:00
mycroft 2da76ff341 Simulate the old newline behaviour better, and make sure OPOST
is set if needed.
1995-10-05 00:40:33 +00:00
pk b19a7d87e2 Pass on return value. 1995-09-23 22:48:18 +00:00
pk d4fe561742 Interface version 4:
implement dlexit() (per Doug Rabson)
	get actual rtld path from crt0
	pass ld_entry back to crt0 in a better place
1995-09-23 22:46:24 +00:00
pk fa6e06725c Define `dlexit()' in crt<=>rtld interface (active in v4). 1995-09-23 22:26:15 +00:00
jtc d943cdadce Sync with 4.4lite2 1995-09-07 06:42:58 +00:00
pk 1a9159c7ba Check for zero sized BSS to avoid a big no-op syscall (per Mike Hibler). 1995-08-31 22:07:25 +00:00
pk f6797ed4f1 Install the manual page. 1995-08-25 10:08:45 +00:00
cgd 6c5f148828 log open failure every 10th try (that was the old behaviour) UNLESS
the error is ENXIO and it's already been logged.  (this allows people
to leave getty's running on nonexistent devices without filling their
syslog.  while it's arguable that that might not be a good idea, i've
found it to be _very_ useful, because it allows me to rdist /etc/ttys.)
1995-08-13 04:08:27 +00:00
pk 72acb4fe30 Handle object code with the "large" model PIC (eg. gcc's `-fPIC' option). 1995-08-04 21:32:15 +00:00
pk 4a5c9a20e5 Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182). 1995-07-09 00:30:11 +00:00
pk b542137ece Oops, previous needs <limits.h>
Also, previous addresses PR#1183.
1995-07-08 23:57:06 +00:00
pk 39565cfe93 Call kvm_openfiles() with suitable arguments.
(Note, the error reporting mechanism in here is quite braindead)
1995-07-08 23:53:46 +00:00
pk f42537952b man page for the run-time linker 1995-06-30 12:23:10 +00:00
pk fed935eb9a Conform to rpcgen generated prototypes. 1995-06-24 15:57:18 +00:00
pk 5bf5f9214d Make declarations confirm to rpcgen generated prototypes. 1995-06-24 15:47:49 +00:00
pk 45359beaf4 Initialise after malloc (fixes PR#1149).
Also, correct comparison when looking in `prefered' paths.
1995-06-20 23:07:03 +00:00
jtc 1847eaed9f sys/termios.h -> termios.h 1995-06-19 22:47:37 +00:00
cgd fe84ea21f6 update for new network queues 1995-06-19 21:59:31 +00:00
cgd 2db81cafc5 update for new networking queue structures 1995-06-18 22:44:10 +00:00
cgd 788733b7a9 typeof(timeval.tv_sec) != time_t 1995-06-07 17:14:21 +00:00
pk d680ed6b95 #include <dlfcn.h> 1995-06-05 00:08:38 +00:00
pk 878392000d Put dlopen() et.al. declarations in separate header file for compatibility. 1995-06-05 00:08:07 +00:00
pk fdd7092874 Cache two more environment variable values. 1995-06-04 23:21:35 +00:00
pk fe9497fd8c Revive library search paths. 1995-06-04 21:57:18 +00:00
pk ad760ce3d6 Implement compiled-in library search paths: any `-L' argument encountered
while `dynamic link-mode' is on, is recorded in the executable. The
run-time linker will search these paths after $LD_LIBRARY_PATH but
before the default set and those currently in the hints file.
The feature is disabled whenever for set[ug]id programs.
1995-06-04 21:56:22 +00:00
jtc ad6a2b10b2 The tftpd daemon must be invoked as root in order for the chroot()
call to succeed, and must give up those privledges as soon as the new
root has been aquired.  Use setgid() & setuid() to explicitly set the
user and group IDs to non- priveleged values.

This change now requires tftpd to be executed by root.  I haven't
studied the security implications of making it setuid root, so
inetd.conf needs to be changed to start it as root.
1995-06-04 20:48:22 +00:00
mycroft e4cc49cc0d Fill in sin_len. 1995-06-03 22:47:20 +00:00
mycroft 5860921eda Fill in sin_len. 1995-06-03 22:37:19 +00:00
phil 46466fb2d7 Correct copyright. 1995-05-29 18:11:35 +00:00
mycroft cc8066939d Use inet_aton(), not inet_addr(). 1995-05-21 00:39:11 +00:00
jtc 9ae90685f2 Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
briggs ad2b81e4f0 jbsr takes one argument, not two. Apparently the assembler quietly
ignores the second...
Pointed out by uhenric@mcl.ucsb.edu (Henric Jungheim).
1995-05-07 13:22:12 +00:00
mycroft 78cb5bbe77 Use POSIX tty semantics. 1995-05-02 02:05:47 +00:00
jtc 2d577aafd2 Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
1995-04-12 00:47:27 +00:00
jtc 0e1df05653 #include <sys/signal.h> -> <signal.h> 1995-04-12 00:41:40 +00:00
cgd 8954551479 typo. 1995-04-11 02:58:40 +00:00
cgd 6a9917621c clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
1995-04-11 02:44:45 +00:00
pk 28dba22b40 Fix bogosities in cascade stuff. 1995-04-01 20:56:55 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00