summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_uid16.c
Commit message (Collapse)AuthorAgeFilesLines
* Match the LINUX32's style with existing styleobrien2005-01-141-4/+4
| | | | | | Submitted by: Jung-uk Kim <jkim@niksun.com> Use positive, not negative logic.
* Changes to MI Linux emulation code necessary to run 32-bit Linux binariestjr2004-08-161-0/+7
| | | | | | | | | | | | | | | on AMD64, and the general case where the emulated platform has different size pointers than we use natively: - declare certain structure members as l_uintptr_t and use the new PTRIN and PTROUT macros to convert to and from native pointers. - declare some structures __packed on amd64 when the layout would differ from that used on i386. - include <machine/../linux32/linux.h> instead of <machine/../linux/linux.h> if compiling with COMPAT_LINUX32. This will need to be revisited before 32-bit and 64-bit Linux emulation support can coexist in the same kernel. - other small scattered changes. This should be a no-op on i386 and Alpha.
* Rename suser_cred()'s PRISON_ROOT flag to SUSER_ALLOWJAIL. This iscperciva2004-07-261-1/+1
| | | | | | | | | | | somewhat clearer, but more importantly allows for a consistent naming scheme for suser_cred flags. The old name is still defined, but will be removed in a few days (unless I hear any complaints...) Discussed with: rwatson, scottl Requested by: jhb
* Deorbit COMPAT_SUNOS.phk2004-06-111-1/+1
| | | | | We inherited this from the sparc32 port of BSD4.4-Lite1. We have neither a sparc32 port nor a SunOS4.x compatibility desire these days.
* Reject negative ngrp arguments in linux_setgroups() and linux_setgroups16();tjr2003-10-211-1/+1
| | | | | stops users being able to cause setgroups to clobber the kernel stack by copying in data past the end of the linux_gidset array.
* Use __FBSDID().obrien2003-06-101-2/+3
|
* More caddr_t removal, in conjunction with copy{in,out}(9) this time.des2003-03-031-4/+2
| | | | Also clean up some egregious casts and incorrect use of sizeof.
* Include <sys/malloc.h> instead of depending on namespace pollution 2bde2002-09-051-3/+3
| | | | | | layers deep in <sys/proc.h> or <sys/vnode.h>. Removed unused includes. Sorted includes.
* Use the new kern_* functions to avoid the need to store argumentsiedowse2002-09-011-22/+18
| | | | | | | | in the stack gap. This converts most VFS and signal related system calls, as well as select(). Discussed on: -arch Approved by: marcel
* Rework logic of syscalls that modify process credentials as described injhb2002-04-131-12/+20
| | | | rev 1.152 of sys/kern/kern_prot.c.
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-1/+1
| | | | | | | | | | | | 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@
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-3/+3
| | | | reference.
* When casting from uid16/gid16 to uid/gid respectively, make suremarcel2001-10-141-14/+16
| | | | | | | that "no change" (ie 0xFFFF) is properly cast to (int)-1 for those syscalls that set uids and/or gids. Verified by: LTP
* KSE Milestone 2julian2001-09-121-35/+37
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Speculatively add this file. It's part of the Linuxulator updatemarcel2001-09-011-0/+285
to make it emulate Linux kernel version 2.4.2, which is required in order to upgrade the linux_base port to RH 7.1. Note that this file is only needed for 32-bit architectures. To us this means i386 (for now?)
OpenPOWER on IntegriCloud