1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/sys
John Baldwin 44731cab3b Change the suser() API to take advantage of td_ucred as well as do a
general cleanup of the API.  The entire API now consists of two functions
similar to the pre-KSE API.  The suser() function takes a thread pointer
as its only argument.  The td_ucred member of this thread must be valid
so the only valid thread pointers are curthread and a few kernel threads
such as thread0.  The suser_cred() function takes a pointer to a struct
ucred as its first argument and an integer flag as its second argument.
The flag is currently only used for the PRISON_ROOT flag.

Discussed on:	smp@
2002-04-01 21:31:13 +00:00
..
_lock.h
_mutex.h Modify the critical section API as follows: 2001-12-18 00:27:18 +00:00
_posix.h
_sigset.h Remove __P 2002-03-19 20:18:42 +00:00
_timespec.h
_types.h o Implement <sys/_types.h>, a new header for storing types that are 2002-04-01 08:12:25 +00:00
aac_ioctl.h
acct.h Remove __P 2002-03-19 20:18:42 +00:00
acl.h Remove __P 2002-03-19 20:18:42 +00:00
agpio.h
aio.h o Add missing synchronization (splnet()/splx()) in aio_free_entry(). 2002-01-06 21:03:39 +00:00
assym.h
ata.h Add support for getting status (fan, temp, 5V and 12V levels) from 2002-03-30 16:36:41 +00:00
bio.h Push BIO_FORMAT into a local hack inside the floppy drivers where 2002-03-26 19:16:37 +00:00
bitstring.h
blist.h
buf.h Remove __P 2002-03-19 20:18:42 +00:00
bus_dma.h
bus_private.h
bus.h Add resource_list_add_next() which returns the RID for the resource added. 2002-03-29 06:42:54 +00:00
callout.h Remove __P 2002-03-19 20:18:42 +00:00
capability.h
ccdvar.h
cdefs.h Implement a fine-grain control system which allows header developers 2002-04-01 07:58:26 +00:00
cdio.h
cdrio.h Update header. 2002-03-04 21:08:35 +00:00
chio.h
clist.h
condvar.h A couple of bits survived Dans nukage of CV_DEBUG in favour of INVARIANTS, 2002-03-31 07:23:31 +00:00
conf.h Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
cons.h Remove __P 2002-03-19 20:18:42 +00:00
consio.h Extend CONS_GETINFO ioctl to provide information about size of the currently 2002-03-16 23:31:15 +00:00
copyright.h Welcome 2002. Happy new year. 2002-01-01 09:20:52 +00:00
ctype.h
dataacq.h
device_port.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
disklabel.h Really sweep the broom on this one. 2002-04-01 20:18:02 +00:00
diskmbr.h Really sweep the broom on this one. 2002-04-01 20:18:02 +00:00
diskpc98.h Really sweep the broom on this one. 2002-04-01 20:18:02 +00:00
diskslice.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
dkstat.h
dmap.h
domain.h Remove __P 2002-03-19 20:18:42 +00:00
dvdio.h Update header. 2002-03-04 21:08:35 +00:00
elf32.h
elf64.h
elf_common.h
elf_generic.h
errno.h Remove __P 2002-03-19 20:18:42 +00:00
event.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
eventhandler.h Remove __P 2002-03-19 20:18:42 +00:00
eventvar.h
exec.h Remove __P 2002-03-19 20:18:42 +00:00
extattr.h Part I: Update extended attribute API and ABI: 2002-02-10 04:43:22 +00:00
fbio.h
fcntl.h Remove __P 2002-03-19 20:18:42 +00:00
fdcio.h Long promised major enhancement set for the floppy disk driver: 2001-12-15 19:09:04 +00:00
file.h Removed some namespace pollution (unnecessary nested includes). 2002-03-26 12:40:48 +00:00
filedesc.h The description of fd_mtx is "filedesc structure." 2002-03-29 11:26:05 +00:00
filio.h
fnv_hash.h
gmon.h Reserved one of the spare fields in struct gmon to record the history 2002-02-21 05:52:49 +00:00
iconv.h
imgact_aout.h Remove __P 2002-03-19 20:18:42 +00:00
imgact_elf.h Remove __P 2002-03-19 20:18:42 +00:00
imgact.h Remove __P 2002-03-19 20:18:42 +00:00
inflate.h Forgot one more instance of my old email address. 2002-03-26 08:29:40 +00:00
interrupt.h Remove __P 2002-03-19 20:18:42 +00:00
ioccom.h Use int (ioctl)(...) rather than int ioctl(...) so that ioctl can be defined 2002-03-22 22:36:23 +00:00
ioctl_bt848.h
ioctl_compat.h
ioctl_meteor.h
ioctl.h Hide GCCisms in the non-GCC case. 2002-02-26 07:44:03 +00:00
ipc.h Remove __P 2002-03-19 20:18:42 +00:00
jail.h Remove __P 2002-03-19 20:18:42 +00:00
joystick.h
kbio.h
kernel.h Remove __P 2002-03-19 20:18:42 +00:00
kerneldump.h Add a new #include which describes the common header format for kerneldumps. 2002-03-31 21:48:08 +00:00
kobj.h
kse.h Add the first shot at minimum KSE interface definitions. 2002-02-19 02:12:36 +00:00
kthread.h Remove __P 2002-03-19 20:18:42 +00:00
ktr.h Wrap the arguments to CTR6() in parentheses so that the u_long casts work 2002-04-01 19:44:13 +00:00
ktrace.h Remove __P 2002-03-19 20:18:42 +00:00
libkern.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
linedisc.h Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
link_aout.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
link_elf.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
linker_set.h
linker.h
lock.h Add a new mtx_init option "MTX_DUPOK" which allows duplicate acquires of locks 2002-03-27 09:23:41 +00:00
lockf.h Remove __P 2002-03-19 20:18:42 +00:00
lockmgr.h Remove __P 2002-03-19 20:18:42 +00:00
malloc.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
mbuf.h Get rid of the twisted MFREE() macro entirely. 2002-02-05 02:00:56 +00:00
mchain.h Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
md4.h
md5.h Remove __P 2002-03-19 20:18:42 +00:00
mdioctl.h Actually make use of the md_version field of 'struct mdio'. In order 2001-12-20 06:38:21 +00:00
memrange.h
mman.h Remove __P 2002-03-19 20:18:42 +00:00
module.h - Lock down the ``module'' structure by adding an SX lock that is used by 2002-03-18 07:45:30 +00:00
mount.h Commit the good prototype for nmount(2). 2002-03-26 16:32:46 +00:00
mouse.h Minor changes: 2002-03-24 03:07:07 +00:00
msg.h Remove __P 2002-03-19 20:18:42 +00:00
msgbuf.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
mtio.h Fix a typo in a comment field. 2002-01-21 11:10:32 +00:00
mutex.h Add a new mtx_init option "MTX_DUPOK" which allows duplicate acquires of locks 2002-03-27 09:23:41 +00:00
namei.h Remove __P 2002-03-19 20:18:42 +00:00
nlist_aout.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
param.h Remove __P 2002-03-19 20:18:42 +00:00
pciio.h
pcpu.h Document that MD pcpu fields are defined in PCPU_MD_FIELDS in 2002-03-20 18:01:52 +00:00
pioctl.h
pipe.h First rev at making pipe(2) pipe's MPsafe. 2002-02-27 07:35:59 +00:00
poll.h Remove __P 2002-03-19 20:18:42 +00:00
posix4.h Remove __P. 2002-03-19 22:20:14 +00:00
power.h Add generalized power profile code. 2002-03-04 18:46:13 +00:00
priority.h
proc.h To remove nested include of sys/lock.h and sys/mutex.h from sys/proc.h 2002-03-28 18:12:27 +00:00
procfs.h
protosw.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
ptio.h
ptrace.h Implement PT_IO (read / write arbitrary amounts of data or text). 2002-03-16 02:40:02 +00:00
queue.h Remove __P 2002-03-19 20:18:42 +00:00
random.h Provide infrastructure for harvesting SWI entropy. 2002-03-03 20:09:42 +00:00
reboot.h Add new boot flag to i386 boot: -p. 2001-12-10 20:02:22 +00:00
regression.h Remove __P 2002-03-19 20:18:42 +00:00
resource.h Remove __P 2002-03-19 20:18:42 +00:00
resourcevar.h Remove __P 2002-03-19 20:18:42 +00:00
rman.h Add a rman_reserve_resource_bound() function that takes an additional 2001-12-21 21:40:55 +00:00
rtprio.h Remove __P 2002-03-19 20:18:42 +00:00
runq.h
sbuf.h Replace spaces after #defines with tabs; this makes all #defines 2002-01-09 07:29:28 +00:00
select.h
selinfo.h Remove __P 2002-03-19 20:18:42 +00:00
sem.h Remove __P 2002-03-19 20:18:42 +00:00
sema.h
semaphore.h Remove __P. 2002-03-19 22:20:14 +00:00
shm.h Remove __P 2002-03-19 20:18:42 +00:00
signal.h Remove __P 2002-03-19 20:18:42 +00:00
signalvar.h Remove __P 2002-03-19 20:18:42 +00:00
smp.h Add needed includes of machine/smp.h, remove nested include in sys/smp.h 2002-03-07 04:43:51 +00:00
snoop.h
socket.h Remove __P 2002-03-19 20:18:42 +00:00
socketvar.h Removed some namespace pollution (unnecessary nested includes). 2002-03-26 12:40:48 +00:00
sockio.h Style consistency fix for MAC ioctls added previously. 2002-02-10 16:55:35 +00:00
soundcard.h Remove __P 2002-03-19 20:18:42 +00:00
stat.h Remove __P 2002-03-19 20:18:42 +00:00
stdint.h o Implement <sys/_types.h>, a new header for storing types that are 2002-04-01 08:12:25 +00:00
sx.h
syscall.h Part II: update various mechanically generated files to allow for new 2002-03-05 16:13:01 +00:00
syscall.mk Part II: update various mechanically generated files to allow for new 2002-03-05 16:13:01 +00:00
sysctl.h Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
sysent.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
syslimits.h
syslog.h Remove __P 2002-03-19 20:18:42 +00:00
sysproto.h Remove __P 2002-03-19 20:18:42 +00:00
systm.h Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
taskqueue.h
termios.h Remove __P 2002-03-19 20:18:42 +00:00
time.h Various style issues from a recent brucification: 2002-03-20 08:48:21 +00:00
timeb.h Remove __P 2002-03-19 20:18:42 +00:00
timepps.h Remove __P 2002-03-19 20:18:42 +00:00
timers.h
times.h Remove __P 2002-03-19 20:18:42 +00:00
timespec.h
timetc.h Remove __P 2002-03-19 20:18:42 +00:00
timex.h Remove __P 2002-03-19 20:18:42 +00:00
tty.h Fixed -Wshadow warnings by renaming ttysleep()'s `timeout' parameter to 2002-03-27 03:52:04 +00:00
ttychars.h
ttycom.h
ttydefaults.h
ttydev.h
types.h Fix some whitespace style bugs. 2002-04-01 09:45:05 +00:00
ucontext.h Add getcontext, setcontext, makecontext, and swapcontext prototypes 2002-01-10 02:44:30 +00:00
ucred.h Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
uio.h Remove __P 2002-03-19 20:18:42 +00:00
un.h Remove __P 2002-03-19 20:18:42 +00:00
unistd.h Make RFPPWAIT a kernel-only flag. Programs desiring this feature should 2001-12-19 00:55:13 +00:00
unpcb.h
user.h Remove __P 2002-03-19 20:18:42 +00:00
utsname.h
vmmeter.h
vnioctl.h
vnode.h Remove references to vm_zone.h and switch over to the new uma API. 2002-03-20 04:09:59 +00:00
wait.h Remove __P 2002-03-19 20:18:42 +00:00
xrpuio.h