Commit Graph

14138 Commits

Author SHA1 Message Date
pk
3441f631d9 Cut some convoluted code that caused library members to get pulled
in unnecessarily. Also, the size of common is of no interest if the
symbol already is in a shared object.
1995-06-04 21:33:14 +00:00
jtc
170153e198 The tftpd daemon has been changed to use setgid() & setuid() to
explicitly set the user and group IDs to non-priveleged values.  This
was done because the chroot() call used when the secure (-s) option is
used can only be done by the superuser.

This change now requires tftpd to be executed by root.  So the
inetd.conf entry has been changed to start it that way.  I also
added -s /tftpboot arguments, so people who uncomment the tftpd
entry without realizing it's security ramifications won't open
thier whole systems to unauthorized access.
1995-06-04 20:55:39 +00:00
mycroft
5b37a8fded Handle BREAK correctly when not entering DDB. 1995-06-04 20:50:14 +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
38847d04c0 Add an input FIFO, and fix several flow control problems. Based on code from
Felix A. Croes.
1995-06-04 20:39:22 +00:00
mycroft
4ea6427a03 Increase size of imask[]. Sigh. 1995-06-04 20:22:50 +00:00
brezak
cea924779e call hw->setfd with param not ptr to it 1995-06-04 15:33:50 +00:00
mycroft
3e6f699a75 Only do software flow control if IXOFF is set. Also fix hardware flow control
case in ttyblock().
1995-06-04 14:01:37 +00:00
mycroft
3cd36c72ef Use ISSET() and CLR() in two cases. 1995-06-04 12:57:52 +00:00
mycroft
bd99191320 IPL_IMP includes IPL_NET, IPL_BIO, and possibly IPL_TTY. 1995-06-04 08:32:24 +00:00
mycroft
8bb190daa3 Add a separate IPL_IMP, used by splimp(). 1995-06-04 08:29:41 +00:00
mycroft
4906fd756f Simplify ipip_input() a bit. Don't blow away the vif cache if someone sends
us a bogus packet.
1995-06-04 07:38:19 +00:00
mycroft
e30d6fd798 Simply tbf_control() a bit. 1995-06-04 07:20:47 +00:00
mycroft
b8c4ea6580 Eliminate compiler warnings. 1995-06-04 06:55:30 +00:00
mycroft
e201372b7d For consistency, set sin_len for SIOC{ADD,DEL}MULTI. 1995-06-04 06:46:05 +00:00
mycroft
51a0da73db Remove one more bogus cast. 1995-06-04 06:03:53 +00:00
mycroft
41703012d6 Don't cast things unnecessarily. 1995-06-04 05:58:20 +00:00
mycroft
0a99592372 Clean up many more casts. 1995-06-04 05:06:49 +00:00
mycroft
06a9ea20e8 Clean up a lot of ugly casts. 1995-06-04 04:35:29 +00:00
mycroft
27093b3eba Fill in sin_len. 1995-06-03 23:23:52 +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
mycroft
c7ad9c47f1 Fill in sin_len. 1995-06-03 22:24:45 +00:00
mycroft
89ef25dac6 Fill in sin_len. 1995-06-03 22:03:51 +00:00
christos
a6d86f0535 Changes to write ascii timestamps in the when files.
Looked into making it 64 bit clean, but it is hopeless.
Added little program to convert from the old timestamp files
into the new ones.
1995-06-03 21:21:48 +00:00
pk
846beea318 Factor out common code. 1995-06-03 13:16:03 +00:00
jtc
642d0e3938 Remove chownerr() function completely and use warn() instead.
chownerr() would prematurely terminate the program if a error occured
(lack of permissions, nonexistant file, etc.), but POSIX.2 requires
that the chown and chgrp utilities continue on.  Removing the code
that caused the program to exit turned chownerr into a wrapper
around warn(), so why not call warn() directly.

Also changed the file traversal logic so that directories are not
chown()'d twice.  This only occured when the -R option was not used.
1995-06-03 07:01:19 +00:00
jtc
e095500d0c In chownerr(), check to see if new group is the effective group id as
well as in the supplementary group id array.
1995-06-03 06:09:03 +00:00
mycroft
21caf81789 Add MBONE tools. 1995-06-03 06:03:44 +00:00
mycroft
3eeacbcb2d #include <sys/vnode.h>, for prototypes. 1995-06-03 05:53:28 +00:00
mycroft
fda52a9197 Include the egid when displaying the groups and doing security checks. 1995-06-03 03:12:05 +00:00
mycroft
ac1e0f5127 Don't set the rgid or egid. Document this behavior. This is compatible with
SunOS and SysV.
1995-06-03 02:27:17 +00:00
mycroft
c62765fbdd Fix the `restrictmailq' security check to explicitly check the egid. 1995-06-03 02:07:08 +00:00
pk
7d18c2534d Add `Maxtor LXT-213S', this time without a Sun OEM addition. 1995-06-02 21:44:11 +00:00
christos
73afb6b797 don't print NULLs; print empty strings.... 1995-06-02 21:40:51 +00:00
pk
c64cecc457 Protoize (from Thorsten Lockert, PR #1070).
Some other cleanup.
1995-06-02 21:30:47 +00:00
mycroft
19755ba159 We must do setgid() explicitly now. 1995-06-02 21:25:09 +00:00
mycroft
7f26bb202e Set cr_gid properly, and adjust for getgrouplist() change. 1995-06-02 21:04:24 +00:00
mycroft
41a1b362f8 Fix more off by one errors. 1995-06-02 19:50:11 +00:00
mycroft
8dc3fb5a63 Use vaccess(). 1995-06-02 19:04:22 +00:00
mycroft
f1365566f1 Fix another off by one error. 1995-06-02 18:49:31 +00:00
mycroft
b1b27effa0 Imported group list now starts at offset 0, not 1. 1995-06-02 18:38:57 +00:00
mycroft
f5f32d8328 Exported group list now starts at offset 0, not 1. 1995-06-02 18:35:50 +00:00
mycroft
d4e9fde6e5 Handle most of the address fixups during bootstrap with a macro. 1995-06-02 18:14:04 +00:00
pk
c86cba88fe Update SCSI decls. 1995-06-02 17:53:51 +00:00
mycroft
3126edd708 Arrest the KNF policeman. 1995-06-02 17:51:21 +00:00
gwr
788562b9ed Use the exec header left by the boot program to validate the
symbol table size, and then preserve symbols for ddb.
1995-06-02 16:46:18 +00:00
gwr
3fda1f293a Keep the exec header so the kernel can find it. 1995-06-02 16:44:20 +00:00
mycroft
6b8a5d7b8e Update a comment in deupdat() to reflect current reality. 1995-06-02 16:19:55 +00:00
pk
fd77fcfc4c Make this compile warning-free (from Thorsten Lockert, PR 1071). 1995-06-02 15:55:27 +00:00