summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct documentation of ~/.opiealwaysdes2007-10-261-3/+5
| | | | | | PR: 117512 Submitted by: Jeremy C. Reed <reed@reedmedia.net> MFC after: 1 week
* Save stack only when KTR_GEOM is both compiled into the kernel and enabledpjd2007-10-261-5/+5
| | | | | | | in debug.ktr.mask. Because saving stack is very expensive, it's better only to do it when one really wants to. Reported by: Dan Nelson
* Simplify the old compat #ifdefs.imp2007-10-261-22/+12
|
* Split /dev/nvram driver out of isa/clock.c for i386 and amd64. I have notpeter2007-10-2612-292/+182
| | | | | | | | refactored it to be a generic device. Instead of being part of the standard kernel, there is now a 'nvram' device for i386/amd64. It is in DEFAULTS like io and mem, and can be turned off with 'nodevice nvram'. This matches the previous behavior when it was first committed.
* Ooops. Put back Invariants and witnessimp2007-10-261-4/+4
| | | | Submitted by: csjp
* Add usb serial devices by default. I'm tired of telling people how toimp2007-10-262-4/+28
| | | | do this that should know better :-).
* Implement AUE_CORE, which adds process core dump support into the kernel.csjp2007-10-264-6/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces audit_proc_coredump() which is called by coredump(9) to create an audit record for the coredump event. When a process dumps a core, it could be security relevant. It could be an indicator that a stack within the process has been overflowed with an incorrectly constructed malicious payload or a number of other events. The record that is generated looks like this: header,111,10,process dumped core,0,Thu Oct 25 19:36:29 2007, + 179 msec argument,0,0xb,signal path,/usr/home/csjp/test.core subject,csjp,csjp,staff,csjp,staff,1101,1095,50457,10.37.129.2 return,success,1 trailer,111 - We allocate a completely new record to make sure we arent clobbering the audit data associated with the syscall that produced the core (assuming the core is being generated in response to SIGABRT and not an invalid memory access). - Shuffle around expand_name() so we can use the coredump name at the very beginning of the coredump call. Make sure we free the storage referenced by "name" if we need to bail out early. - Audit both successful and failed coredump creation efforts Obtained from: TrustedBSD Project Reviewed by: rwatson MFC after: 1 month
* Add an option to be able to override the value of the AT91 master clockcognet2007-10-252-0/+3
| | | | | frequency. It'd be better to be able to calculate it at runtime, but we need the information very early, to setup the uart.
* Move some KB920x-specific options into the KB920x file.cognet2007-10-252-4/+4
|
* Fix signedness to make gcc happy.cognet2007-10-253-4/+4
|
* Sort entry points in mac_framework.h and mac_policy.h alphabetically byrwatson2007-10-252-629/+574
| | | | | | | | | primary object type, and then by secondarily by method name. This sorts entry points relating to particular objects, such as pipes, sockets, and vnodes together. Sponsored by: SPARTA (original patches against Mac OS X) Obtained from: TrustedBSD Project, Apple Computer
* Oooops, get the end of the memory right.cognet2007-10-251-1/+1
|
* More style nit.takawata2007-10-251-6/+3
| | | | Pointed out by: njl.
* - Add my birthday to the calendar.lulf2007-10-251-0/+1
| | | | Approved by: kib (mentor)
* - Show that pjd@ and kib@ are my mentors, and that I work in src.lulf2007-10-251-0/+5
| | | | Approved by: kib (mentor)
* Nuke rc.d/nfslocking which has been superceeded by rc.d/{lockd,statd}mtm2007-10-253-64/+3
|
* Change a tab back to a space between #define and __FreeBSD_version.erwin2007-10-251-1/+1
| | | | | | This breaks OSVERSION determination in all ports. Reviewed by: rodrigc
* Don't attach to the "IBM0057" ID. This ID is used by IBM machines forjhb2007-10-251-1/+1
| | | | | | | | | | the PS/2 mouse controller. Thus, when acpi_ibm(4) claimed the mouse device, the mouse would stop working. The one ACPI dump of an R40 that I've looked at includes an HKEY device with the proper "IBM0068" ID, so I'm not sure how the "IBM0057" ID could have helped at all. MFC after: 1 week Approved by: njl
* Fix variable name to be clear what it means.takawata2007-10-251-3/+3
|
* Remove unnecessary whitespacemtm2007-10-251-1/+1
|
* Break out of the I/O retry loop as soon as an I/O operation succeeds ratherjhb2007-10-251-0/+2
| | | | | | than always retrying operations three times. Submitted by: nyan
* Turn EC into poll mode before device_resume invoked .takawata2007-10-251-3/+34
|
* Normalize TCP syncache-related MAC Framework entry points to match mostrwatson2007-10-258-50/+50
| | | | | | | other entry points in the form mac_<object>_method(). Discussed with: csjp Obtained from: TrustedBSD Project
* MFi386: part of 1.52nyan2007-10-251-32/+33
| | | | | Split the pc98_partition specific routine in bd_opendisk() into bd_open_pc98().
* Align.obrien2007-10-257-77/+77
|
* MFi386: part of revision 1.51nyan2007-10-251-161/+83
| | | | | | | | | Rework the read/write support in the bios disk driver some to cut down on duplicated code. - All of the bounce buffer and retry logic duplicated in bd_read() and bd_write() are merged into a single bd_io() routine that takes an extra direction argument. bd_read() and bd_write() are now simple wrappers around bd_io().
* The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795obrien2007-10-253-50/+1
| | | | and bin/100443.
* Document the bwk_20071023 import.obrien2007-10-251-4/+4
|
* This commit was generated by cvs2svn to compensate for changes in r172958,obrien2007-10-253-4/+12
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of bwk's 23-Oct-2007 release.obrien2007-10-253-4/+12
| | | | | | | | This includes fixes for FreeBSD PR's: bin/104795, bin/100443
* | Rename mac_associate_nfsd_label() to mac_proc_associate_nfsd(), and moverwatson2007-10-258-51/+51
| | | | | | | | | | | | | | | | | | from mac_vfs.c to mac_process.c to join other functions that setup up process labels for specific purposes. Unlike the two proc create calls, this call is intended to run after creation when a process registers as the NFS daemon, so remains an _associate_ call.. Obtained from: TrustedBSD Project
* | Consistently name functions for mac_<policy> as <policy>_whatever ratherrwatson2007-10-2511-2761/+2722
| | | | | | | | | | | | | | | | | | | | | | than mac_<policy>_whatever, as this shortens the names and makes the code a bit easier to read. When dealing with label structures, name variables 'mb', 'ml', 'mm rather than the longer 'mac_biba', 'mac_lomac', and 'mac_mls', likewise making the code a little easier to read. Obtained from: TrustedBSD Project
* | Remove some debugging code that, while useful, doesn't belong in the committedtrhodes2007-10-252-16/+6
| | | | | | | | | | | | version. While here, expand a macro only used once. Discussed with/oked by: bde
* | Further MAC Framework cleanup: normalize some local variable names andrwatson2007-10-256-48/+49
| | | | | | | | | | | | clean up some comments. Obtained from: TrustedBSD Project
* | Load the bytes into the EMAC's MAC address register in the properimp2007-10-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | order. The kernel used to shuffle them around to get things right, but that was recently fixed. This makes our boot loader match the behavior of most other boot loaders for the atmel parts. This bug was inherited from the Kwikbyte loader that we started from. This bug was discovered by Bj.ANvrn KNvnig back in June, but fell on the floor. He provided patches to the kernel, include backwards compatibility options that were similar to Olivier's if_ate.c commit.
* | KERNBASE should really be KERNVIRTADDR there too.cognet2007-10-241-2/+2
| | | | | | | | MFC after: 1 week
* | In ate_get_mac(), try to get the mac address in the right order, at leastcognet2007-10-241-6/+6
| | | | | | | | | | | | | | | | in the same order as it's set in ate_set_mac. I remember a discussion about this on -arm, but apparently nothing was done. Warner, is this wrong ? X-MFC After: proper review
* | Handle the case where PHYSADDR != KERNPHYSADDR (ie we do not load the kernelcognet2007-10-241-7/+11
| | | | | | | | | | | | at the beginning of the RAM). MFC After: 1 week
* | Correct a comment, this was not true anymore.cognet2007-10-241-2/+2
| |
* | First cut at support for booting a GPT labeled disk via the BIOS bootstrapjhb2007-10-2421-210/+1217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on i386 and amd64 machines. The overall process is that /boot/pmbr lives in the PMBR (similar to /boot/mbr for MBR disks) and is responsible for locating and loading /boot/gptboot. /boot/gptboot is similar to /boot/boot except that it groks GPT rather than MBR + bsdlabel. Unlike /boot/boot, /boot/gptboot lives in its own dedicated GPT partition with a new "FreeBSD boot" type. This partition does not have a fixed size in that /boot/pmbr will load the entire partition into the lower 640k. However, it is limited in that it can only be 545k. That's still a lot better than the current 7.5k limit for boot2 on MBR. gptboot mostly acts just like boot2 in that it reads /boot.config and loads up /boot/loader. Some more details: - Include uuid_equal() and uuid_is_nil() in libstand. - Add a new 'boot' command to gpt(8) which makes a GPT disk bootable using /boot/pmbr and /boot/gptboot. Note that the disk must have some free space for the boot partition. - This required exposing the backend of the 'add' function as a gpt_add_part() function to the rest of gpt(8). 'boot' uses this to create a boot partition if needed. - Don't cripple cgbase() in the UFS boot code for /boot/gptboot so that it can handle a filesystem > 1.5 TB. - /boot/gptboot has a simple loader (gptldr) that doesn't do any I/O unlike boot1 since /boot/pmbr loads all of gptboot up front. The C portion of gptboot (gptboot.c) has been repocopied from boot2.c. The primary changes are to parse the GPT to find a root filesystem and to use 64-bit disk addresses. Currently gptboot assumes that the first UFS partition on the disk is the / filesystem, but this algorithm will likely be improved in the future. - Teach the biosdisk driver in /boot/loader to understand GPT tables. GPT partitions are identified as 'disk0pX:' (e.g. disk0p2:) which is similar to the /dev names the kernel uses (e.g. /dev/ad0p2). - Add a new "freebsd-boot" alias to g_part() for the new boot UUID. MFC after: 1 month Discussed with: marcel (some things might still change, but am committing what I have so far)
* | Update copyright attribution.jhb2007-10-242-2/+4
| | | | | | | | MFC after: 3 days
* | Properly drop the pf mutex around all copyout (consistency still protectedmlaier2007-10-242-1/+9
| | | | | | | | | | | | | | by the sx) and avoid a WITNESS panic. Overlooked during last import. Reported and tested by: Max N. Boyarov MFC after: 3 days
* | Add ABI backwards compatibility to the FreeBSD 4/5/6 versions ofmarius2007-10-244-53/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was broken with the introduction of PCI domain support. As the size of struct pci_conf_io wasn't changed with that commit, this unfortunately requires the ABI of PCIOCGETCONF to be broken again in order to be able to provide backwards compatibility to the old version of that IOCTL. Requested by: imp Discussed with: re (kensmith) Reviewed by: PCI maintainers (imp, jhb) MFC after: 5 days
* | silence complaint about not loading the wlan_scan_monitor module;sam2007-10-241-1/+2
| | | | | | | | | | | | | | | | it does not exist and is not needed as monitor mode operation has always required setting the current channel Reviewed by: thompsa MFC after: 1 week
* | Merge first in a series of TrustedBSD MAC Framework KPI changesrwatson2007-10-24103-3518/+3601
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from Mac OS X Leopard--rationalize naming for entry points to the following general forms: mac_<object>_<method/action> mac_<object>_check_<method/action> The previous naming scheme was inconsistent and mostly reversed from the new scheme. Also, make object types more consistent and remove spaces from object types that contain multiple parts ("posix_sem" -> "posixsem") to make mechanical parsing easier. Introduce a new "netinet" object type for certain IPv4/IPv6-related methods. Also simplify, slightly, some entry point names. All MAC policy modules will need to be recompiled, and modules not updates as part of this commit will need to be modified to conform to the new KPI. Sponsored by: SPARTA (original patches against Mac OS X) Obtained from: TrustedBSD Project, Apple Computer
* | Rework the read/write support in the bios disk driver some to cut downjhb2007-10-241-196/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on duplicated code and support 64-bit LBAs for GPT. - The code to manage an EDD or C/H/S I/O request are now in their own routines. The EDD routine now handles a full 64-bit LBA instead of truncating LBAs to the lower 32-bits. (MBRs and BSD labels only have 32-bit LBAs anyway, so the only LBAs ever passed down were 32-bit). - All of the bounce buffer and retry logic duplicated in bd_read() and bd_write() are merged into a single bd_io() routine that takes an extra direction argument. bd_read() and bd_write() are now simple wrappers around bd_io(). - If a disk supports EDD then always use it rather than only using it if the cylinder is > 1023. Other parts of the boot code already do something similar to this. Also, GPT just uses LBAs, so for a GPT disk it's probably best to ignore C/H/S completely. Always using EDD when it is supported by a disk is an easy way to accomplish this. MFC after: 1 week
* | MFi386: revision 1.50nyan2007-10-241-39/+30
| | | | | | | | Reindent the read/write code of bd_realstrategy() so it is more readable.
* | MFi386: revision 1.41nyan2007-10-241-2/+1
| | | | | | | | | | | | | | Slightly cleanup the 'bootdev' concept on x86 by changing the various macros to treat the 'slice' field as a real part of the bootdev instead of as hack that spans two other fields (adaptor (sic) and controller) that are not used in any modern FreeBSD boot code.
* | Reindent the read/write code of bd_realstrategy() so it is more readable.jhb2007-10-241-39/+30
| | | | | | | | MFC after: 1 week
* | Slightly cleanup the 'bootdev' concept on x86 by changing the variousjhb2007-10-249-29/+16
| | | | | | | | | | | | | | | | macros to treat the 'slice' field as a real part of the bootdev instead of as hack that spans two other fields (adaptor (sic) and controller) that are not used in any modern FreeBSD boot code. MFC after: 1 week
OpenPOWER on IntegriCloud