Commit Graph

410 Commits

Author SHA1 Message Date
martti fff7fd04df s/iplattach/ipfattach/ and s/ipldetach/ipfdetach/ 2007-06-04 12:38:58 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
dsl a9a3224a5e Remove compat_util.o from these loadable modules. It will be in the kernel.
Should fix PR kern/36287
2007-05-12 10:45:01 +00:00
dsl b8fbaf8c4b Change the way that emulations locate files within the emulation root to
avoid having to allocate space in the 'stackgap'
  - which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
  the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
  during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
  search for absolute pathnames in the emulation root, if that fails it will
  retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
  of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
  relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
  inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
  the real root is returned instead (matching the behaviour of emul_lookup,
  but being a cheap comparison here) so that programs that scan "../.."
  looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
  CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
  TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.
2007-04-22 08:29:55 +00:00
scw 5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
xtraeme 4c6e4fcf9b Sync with est.c, est_init does not take any argument now. Just use
curcpu().
2007-03-18 07:28:37 +00:00
xtraeme 5ec1f7a202 Change k8_powernow_init to accept a struct cpu_info * as argument,
so that in the informative messages it prints the correct cpu
and not curcpu().

This fixes the first part of PR kern/35676.
2007-03-18 04:41:03 +00:00
dillo d0c955805c Remove hfsp directories, they have been reimported as hfs. 2007-03-06 11:31:21 +00:00
dillo 56c3e41252 Complete rename of hfsp to hfs, requested by thorpej. 2007-03-06 11:28:44 +00:00
dillo abbfd8a897 LKM glue for Apple HFS+ file system. 2007-03-06 11:27:15 +00:00
dillo 9274a5c0f1 Integrate apmlabel and HFS+ file system. 2007-03-05 23:18:01 +00:00
dillo 3eb0182b68 LKM glue for Apple HFS+ file system. 2007-03-05 23:09:16 +00:00
ad b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
elad 3dcf1cc6ec Style nitz. 2007-02-05 17:36:12 +00:00
elad 6c98db2b70 Much cleaner, shorter, and simpler, skeleton for an LKM.
Not connected to the build.
2007-02-04 22:53:09 +00:00
elad f053782e48 Make this compile. 2007-02-04 22:34:57 +00:00
elad 7f6d8c248b Add LKM for secmodel_bsd44. Not linked to the build yet. 2007-01-17 11:28:09 +00:00
pooka 760e789bc2 build puffs lkm if MKPUFFS is set 2006-12-29 17:00:08 +00:00
pooka 380ec0e482 compile puffs_transport.c 2006-12-05 23:41:46 +00:00
christos 36534cb271 move USE_SSP=no one level up. 2006-11-11 22:38:38 +00:00
christos 31b7f8ae5f Don't build lkms with SSP for now. 2006-11-11 21:35:45 +00:00
pooka f212146148 make it possible to build & load puffs as an LKM
by Lubomir Kundrak, PR kern/35000
2006-11-06 11:44:54 +00:00
jmmv 8d45655462 Add a lkm for tmpfs. All the regression tests pass fine when using the
module rather than an in-core build.
2006-11-05 22:42:14 +00:00
cube 11b4b910d2 Make pn_family static. 2006-10-04 21:47:56 +00:00
cube 818a5cb153 Re-arrange probing to match the new way. I apologise for forgetting about
the LKM.

While there, rename 'rval' as 'pn_family', and make it a global variable.
The k[78]_powernow_destroy() functions have never been called because of
that...
2006-10-04 21:47:29 +00:00
xtraeme 94e721817e Back out linux_ptrace.c changes, looks like they were removed with
a reason in the past.
2006-09-25 10:55:54 +00:00
xtraeme 8de009a612 linux_ptrace.c is not available in all archs, only in powerpc, arm,
mips and i386... make it so.

Patch from Kurt Schreiner.
2006-09-25 10:36:23 +00:00
xtraeme 2e6b13ae04 PR 34478: "modload compat_linux.o fail" by Takehiko NOZAKI.
Applied patch, thanks.
2006-09-24 14:35:22 +00:00
tron 595808ad47 Don't build "linux_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 14:00:29 +00:00
tron 3a715a0a6f Don't build "freebsd_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 13:25:50 +00:00
xtraeme ca450bca52 Update powernow module with POWERNOW_K7 and POWERNOW_K8 support.
Works fine on amd64 cpus running in 32-bit mode.

