Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | ansi/deregister. | 2005-11-28 | 1 | -115/+32 | ||
| | | | | 'go for it' deraadt@ | |||||
* | match syscallargs comments with reality | 2003-09-01 | 1 | -3/+3 | ||
| | | | | | from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@ | |||||
* | change arguments to suser. suser now takes the process, and a flags | 2003-08-15 | 1 | -23/+32 | ||
| | | | | | | | | | 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@ | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | ||
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | |||||
* | Bring back setreuid(2) and setregid(2) as first class syscalls | 2003-01-30 | 1 | -1/+67 | ||
| | | | | | | | (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 | |||||
* | Implement setresuid(2), getresuid(2), setresgid(2), getresgid(2), based | 2002-10-30 | 1 | -1/+207 | ||
| | | | | | | | 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. | |||||
* | Match reality by changing (u_int) -> (int) in comments. | 2002-10-15 | 1 | -3/+3 | ||
| | ||||||
* | Allocate rusage, pgrp, ucred and session with pool. | 2002-01-23 | 1 | -6/+4 | ||
| | ||||||
* | Don't cast return value from splx to (void) because splx doesn't return anything. | 2002-01-12 | 1 | -2/+2 | ||
| | ||||||
* | Try again. (this time it's tested). | 2001-06-22 | 1 | -1/+20 | ||
| | | | | | | 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. | |||||
* | KNF | 2001-06-22 | 1 | -10/+10 | ||
| | ||||||
* | no way, you are on drugs. last commit revoked because it broke setuid majorly | 2001-06-19 | 1 | -19/+1 | ||
| | ||||||
* | Add proc_cansugid used to check if a process should be allowed | 2001-06-18 | 1 | -1/+19 | ||
| | | | | to raise its privileges in exec. | |||||
* | Cleanup. | 2000-11-08 | 1 | -54/+69 | ||
| | | | | | Zap COMPAT_09. Don't duplicate creds unless necessary. | |||||
* | o add missing getsid() prototype | 2000-09-12 | 1 | -15/+24 | ||
| | | | | | | | 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 | |||||
* | indent | 1997-11-17 | 1 | -2/+2 | ||
| | ||||||
* | add getsid(2), XPG4 | 1997-11-13 | 1 | -2/+21 | ||
| | ||||||
* | COMPAT_BSDOS exec and compat changes. | 1997-09-02 | 1 | -4/+4 | ||
| | ||||||
* | add getpgid(2) from NetBSD | 1997-05-30 | 1 | -1/+23 | ||
| | ||||||
* | Do return values from issetuid() correctly | 1997-03-29 | 1 | -2/+4 | ||
| | ||||||
* | Allow set[gu]id() if the [gu]id we are trying to set is the saved [gu]id, | 1996-10-27 | 1 | -1/+3 | ||
| | | | | but only set effective [gu]id. | |||||
* | Verify that pgid argument to setpgid() is legal | 1996-10-26 | 1 | -1/+4 | ||
| | ||||||
* | copyinstr correctly; spotted by bitblt | 1996-10-02 | 1 | -2/+2 | ||
| | ||||||
* | issetugid() system call discovers if a process was started setuid or setgid | 1996-08-25 | 1 | -1/+13 | ||
| | ||||||
* | Implemented _POSIX_SAVED_IDS behaviour according to 1003.1-1990, with | 1996-08-01 | 1 | -9/+24 | ||
| | | | | allowed extension from Appendix B, section 4.2.2. | |||||
* | From NetBSD: 960217 merge | 1996-03-03 | 1 | -7/+29 | ||
| | ||||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+536 | ||