summaryrefslogtreecommitdiff
path: root/sys/kern/kern_prot.c
AgeCommit message (Expand)Author
2022-03-17Use the refcnt API with struct ucred.Visa Hankala
2021-10-24use NULL not 0 for pointer values in kernJonathan Gray
2021-01-17Cache parent's pid as `ps_ppid' and use it instead of `ps_pptr->ps_pid'.mvs
2019-07-09The system calls getgroups(2) and setgroups(2) pass the number ofAlexander Bluhm
2018-06-22tweak commentVisa Hankala
2018-06-21Use atomic operations for updating cred structure reference countsVisa Hankala
2018-02-20Introduce enternewpgrp() & enterthispgrp(), from FreeBSD via guenther@.Martin Pieuchot
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-09-27guenther sleep-commited the version without #ifdefsTheo de Raadt
2017-09-27amd64 needs FS.base values (the TCB pointer) to be validated, as noncanonicalPhilip Guenther
2017-04-13Delete the getlogin59 syscall, which was last used one year, two releases,Philip Guenther
2017-04-13Provide mips64 with kernel-facing TCB_{GET,SET} macros that store itPhilip Guenther
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
2016-09-02add a concept of 'verified auth' to sessions. When set via ioctl,Ted Unangst
2016-03-30Add getlogin_r syscall that checks and returns errors like userspacePhilip Guenther
2016-03-29In setlogin(), don't change anything on error.Philip Guenther
2015-03-02Return EINVAL if the creds supplied for NFS export have a cr_ngroups lessPhilip Guenther
2015-01-17use NGROUPS_MAXTheo de Raadt
2014-09-17The 2nd arg of setpgid(2) should be pid_t, not int.Todd C. Miller
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsPhilip Guenther
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
2014-03-24The kernel isn't involved in times(3); <sys/times.h> should never bePhilip Guenther
2014-03-24Split the API: struct ucred remains the kernel internal structure whilePhilip Guenther
2013-04-06rthreads are always enabled. remove the sysctl.Ted Unangst
2012-10-01Make groupmember() check the effective gid too, so that the checks arePhilip Guenthe
2012-04-12move accounting flags to struct process; idea and ok guentherMike Belopuhov
2012-04-10Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitPhilip Guenthe
2012-02-20First steps for making ptrace work with rthreads:Philip Guenthe
2011-10-15"TLS-lite": add kernel support for a per-thread userspace pointer,Philip Guenthe
2011-07-25two more syscall functions that should have returned int, not pid_tTed Unangst
2011-07-07effectively revert 1.44. we don't need the compat_43 syscall returns ever.Ted Unangst
2011-04-04Move P_EXEC flag from struct proc to process, so that setpgid() willPhilip Guenthe
2011-04-02Move P_SUGID and P_SUGIDEXEC from struct proc to struct process, soPhilip Guenthe
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
2010-07-01Always identify threads with THREAD_PID_OFFSET, so that there's noPhilip Guenthe
2010-06-29remove the compat43 ifdef around some code. in effect, it's always beenTed Unangst
2010-06-29Eliminate RTHREADS kernel option in favor of a sysctl. The actual statusTed Unangst
2010-06-28<sys/time.b> is for ftime(), which is just in libcompat and not the kernel,Philip Guenthe
2010-01-28Make sure the process tree is is loop-free by forbidding ptrace()Philip Guenthe
2010-01-14fix typos in comments, no code changes;Ingo Schwarze
2009-06-02ANSIfyPhilip Guenthe
2008-12-16Move the functionality of psignal() to a new function ptsignal()Philip Guenthe
2008-11-01change all callers of enterpgrp() to pre-allocate a pgrp or session ifTheo de Raadt
2008-10-31accidental commit ... backoutTheo de Raadt
2008-10-31kern_sysctl.cTheo de Raadt
2008-10-14Back-in; problems were apparently elsewhere.Philip Guenthe
2008-10-10backout; is causing some people difficultyTheo de Raadt
2008-10-09Use the reference count in struct process to update the proc countPhilip Guenthe
2008-05-22use PR_ZERO instead of calling bzero directlyThordur I. Bjornsson
2007-04-03Start moving state that is shared among threads in a process intoArtur Grabowski