Tested by Joel Carnat.
2006-08-27 10:10:55 +00:00
xtraeme 423aebde2b - Add k7_powernow_destroy() prototype into cpu.h.
- Call k7_powernow_destroy() unloading the module.
2006-08-08 21:04:29 +00:00
xtraeme e7d2347699 * Sync powernow_k7.c driver with OpenBSD, it seems to work much
better finding PST tables.
* Use functions defined in powernow_common.c to detect if the
  CPU can run powernow.
* Update the LKM with current code.
2006-08-06 16:05:07 +00:00
cube b1b29cb4ae Remove that example. It was obsolete even before 3.0 release. 2006-07-16 10:52:22 +00:00
drochner 8d2b5419d9 make this compile with standard warning level 2006-07-05 14:33:20 +00:00
christos 2bea415e72 remove gcc4 stuff since it is done in bsd.kmod.mk 2006-05-21 05:43:49 +00:00
christos 3c22b94a4a fix typo 2006-05-21 04:45:35 +00:00
christos c9904084fe add -fno-strict-aliasing for gcc4 2006-05-21 04:43:58 +00:00
christos 589a4be805 Add -Wno-pointer-sign for gcc4 2006-05-20 22:22:04 +00:00
christos d45a53ed73 Finish fixing compilation after device property changes. 2006-05-07 20:48:51 +00:00
christos 2867eb021b Don't define $S here; nothing uses it and it is broken. 2006-05-07 20:48:01 +00:00
christos d8d35ea484 Fix the build after old property header removal (Hi Jason) 2006-05-07 20:15:14 +00:00
xtraeme 294582997b Fix "hard reboot" problem reported by Rhialto weeks ago on current-users@.
The problem was that pnowk7_init() was called too early in the boot
process, at this point the required calls were not available.

Thanks to Rhialto for testing and cube/christos for comments.
2006-02-03 02:37:57 +00:00
reinoud 09457a8a6e Initial import of a UDF file system implementation for NetBSD.
Finally the logic glue and the set distribution lists modifications.
2006-02-02 15:26:32 +00:00
reinoud cff5e7ad2c Initial import of a UDF file system implementation for NetBSD.
The code supports read access to all media types that CD/DVD type drives
can recognize including DVD-RAM and BD- drives as well as harddisc partions
and vnd devices. UDF versions upto the latest 2.60 are to be supported
though due to lack of test media version 2.50 and 2.60 are not implemented
yet though easy to add. Both open and closed media are supported.

Write access is planned and in preparation. To facilitate this some hooks
are present in the code that are not strictly needed in a read-only
implementation but which allow writing to be added more easily.

Implemented and tested media types are CD-ROM, CD-R, CD-RW, CD-MRW,
DVD-ROM, DVD*R, DVD*RW, DVD+MRW but the same code can also read DVD-RAM,
HD-DVD and BluRay discs. Also vnd devices have been tested with several
sector sizes.

Discs created and written by UDFclient, Nero's InCD and Roxio's
DirectCD/Drag2Disc read fine.
2006-02-02 15:19:15 +00:00
martin 60dcc21763 Add missing <sys/device.h> include. 2006-02-01 20:55:31 +00:00
cube 97047d48dd Properly dispose of cfdata memory when unloading the tap(4) LKM. 2006-02-01 05:51:58 +00:00
cube 9f02c7bd62 Free cfdata memory. The tap LKM might be wrong in that area, to...
Pointed out by Greg Oster.
2006-02-01 05:05:22 +00:00
cube 6527a45571 Have vnd(4) devices automatically created when the user tries to
configure one.  That removes the compile-time constant that limits the
number of vnds.

Thanks xtraeme@ for testing.
2006-02-01 03:15:33 +00:00
xtraeme d347a5866b Move the code that checks for a powernow capable cpu to pnowk7_init(),
so that the kernel and the lkm can use it without having it in two
files... plus minor fixes (idea from Rhialto).
2006-01-15 04:12:09 +00:00