Commit Graph

42 Commits

Author SHA1 Message Date
christos
1aa528a00a smb is no more. 2020-04-04 17:57:16 +00:00
christos
a2362fee00 Redo the sshsk_sign() stuff properly, but putting the helper in libssh.so 2020-03-01 20:59:52 +00:00
christos
d6b9735f94 Unfortunately libssh has an undefined symbol sshsk_sign(), which is provided
by different implementations depending if we are a server or a client. While
the clients we compile in, provide that symbol, it is getting hidden by
crunchhide, so we provide it again. It would have been a lot simpler to
use a function pointer instead in the library...
2020-02-27 17:17:34 +00:00
christos
128e5f5e67 1. Remove all the special handling of variables (-d -p -P -s -S) that
were dealing with DBG (-d) LDSTATIC/NOPIE (-p), and the rest with
   disabling/enabling sanitizers.
2. Use emalloc/estrdup for all the allocators instead of only some cases.
3. Add -V varspec which passes variables on the command line (as DBG
   and LDSTATIC used to be passed before) instead of appending them
   to the on-the-fly Makefile using -v varspec.
4. Change the distrib and rescue Makefiles to use -V instead of the removed
   flags.

The motivation of this is to make variable handling consistent, less magical,
and remove the need for changing crunchgen each time we want to add disabling
an option by default.

(as proposed in tech-toolchain)
2019-12-29 18:26:16 +00:00
maya
586fb1f9e7 Remove ldconfig from /rescue, and mark it MI obsolete.
- ldconfig in netbsd refers to a.out binaries only. We've been ELF-only
  since NetBSD 2.0 or so, and having it in /rescue served little purpose
  even before that, as /rescue is standalone.
- Using MI obsolete to avoid the need for MD set lists where ldconfig
  is the sole entry
2019-10-02 09:45:10 +00:00
dholland
ad8aa774f5 fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
pgoyette
d91f98a871 Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
kamil
d9ee272cda Specify NOLIBCSANITIZER for rescue
The rescue image could be sanitized with a sanitizer in libc, but it's left
for future as a possible research.
2018-07-25 23:52:38 +00:00
kamil
0e6099283a Set NOSANITIZER in rescue/Makefile
This is required to stop sanitizing rcmd.o and liboverride.o. These object
files will be linked into statically linked rescue.
2018-06-21 10:44:01 +00:00
christos
30497168b4 Extra flags for static PIE 2017-10-08 15:02:33 +00:00
riastradh
ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
matt
7738103370 Append -Os to DBG, not overwrite in case DBG has more than just -Ox from
sys.mk
2014-01-30 22:19:00 +00:00
christos
096e95360a mount_smbfs has moved. 2013-12-26 02:25:57 +00:00
christos
6c56214fbc descend to bin for pdisk 2013-03-24 17:05:27 +00:00
martin
52b9a33a36 pdisk has moved to external/bsd - try to deal. 2013-03-24 11:07:07 +00:00
abs
6c6ab6a995 Relegate edlabel to use in extremely memory constrained install
ramdisks and prefer disklabel elsewhere.
Based on discussion on affected port lists (port-sparc port-sparc64
port-sun3 port-sun2 port-atari port-mvme68k).
All listed ports plus amd64 test built after change
2010-03-10 23:13:09 +00:00
roy
d930bbb936 Don't install terminfo.db in rescue. 2010-02-13 11:21:55 +00:00
roy
89d790bdbe Move the emergancy terminfo database from /root to /rescue. 2010-02-05 09:44:23 +00:00
mrg
a9208fb155 kill ldd_aout. it didn't work anyway...not since i don't know when. 2009-08-22 06:52:15 +00:00
he
6ef3b52d49 Add a new list.ldd.noaout, which is a copy of list.ldd but without
the a.out support.
Tweak Makefile so that the a.out support is not built for mips.
2009-08-21 15:16:45 +00:00
mrg
9b688fed42 - rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
2009-01-07 00:39:23 +00:00
mrg
ecc90aa046 make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
simonb
d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
lukem
dfee67134f Make fdisk(8) available on all platforms, since MS-DOS partitioning
is the de-facto standard for many removable media types.
2005-05-22 03:45:30 +00:00
lukem
366ee6e76e improve MAKEVERBOSE support 2005-01-13 03:25:31 +00:00
lukem
83846d378c Restore the "liboverride" functionality because it's needed to correctly
implement rmcd(3) in the rescue tools.
2005-01-13 03:08:07 +00:00
lukem
242baa62bd Add to /rescue: scp ssh slogin
(all without Kerberos support at this time)
2005-01-10 10:47:36 +00:00
lukem
44173303af MAKEVERBOSE support 2005-01-10 10:05:44 +00:00
lukem
e1375832e2 Provide /rescue/cgdconfig if ${MKCRYPTO} != "no" 2005-01-10 10:04:31 +00:00
lukem
497e76847f Repeat after me: "test both cases before commit" 2005-01-10 04:00:50 +00:00
lukem
7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
tron
06838f8d94 Complete removal of "liboverride" to fix build problems. 2004-08-20 11:01:03 +00:00
christos
5c08ec31c6 Remove special handling for rcmd.o; not needed. 2004-08-19 23:12:15 +00:00
tron
af78980474 Remove file "rescue.unstripped" in "cleandir" target. 2003-07-14 09:00:33 +00:00
lukem
adb7a5bf1c * Add ftp to /rescue.
* Implement liboverride.o to provide overrides of various libc functions.
  For now, compile a special version of rcmd(3) (et al) which uses
  /rescue/rcmd and /rescue/sh instead of the /bin variants.
  Other overrides may appear in the future.

Should fix [bin/21670] from Geoff Wing.
2003-05-26 09:46:47 +00:00
simonb
7176940e72 Enable MIPS now that crunchgen works again for this arch. 2003-01-29 11:32:45 +00:00
lukem
0ec638c2e6 set SMALLPROG=0 (it was implicit) 2002-10-17 01:49:18 +00:00
thorpej
7d588a758e * Move the rescue bits into their own file.
* In makeflist, skip rescue bits in arch's that don't yet support it
  (MIPS, currently, due to an objcopy-crunch bug).
2002-10-06 17:28:46 +00:00
thorpej
6f086f7ea1 Compare MACHINE_CPU and "mips" rather than MACHINE_ARCH and "mipseb" or
"mipsel".
2002-10-06 17:19:12 +00:00
lukem
e6a1674482 Don't build this on mipseb or mipsel, as crunchgen(1) doesn't work correctly
on those, no fix has been forthcoming, and users are getting antsy.

This allows "make build" to complete; "make release" will still fail in the
sets generation.  Maybe *that* will inspire a MIPS/toolchain guru to fix
crunchgen(1)...
2002-10-03 01:11:37 +00:00
lukem
59cfca9978 set CRUNCHENV= RESCUE=/rescue (still don't want SMALLPROG) 2002-08-23 03:25:21 +00:00
lukem
8290f52368 Migrate rescue tools from distrib/rescue -> rescue. Purpose of tools:
Infrastructure to build a set of "rescue" tools; a crunched-up
	version of all the statically linked binaries in /bin, /sbin
	and the few in /usr/bin.
2002-08-22 01:23:46 +00:00