aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/linux
Commit message (Collapse)AuthorAgeFilesLines
...
* opt_kstack_pages.h is not needed anymore. It would have been a Bad ThingPeter Wemm2002-09-081-2/+1
| | | | | | | if it had been different to the running kernel. Notes: svn path=/head/; revision=103089
* Unbreak the modules build:Thomas Moestl2002-09-071-1/+2
| | | | | | | | | | | | - add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module Makefile in the i386 case. The latter is needed by an i386-only file, the former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for architecture-dependent options, so I added it only for i386, although this file is also generated for the alpha). - add a dependency on opt_kstack_pages.h to the pecoff module Makefile. Notes: svn path=/head/; revision=103075
* Introduce support for Mandatory Access Control and extensibleRobert Watson2002-08-011-1/+2
| | | | | | | | | | | | | | | kernel access control. Invoke appropriate MAC entry points for a number of VFS-related operations in the Linux ABI module. In particular, handle uselib in a manner similar to open() (more work is probably needed here), as well as handle statfs(), and linux readdir()-like calls. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101189
* Hook up the new linux_ptrace implementation.Marcel Moolenaar2002-05-191-1/+1
| | | | | | | | PR: 33299 Submitted by: Alexander N. Kabaev <ak03@gte.com> Notes: svn path=/head/; revision=96890
* (Belatedly) add the required EXPORT_SYMS. I'm not sure the list is complete,Dag-Erling Smørgrav2002-02-221-0/+8
| | | | | | | | but at least linprocfs works (I haven't had the opportunity to test other stuff that depends on the linux module, like aac or tdfx) Notes: svn path=/head/; revision=91072
* genassym depends on the presence of common variables, disable the useMike Smith2002-01-101-1/+1
| | | | | | | of -fno-common in this case. Notes: svn path=/head/; revision=89181
* Pass maintainership over to emulation@FreeBSD.org. It has been fun,Marcel Moolenaar2001-11-181-1/+1
| | | | | | | | | | | but time and other interests is making it hard. Open the door for new blood and fresh tactics now that the Linuxulator has had its facelift. Thanks to all who contributed during my tour of duty! Notes: svn path=/head/; revision=86538
* Round of cleanups and enhancements. These include (in random order):Marcel Moolenaar2001-09-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Introduce private types for use in linux syscalls for two reasons: 1. establish type independence for ease in porting and, 2. provide a visual queue as to which syscalls have proper prototypes to further cleanup the i386/alpha split. Linuxulator types are prefixed by 'l_'. void and char have not been "virtualized". o Provide dummy functions for all syscalls and remove dummy functions or implementations of truely obsolete syscalls. o Sanitize the shm*, sem* and msg* syscalls. o Make a first attempt to implement the linux_sysctl syscall. At this time it only returns one MIB (KERN_VERSION), but most importantly, it tells us when we need to add additional sysctls :-) o Bump the kenel version up to 2.4.2 (this is not the same as the KERN_VERSION MIB, BTW). o Implement new syscalls, of which most are specific to i386. Our syscall table is now up to date with Linux 2.4.2. Some highlights: - Implement the 32-bit uid_t and gid_t bases syscalls. - Implement a couple of 64-bit file size/offset bases syscalls. o Fix or improve numerous syscalls and prototypes. o Reduce style(9) violations while I'm here. Especially indentation inconsistencies within the same file are addressed. Re-indenting did not obfuscate actual changes to the extend that it could not be combined. NOTE: I spend some time testing these changes and found that if there were regressions, they were not caused by these changes AFAICT. It was observed that installing a RH 7.1 runtime environment did make matters worse. Hangs and/or reboots have been observed with and without these changes, so when it failed to make life better in cases it doesn't look like it made it worse. Notes: svn path=/head/; revision=83221
* Fix linux_getcwd() so that if the cwd isn't cached (__getcwd() fails),Andrew Gallatin2001-08-291-2/+2
| | | | | | | | | | | | | the cwd is looked up inside the kernel. The native getcwd() in libc handles this in userland if __getcwd() fails. Obtained from: NetBSD via OpenBSD Tested by: Chris Casey <chriss@phys.ksu.edu>, Markus Holmberg <markush@acc.umu.se> Reviewed by: Darrell Anderson <anderson@cs.duke.edu> PR: kern/24315 Notes: svn path=/head/; revision=82518
* Zap obsolete (died with LKM) EXPORT_SYMS variablePeter Wemm2001-02-041-1/+0
| | | | Notes: svn path=/head/; revision=71989
* It is unlikely that we'll be supporting old-style ZMAGIC linux a.outPeter Wemm2001-01-071-1/+1
| | | | | | | | | binaries on anything but i386.. (ia64, sparc64, etc) Invert the .if so that it is inclusive of i386 platforms rather than excluding just the alpha. Notes: svn path=/head/; revision=70739
* Use a consistent style and one much closer to the rest of /usr/srcDavid E. O'Brien2001-01-061-10/+10
| | | | Notes: svn path=/head/; revision=70711
* Don't auto-generate the syscalls.Marcel Moolenaar2000-12-031-16/+2
| | | | Notes: svn path=/head/; revision=69539
* Fix dependency for auto-generated files. This commit isMarcel Moolenaar2000-12-021-1/+1
| | | | | | | | | | | for archiving purposes only; auto-generation is going to be reverted. requested by: obrien submitted: gallatin Notes: svn path=/head/; revision=69533
* Fix breakage for parallel builds.Marcel Moolenaar2000-11-051-0/+1
| | | | Notes: svn path=/head/; revision=68341
* Retire linux(8). Using shell scripts to load kernel loadable modules isSheldon Hearn2000-11-023-74/+0
| | | | | | | | | | | | | | | | | out of fashion. This particular case, unlike joy(8) and friends which are just plain silly, did more than just load a kernel loadable module. However, /etc/rc and the linux_base port were adjusted a while back to cope with the absence of this script. The only outstanding reason to hang on to it would have been for the linux(8) manual page, which clued folks into the existence of the Linuxulator. A new linux(4) was introduced a while back. It does a much better job. This script just isn't useful any more. Notes: svn path=/head/; revision=68243
* Support for the linux ipc syscalls on the alpha, where each one hasAndrew Gallatin2000-11-011-2/+2
| | | | | | | | its own syscall rather than going through a demux function like linux_ipc() on i386 Notes: svn path=/head/; revision=68214
* Allow the building of the syscall bits at compile time.David E. O'Brien2000-11-011-1/+14
| | | | Notes: svn path=/head/; revision=68162
* Don't install manpages.David E. O'Brien2000-10-081-3/+0
| | | | | | | They are being moved elsewhere, and they are causing problems being here. Notes: svn path=/head/; revision=66826
* Only install secondary components if the destination directory exists.David E. O'Brien2000-10-041-0/+4
| | | | | | | This may be a WIP, but `make release' needs it sooner than later. Notes: svn path=/head/; revision=66620
* Since AlphaLinux is the weirdest Linux of all, probably best to do theDavid E. O'Brien2000-09-061-1/+1
| | | | | | | logic this way. Notes: svn path=/head/; revision=65548
* Two sys/compat/linux sources aren't applicable on the Alpha at this time.David E. O'Brien2000-09-061-2/+6
| | | | Notes: svn path=/head/; revision=65547
* Connect the new sources in /sys/compat/linux and the new fileMarcel Moolenaar2000-08-221-4/+3
| | | | | | | in /sys/i386/linux. Notes: svn path=/head/; revision=64930
* Use the genassym script here too. The linux and svr4 modules were broken.Bruce Evans2000-06-031-1/+4
| | | | Notes: svn path=/head/; revision=61204
* Use .include <bsd.kmod.mk> to get to ../../*/conf/kmod.mk instead ofPeter Wemm2000-05-271-1/+1
| | | | | | | encoding the relative path. Notes: svn path=/head/; revision=60966
* Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.Peter Wemm2000-05-041-1/+1
| | | | | | | | | | This means that the kernel can be totally self contained now and is not dependent on the last buildworld to update /usr/share/mk. This might also make it easier to build 5.x kernels on 4.0 boxes etc, assuming gensetdefs and config(8) are updated. Notes: svn path=/head/; revision=59951
* Compile linux_genassym.c with ordinary ${CFLAGS}. The (small) need forBruce Evans2000-01-091-3/+3
| | | | | | | | | | | | | -U_KERNEL became negative when all all the genassym.c's were converted to be cross-built. Use "genassym ... > ${.TARGET}", not "genassym -o $@ ...", so that genassym(1) doesn't need to support -o. Removed duplicate -D_KERNEL from flags for compiling linux_locore.s. Notes: svn path=/head/; revision=55653
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-2/+2
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Use genassym(1) and <sys/assym.h> to generate assembler symbols.Marcel Moolenaar1999-12-231-8/+3
| | | | Notes: svn path=/head/; revision=55062
* Add a run of Linux ldconfig.Martin Cracauer1999-12-131-1/+10
| | | | Notes: svn path=/head/; revision=54541
* Removed special rules for building and cleaning device interface filesBruce Evans1999-11-281-5/+1
| | | | | | | | and empty options files. The rules are now generated automatically in bsd.kmod.mk. Cleaned up related things ($S and ${CLEANFILES}). Notes: svn path=/head/; revision=53846
* Replace 'i386' with '${MACHINE_ARCH}' in preparation of the developmentMarcel Moolenaar1999-11-121-1/+1
| | | | | | | of a linuxulator for Alpha. Notes: svn path=/head/; revision=53116
* Install linux.sh in /usr/sbin and not in /usr/bin.Marcel Moolenaar1999-09-031-1/+1
| | | | | | | | PR: 13545 Submitted by: Jose M. Alcaide <jose@we.lc.ehu.es> Notes: svn path=/head/; revision=50834
* Add MAINTAINER and remove the unused COMPAT_LINUX and VM_STACK defines.Marcel Moolenaar1999-08-281-1/+4
| | | | Notes: svn path=/head/; revision=50501
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Add sysctl variables for the Linuxulator. These reside under `compat.linux' asMarcel Moolenaar1999-08-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | discussed on current. The following variables are defined (for now): osname (defaults to "Linux") Allow users to change the name of the OS as returned by uname(2), specially added for all those Linux Netscape users and statistics maniacs :-) We now have what we all wanted! osrelease (defaults to "2.2.5") Allow users to change the version of the OS as returned by uname(2). Since -current supports glibc2.1 now, change the default to 2.2.5 (was 2.0.36). oss_version (defaults to 198144 [0x030600]) This one will be used by the OSS_GETVERSION ioctl (PR 12917) which I can commit now that we have the MIB. The default version number is the lowest version possible with the current 'encoding'. A note about imprisoned processes (see jail(2)): These variables are copy-on-write (as suggested by phk). This means that imprisoned processes will use the system wide value unless it is written/set by the process. From that moment on, a copy local to the prison will be used. A note about the implementation: I choose to add a single pointer to struct prison, because I didn't like the idea of changing struct prison every time I come up with a new variable. As a side effect, the extra storage is only needed when a variable is set from within the prison. This also minimizes kernel bloat when the Linuxulator is not used; both compiled in or as a module. Reviewed by: bde (first version only) and phk Notes: svn path=/head/; revision=50465
* Sort xrefs.Mike Pritchard1999-08-191-3/+3
| | | | | | | Submitted by: Alexey Zelkin <phantom@cris.net> Notes: svn path=/head/; revision=50028
* "Linux emulator" -> "Linux image activator"Nik Clayton1999-08-041-4/+4
| | | | | | | | PR: docs/12882 Submitted by: des Notes: svn path=/head/; revision=49414
* Reference kld(4).Guy Helmer1999-04-231-2/+2
| | | | | | | Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com> Notes: svn path=/head/; revision=45954
* Update for the man page. 4.0 is using KLD's not LKM's.Nick Hibma1999-02-221-5/+7
| | | | Notes: svn path=/head/; revision=44209
* Compile the linux module with the same flags as the kernel.Julian Elischer1999-01-261-2/+2
| | | | | | | | | (oops). Submitted by: "Richard Seaman, Jr." <dick@tar.com> Notes: svn path=/head/; revision=43243
* Install scripts without .sh suffix.Jordan K. Hubbard1998-11-121-2/+2
| | | | Notes: svn path=/head/; revision=41104
* Rename joy,ibcs2,linux to joy.sh,ibcs2.sh,linux.sh (via repo copy).Peter Wemm1998-11-112-14/+2
| | | | Notes: svn path=/head/; revision=41081
* We need to install the linux shell script or the lkm version willJordan K. Hubbard1998-11-101-4/+4
| | | | | | | still be in place. Notes: svn path=/head/; revision=41065
* Build linux_genassym static, this should help aout-to-elf buildsPeter Wemm1998-11-051-2/+2
| | | | Notes: svn path=/head/; revision=40923
* Do not overwrite the lkm versions of the install scripts for now. linuxPeter Wemm1998-11-051-4/+4
| | | | | | | works but ibcs2 has a load failure and joy doesn't look like it'll work. Notes: svn path=/head/; revision=40921
* Update to use kldload, no temporary files!Peter Wemm1998-11-052-10/+14
| | | | Notes: svn path=/head/; revision=40920
* Sample initial set of kld-ified modules. Not all have been completelyPeter Wemm1998-10-162-92/+5
| | | | | | | | | | converted yet. These are more of a starting point. This is NOT connected to the parent Makefile. OK'ed by jkh (who is ever so patiently waiting) Notes: svn path=/head/; revision=40440
* Unregister the glibc2 brand at module unload time.Alexander Langer1998-10-111-6/+23
| | | | | | | | | | | | Change the ELF registration/unregistration scheme to be less error prone. Adding a new brand requires a single addition to linux_brandlist instead of modifying linux_load(), linux_unload(), and linux_elf_init(). Approved by: jkh Reviewed by: msmith Notes: svn path=/head/; revision=40237
* Add support for glibc consumers using the new ld-linux.so.2 linker.Mike Smith1998-09-171-3/+4
| | | | | | | I can't say this was the most inspired fix, but it matches the design OK. Notes: svn path=/head/; revision=39437