summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move appropriate information out of `DESCRIPTION' and into `SECURITYchris2002-07-031-12/+12
| | | | | | CONSIDERATIONS'. Sponsored by: DARPA, NAI Labs
* Whitespace diffs only; this brings this file into the same whitespacemarkm2002-07-032-52/+54
| | | | | | convention as src/lib/csu/*/crt1.c. This will make the follow up diffs easier to see and extract.
* Correct a call to fcntl(F_SETFD) to use `FD_CLOEXEC' instead of `1'.chris2002-07-031-1/+1
|
* Add a SECURITY CONSIDERATIONS example: make note that access to openchris2002-07-031-0/+33
| | | | | | | | file descriptors does not change upon dropping privilege, and include a likely case of `setuid(non_superuser); exec(...);'. Sponsored by: DARPA, NAI Labs Obtained from: TrustedBSD Project
* Fix off-by-one error.mini2002-07-031-1/+1
| | | | | | PR: misc/40104 Submitted by: Neal Fachan <neal@isilon.com> MFC after: 3 days
* No need to explicitly set NOMAN here.ru2002-07-031-1/+0
| | | | Reviewed by: jmallett
* Fix typo (SIGEV_EVENT -> SIGEV_KEVENT).mp2002-07-021-1/+1
|
* Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attachume2002-07-021-0/+1
| | | | | | scope identifier). MFC after: 3 weeks
* Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attachume2002-07-021-0/+1
| | | | | | | scope identifier). Approved by: des MFC after: 3 weeks
* Make NI_WITHSCOPEID a default (always on), to synchronizeume2002-07-021-30/+20
| | | | | | | with recent 2553bis. Obtained from: KAME MFC after: 3 weeks
* Fix a couple of minor nits that prevented this from compiling.deischen2002-07-023-6/+12
| | | | Pointed out by: julian
* DEBUG is a knob that means something else in FreeBSD, use LIBUFS_DEBUG tojmallett2002-07-011-1/+1
| | | | turn on tracing.
* In getino, have our DEBUG message in the unhandled case mention that itjmallett2002-07-013-1/+5
| | | | | | does not know what sort of UFS filesystem this is. Add some DEBUG(NULL)'s to function entry points.
* Rename `CAVEAT' to `SECURITY CONSIDERATIONS' and move it up tochris2002-07-011-10/+10
| | | | | | | | the correct location--this section consists solely of security considerations information. Sponsored by: DARPA, NAI Labs Obtained from: TrustedBSD Project
* Remove trailing whitespacebrian2002-07-0110-142/+142
|
* Add libufs, a library for dealing with UFS filesystems from userland tojmallett2002-07-017-1/+536
| | | | | | | | | the build. It is here to compartmentalise functionality currently duplicated in many notable programs in the base system. It currently handles block reads and writes, as well as reading and writing of the filesystem superblock, and the reading/lookup of inode data. It supports both UFS and UFS2. I will be maintaining it, and porting programs to use it, however for now, it is simply being built as part of world.
* LP64 fix: don't cast pointer to intnaddy2002-06-301-1/+1
| | | | Reviewed by: gallatin, ticso
* Don't even read in the thread if it is a zombie process.julian2002-06-301-7/+10
|
* grow a brain and do this right.julian2002-06-301-5/+7
|
* Don't follow non existant thread pointers (e.g. for zombies)julian2002-06-301-33/+35
|
* Use FBSDIDobrien2002-06-3013-84/+32
|
* Part 1 of KSE-IIIjulian2002-06-291-2/+19
| | | | | | | | | | | | | The ability to schedule multiple threads per process (one one cpu) by making ALL system calls optionally asynchronous. to come: ia64 and power-pc patches, patches for gdb, test program (in tools) Reviewed by: Almost everyone who counts (at various times, peter, jhb, matt, alfred, mini, bernd, and a cast of thousands) NOTE: this is still Beta code, and contains lots of debugging stuff. expect slight instability in signals..
* To avoid anybody else getting caught out, these two files are reallypeter2002-06-292-278/+0
| | | | in /sys/boot/common and are actually used there.
* Update from NetBSD 1.3 -> 1.6. Most notable, rev 1.6:peter2002-06-291-1/+13
| | | | | | "Make in_cksum work on little endian machines" This would explain a few things. :-)
* Use __FBSDID.obrien2002-06-295-36/+9
|
* Add frexp(3).obrien2002-06-292-2/+80
| | | | Obtained from: OpenBSD
* Add additional field 'overwrite' to login_vars. It mainly needed to handleache2002-06-281-10/+11
| | | | | "term" according to manpage, i.e. not overwrite it, if already present in environment.
* Make sigpending and sigsuspend account for signals that are pending ondeischen2002-06-286-15/+81
| | | | | | the process as well as pending on the current thread. Reported by: Andrew MacIntyre <andymac@bullseye.apana.org.au>
* Add a wrapper for pselect() in order to make it a cancellation point.deischen2002-06-286-0/+165
| | | | Prompted by: wollman
* The new ipfw code.luigi2002-06-271-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code makes use of variable-size kernel representation of rules (exactly the same concept of BPF instructions, as used in the BSDI's firewall), which makes firewall operation a lot faster, and the code more readable and easier to extend and debug. The interface with the rest of the system is unchanged, as witnessed by this commit. The only extra kernel files that I am touching are if_fw.h and ip_dummynet.c, which is quite tied to ipfw. In userland I only had to touch those programs which manipulate the internal representation of firewall rules). The code is almost entirely new (and I believe I have written the vast majority of those sections which were taken from the former ip_fw.c), so rather than modifying the old ip_fw.c I decided to create a new file, sys/netinet/ip_fw2.c . Same for the user interface, which is in sbin/ipfw/ipfw2.c (it still compiles to /sbin/ipfw). The old files are still there, and will be removed in due time. I have not renamed the header file because it would have required touching a one-line change to a number of kernel files. In terms of user interface, the new "ipfw" is supposed to accepts the old syntax for ipfw rules (and produce the same output with "ipfw show". Only a couple of the old options (out of some 30 of them) has not been implemented, but they will be soon. On the other hand, the new code has some very powerful extensions. First, you can put "or" connectives between match fields (and soon also between options), and write things like ipfw add allow ip from { 1.2.3.4/27 or 5.6.7.8/30 } 10-23,25,1024-3000 to any This should make rulesets slightly more compact (and lines longer!), by condensing 2 or more of the old rules into single ones. Also, as an example of how easy the rules can be extended, I have implemented an 'address set' match pattern, where you can specify an IP address in a format like this: 10.20.30.0/26{18,44,33,22,9} which will match the set of hosts listed in braces belonging to the subnet 10.20.30.0/26 . The match is done using a bitmap, so it is essentially a constant time operation requiring a handful of CPU instructions (and a very small amount of memmory -- for a full /24 subnet, the instruction only consumes 40 bytes). Again, in this commit I have focused on functionality and tried to minimize changes to the other parts of the system. Some performance improvement can be achieved with minor changes to the interface of ip_fw_chk_t. This will be done later when this code is settled. The code is meant to compile unmodified on RELENG_4 (once the PACKET_TAG_* changes have been merged), for this reason you will see #ifdef __FreeBSD_version in a couple of places. This should minimize errors when (hopefully soon) it will be time to do the MFC.
* Add these libs from the 4.6-RELEASE.obrien2002-06-273-0/+2152
| | | | | libstdc++ was bumped with the switch to Gcc 3.1, and libpam was bumped with the switch to OpenPAM.
* Add these libs from the 4.6-RELEASE.obrien2002-06-273-0/+1861
| | | | | libstdc++ was bumped with the switch to Gcc 3.1, and libpam was bumped with the switch to OpenPAM.
* Fix style bugs I added in last commit.silby2002-06-271-4/+4
| | | | Spotted by: bde
* Remove pselect from application namespace and instead use a weak referencedeischen2002-06-271-1/+3
| | | | | | | to the actual implementation. This is to allow libc_r to override pselect() making it a cancellation point. Prompted by: wollman
* Remove improper use of <namespace.h>.deischen2002-06-271-6/+2
| | | | Remove fmtcheck from application name space (fix the weak reference).
* Remove improper use of <namespace.h>deischen2002-06-271-1/+0
|
* Modify bcopy (and memcpy/memmove) so that the length value is notsilby2002-06-271-2/+4
| | | | | | | | re-read from the stack mid copy. This may help mitigate the recent Apache buffer overrun and future overruns of the sort. Reviewed by: jdp MFC after: 2 days
* Remove two lines that were cvs merged that shouldn't have been. Thisimp2002-06-261-2/+0
| | | | | | fixes the build. Reported by: dillon.
* Remove two stray lines that snuck in the cvs mergeimp2002-06-262-2/+0
|
* Backout previous delta (addition of -I${.CURDIR}/../../sys).sobomax2002-06-261-2/+1
| | | | Submitted by: bde
* Add -I${.CURDIR}/../../sys into CFLAGS, which should fix the world brokensobomax2002-06-261-1/+2
| | | | by RLIMIT_VMEM addition.
* Initialize a pointer that was left uninitialized with the previousnectar2002-06-261-0/+1
| | | | commit.
* Include more robust checking of end of buffer that more completelyimp2002-06-264-52/+32
| | | | plugs the hole.
* Don't allow buffer overflow here either.imp2002-06-261-1/+3
|
* Fix a minor last, minute issue that came in after I committed.imp2002-06-261-1/+1
| | | | Noticed by: nectar
* Avoid remote buffer overflow on hostbuf[].imp2002-06-262-1/+4
| | | | Submitted by: joost Pol <joost@pine.nl>
* Add documentation for vmemoryusedillon2002-06-261-0/+1
|
* Make libutil aware of vmemoryuse in its login.conf cap processing (akadillon2002-06-261-0/+1
| | | | sshd, /usr/bin/login, etc)
* WARNS=6'ify.obrien2002-06-251-7/+5
| | | | Style nits.
* Prototype _start.obrien2002-06-251-2/+4
| | | | | | Submitted by: markm Mark some _start formal parameters __unused.
OpenPOWER on IntegriCloud