summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* o Merge contents of struct pcred into struct ucred. Specifically, add therwatson2001-05-2534-375/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | real uid, saved uid, real gid, and saved gid to ucred, as well as the pcred->pc_uidinfo, which was associated with the real uid, only rename it to cr_ruidinfo so as not to conflict with cr_uidinfo, which corresponds to the effective uid. o Remove p_cred from struct proc; add p_ucred to struct proc, replacing original macro that pointed. p->p_ucred to p->p_cred->pc_ucred. o Universally update code so that it makes use of ucred instead of pcred, p->p_ucred instead of p->p_pcred, cr_ruidinfo instead of p_uidinfo, cr_{r,sv}{u,g}id instead of p_*, etc. o Remove pcred0 and its initialization from init_main.c; initialize cr_ruidinfo there. o Restruction many credential modification chunks to always crdup while we figure out locking and optimizations; generally speaking, this means moving to a structure like this: newcred = crdup(oldcred); ... p->p_ucred = newcred; crfree(oldcred); It's not race-free, but better than nothing. There are also races in sys_process.c, all inter-process authorization, fork, exec, and exit. o Remove sigio->sio_ruid since sigio->sio_ucred now contains the ruid; remove comments indicating that the old arrangement was a problem. o Restructure exec1() a little to use newcred/oldcred arrangement, and use improved uid management primitives. o Clean up exit1() so as to do less work in credential cleanup due to pcred removal. o Clean up fork1() so as to do less work in credential cleanup and allocation. o Clean up ktrcanset() to take into account changes, and move to using suser_xxx() instead of performing a direct uid==0 comparision. o Improve commenting in various kern_prot.c credential modification calls to better document current behavior. In a couple of places, current behavior is a little questionable and we need to check POSIX.1 to make sure it's "right". More commenting work still remains to be done. o Update credential management calls, such as crfree(), to take into account new ruidinfo reference. o Modify or add the following uid and gid helper routines: change_euid() change_egid() change_ruid() change_rgid() change_svuid() change_svgid() In each case, the call now acts on a credential not a process, and as such no longer requires more complicated process locking/etc. They now assume the caller will do any necessary allocation of an exclusive credential reference. Each is commented to document its reference requirements. o CANSIGIO() is simplified to require only credentials, not processes and pcreds. o Remove lots of (p_pcred==NULL) checks. o Add an XXX to authorization code in nfs_lock.c, since it's questionable, and needs to be considered carefully. o Simplify posix4 authorization code to require only credentials, not processes and pcreds. Note that this authorization, as well as CANSIGIO(), needs to be updated to use the p_cansignal() and p_cansched() centralized authorization routines, as they currently do not take into account some desirable restrictions that are handled by the centralized routines, as well as being inconsistent with other similar authorization instances. o Update libkvm to take these changes into account. Obtained from: TrustedBSD Project Reviewed by: green, bde, jhb, freebsd-arch, freebsd-audit
* Fix DMA on machines with more than 128MB.scottl2001-05-251-1/+1
| | | | | Obtained from: cg MFC after: 5 days
* Make if_tun's clone create SI_CHEAPCLONE devices.phk2001-05-251-0/+1
|
* Add the contributed directory from the i4b tarball and the files from ithm2001-05-2512-4/+1547
| | | | | which would be nice to have. Move isdnd_acct and isdnctl to the contrib directory where they belong to.
* Make the PTY drivers cloning algorithm create "CHEAPCLONE" dev_t,phk2001-05-251-11/+12
| | | | so that some twit cannot allocate all 256 PTY's with "ls -l".
* Submitted by: phkhm2001-05-253-0/+455
| | | | Add the V.21 modem emulator code written by phk from the old i4b tarball.
* This script can control the state of your ISDN line. It countsalex2001-05-251-0/+111
| | | | | | | how many scripts/users currently use the ISDN line and uses "ifconfig down" if noone uses it any more. Not objected by: hm
* update isdn4bsd related information.hm2001-05-254-23/+49
|
* Mention that ppp.conf.isdn isn't appropriate for external TAsbrian2001-05-252-0/+45
| | | | | | Add a section to ppp.conf.sample that is. MFC after: 3 weeks
* + Turn on SMP support by default (yes an Alpha SMP kernel works onobrien2001-05-252-0/+14
| | | | | uniprocessor systems, aren't Alpha's neat :-)) + Add example KTR (debugging) options.
* mdoc(7) police: Fix markup.ru2001-05-253-23/+42
|
* Add the 'next' and 'prev' commands (aliased to '+' and '-') which skipkris2001-05-252-11/+78
| | | | | | | | | | | forward or backward by a specified number of tracks (defaulting to 1). Use strvisx() to display the media catalog in case it contains unprintable characters. Sort includes. Based on two patches submitted by PR, plus style fixes and other changes of my own. Submitted by: Seth Kingsley <sethk@osd.bsdi.com>, Maxime Henrion <mux@qualys.com> PR: bin/22672, bin/26962 MFC After: 1 week
* Don't lie to diskerr() now that it listens to us.phk2001-05-252-10/+0
|
* Use the name given to the dev_t, rather than creating our own.phk2001-05-251-1/+2
| | | | | This makes it possible to give sensible information for /dev/fd.720 and similar "special" devices.
* update to include the latest modifications to isdn4bsd.hm2001-05-252-3/+27
|
* Submitted by: Juha-Matti Liukkonen (Cubical Solutions Ltd) (jml@cubical.fi)hm2001-05-2536-265/+5029
| | | | | | Add a CAPI (hardware independent) driver i4bcapi(4) and hardware driver iavc (4) to support active CAPI-based BRI and PRI cards (currently AVM B1 and T1 cards) to isdn4bsd.
* - sys/msdosfs moved to sys/fs/msdosfsru2001-05-2538-8021/+69
| | | | | - msdos.ko renamed to msdosfs.ko - /usr/include/msdosfs moved to /usr/include/fs/msdosfs
* Make it clear that -P is the default.ru2001-05-257-4/+10
| | | | PR: docs/27629
* Add intrack field to each slot. This can be used to acknowledgeimp2001-05-252-0/+4
| | | | | | | interrupts on other buses. Right now it isn't used, but will be for the pci attachment. # Add copyright by me for this year since I've changed so much.
* Minor name space issues.imp2001-05-251-19/+20
|
* RFC 1323 (TCP extensions) is now on by default.obrien2001-05-251-3/+3
|
* Add support forimp2001-05-251-0/+6
| | | | | | | card "D" "Link DWL-650 11Mbps WLAN Card" which is the most amusing CIS mistake I've seen in some time. # I'm using this card to make this commit!
* I didn't fix the comment in rev 1.107.obrien2001-05-251-1/+1
|
* Turn on TCP_EXTENSIONS (rfc1323) by defualt.obrien2001-05-251-1/+1
|
* Don't rely on cdevsw_add() when we hack about with dev_t's.phk2001-05-241-0/+2
|
* Don't take the detour around devsw() to find out if the proto-cdevswphk2001-05-241-3/+1
| | | | is already initialized.
* Back out rev 1.4 (wint_t and mbstate_t) as I am tired of the complaints.obrien2001-05-241-10/+0
| | | | | | | | | | | | The STLport will probably become broken again, but I'll work on fixing it later. I wish someone would explain why the NetBSD Cirtus branch has the types in their stddef.h... Requested by: bde, ru PR: 27606 Submitted by: Naohiko Tsuji <yakisoba@f2.dion.ne.jp>
* NetBSD's inetd uses different syntex from FreeBSD's in faith support.ume2001-05-241-3/+3
|
* Add the "auth_as_self" option to the pam_unix module (there is nomarkm2001-05-244-3/+11
| | | | | | | reason not to add it to others later). This causes the pam_unix module to check the user's _own_ password, not the password of the account that the user is authenticating into. This will allow eg: WHEELSU type behaviour from su(1).
* Oops. Unremove vestiges of the old, broken sound drivers. They are nowbde2001-05-243-0/+1580
| | | | used in new drivers.
* whitespace/stylealfred2001-05-241-1/+2
|
* Stick VM syscalls back under Giant if the BLEED option is not defined.jhb2001-05-242-0/+57
|
* Add a new kernel option 'BLEED' to be used for code that is still underjhb2001-05-241-0/+1
| | | | | | development but is being developed in the tree for whatever reason. Not objected to by: peter, jlemon
* Remove vestiges of the old, broken sound drivers.bde2001-05-243-1580/+0
|
* Actually rename FDESC, PORTAL, UMAP and UNION file systems.ru2001-05-248-24/+24
| | | | OK'ed by: bp
* mount_fdesc -> mount_fdescfsru2001-05-241-2/+2
| | | | mount_portal -> mount_portalfs
* mount_umap(8) -> mount_umapfs(8).ru2001-05-241-1/+1
|
* mount_null(8) -> mount_nullfs(8).ru2001-05-241-4/+4
|
* mount_portal -> mount_portalfs.ru2001-05-241-2/+3
|
* Missed one mount_null(8) -> mount_nullfs(8) in previous commit.ru2001-05-241-1/+1
|
* (Re-)enabled boot2.nyan2001-05-241-1/+1
|
* Update boot[12] program to compile ELF binary.nyan2001-05-246-117/+92
| | | | | Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> and kawanobe@st.rim.or.jp (Kawanobe Koh)
* Restrict even further what parts of <sys/conf.h> can be seen fromphk2001-05-242-4/+12
| | | | userland.
* Remove the "undocumented" comment in re lflag.nik2001-05-241-1/+1
|
* Document the -l option.nik2001-05-241-4/+15
| | | | | PR: docs/27440 Submitted by: Flix-Antoine Paradis <reel@sympatico.ca>
* If the user exists abruptly, tip's "tipout" child can hang aroundphk2001-05-242-1/+14
| | | | | | | | | | | forever. Since the lock file doesn't get cleaned up, this prevents other users from accessing the target device. (phk adds: Man, this has been bugging me for YEARS!) PR: 12528 Submitted by: Craig Leres leres@ee.lbl.gov MFC after: 1 week
* Add a -A option to ping which beeps when packets are lost.phk2001-05-242-3/+17
| | | | | PR: 11818 Submitted by: Marc Evans marc@destek.net
* Backout rev. 1.22 as the change that caused problems was also backed out.ru2001-05-241-1/+1
|
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.obrien2001-05-2456-95/+237
| | | | Do the same for the non-wcs*/wmem* files while I'm here.
* This patch implements O_DIRECT about 80% of the way. It takes a patchsetdillon2001-05-2412-15/+100
| | | | | | | | | | | | | | | | Tor created a while ago, removes the raw I/O piece (that has cache coherency problems), and adds a buffer cache / VM freeing piece. Essentially this patch causes O_DIRECT I/O to not be left in the cache, but does not prevent it from going through the cache, hence the 80%. For the last 20% we need a method by which the I/O can be issued directly to buffer supplied by the user process and bypass the buffer cache entirely, but still maintain cache coherency. I also have the code working under -stable but the changes made to sys/file.h may not be MFCable, so an MFC is not on the table yet. Submitted by: tegge, dillon
OpenPOWER on IntegriCloud