summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_loginclass.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r266007:trasz2014-06-171-10/+1
| | | | Initialize loginclass mutex using MTX_SYSINIT instead of using SI_SUB_CPU.
* In order to maximize the re-usability of kernel code in user space thiskmacy2011-09-161-2/+2
| | | | | | | | | | | | | patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz)
* Add racct. It's an API to keep per-process, per-jail, per-loginclasstrasz2011-03-291-1/+19
| | | | | | | | | and per-loginclass resource accounting information, to be used by the new resource limits code. It's connected to the build, but the code that actually calls the new functions will come later. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version)
* Add two new system calls, setloginclass(2) and getloginclass(2). This makestrasz2011-03-051-0/+220
it possible for the kernel to track login class the process is assigned to, which is required for RCTL. This change also make setusercontext(3) call setloginclass(2) and makes it possible to retrieve current login class using id(1). Reviewed by: kib (as part of a larger patch)
OpenPOWER on IntegriCloud