summaryrefslogtreecommitdiff
path: root/sys/kern/kern_prot.c
AgeCommit message (Collapse)Author
2003-09-01match syscallargs comments with realityHenning Brauer
from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-01-30Bring back setreuid(2) and setregid(2) as first class syscallsTodd C. Miller
(but still implemented via setres[ug]id(2)). Basically this just moves them from COMPAT_43 into kern_prot.c. Also fixes a typo in my old implementation. The userland portion will follow in a few days. deraadt@ OK
2002-10-30Implement setresuid(2), getresuid(2), setresgid(2), getresgid(2), basedTodd C. Miller
partly on the Linux emul code and FreeBSD versions. We need these for Linux, FreeBSD, and HP-UX emulation. Also change sys_setreuid() and sys_setregid() to use uid_t and gid_t respectively.
2002-10-15Match reality by changing (u_int) -> (int) in comments.Thomas Nordin
2002-01-23Allocate rusage, pgrp, ucred and session with pool.Artur Grabowski
2002-01-12Don't cast return value from splx to (void) because splx doesn't return ↵Artur Grabowski
anything.
2001-06-22Try again. (this time it's tested).Artur Grabowski
Add proc_cansugid that checks if a process may raise it's privileges. Rework exec to remove the old sugid workaround and check proc_cansugid just before raising privileges.
2001-06-22KNFTheo de Raadt
2001-06-19no way, you are on drugs. last commit revoked because it broke setuid majorlyTheo de Raadt
2001-06-18Add proc_cansugid used to check if a process should be allowedArtur Grabowski
to raise its privileges in exec.
2000-11-08Cleanup.Artur Grabowski
Zap COMPAT_09. Don't duplicate creds unless necessary.
2000-09-12o add missing getsid() prototypeTodd C. Miller
o fix typo in getsid() that broke getsid(pid) where pid != 0 o cause getsid() and getpgid() to return EPERM if requesting the id of a session/process group not in the current session o check for NULL session in getsid() for exiting processes
1997-11-17indentTheo de Raadt
1997-11-13add getsid(2), XPG4Theo de Raadt
1997-09-02COMPAT_BSDOS exec and compat changes.Jason Downs
1997-05-30add getpgid(2) from NetBSDkstailey
1997-03-29Do return values from issetuid() correctlyThorsten Lockert
1996-10-27Allow set[gu]id() if the [gu]id we are trying to set is the saved [gu]id,Thorsten Lockert
but only set effective [gu]id.
1996-10-26Verify that pgid argument to setpgid() is legalThorsten Lockert
1996-10-02copyinstr correctly; spotted by bitbltTheo de Raadt
1996-08-25issetugid() system call discovers if a process was started setuid or setgidTheo de Raadt
1996-08-01Implemented _POSIX_SAVED_IDS behaviour according to 1003.1-1990, withThorsten Lockert
allowed extension from Appendix B, section 4.2.2.
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt