Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-07-06 | Document PS_CHROOT, and upcoming PS_NOBTCFI flags | Theo de Raadt | |
2023-03-08 | Fix alignment of command column. print_comm_name() returns an updated | Tobias Heider | |
length value, not the length difference. ok deraadt@ millert@ guenther@ | |||
2023-01-07 | Add {get,set}thrname(2) for putting thread names in the kernel and | Philip Guenther | |
exposed in a new field returned by sysctl(KERN_PROC). Update pthread_{get,set}_name_np(3) to use the syscalls. Show them, when set, in ps -H and top -H output. libc and libpthread minor bumps ok mpi@, mvs@, deraadt@ | |||
2022-10-13 | controm terminql -> controlling terminal; | Jason McIntyre | |
2022-09-20 | Fix line length trimming in -f mode | Job Snijders | |
Reported by Christian Weisgerber OK kn@ | |||
2022-09-03 | - rework the -f text to read better; ok job | Jason McIntyre | |
- while here, wrap a long line | |||
2022-09-01 | Add forest (-f) mode | Job Snijders | |
In -f mode group & display parent/child process relationships using ASCII art. Borrows heavily from Brian Somers' work on FreeBSD ps(1). With input from deraadt@ and tb@ OK benno@ claudio@ | |||
2022-07-05 | Remove old poll/select wakeup mechanism. | Visa Hankala | |
Also remove unneeded seltrue() and selfalse(). OK mpi@ jsg@ | |||
2022-03-31 | man pages: add missing commas between subordinate and main clauses | Christian Weisgerber | |
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@ | |||
2022-02-25 | A few additional changes related to the now 32 bit accounting flag. | Rob Pierce | |
Pointers from and discussions with millert and deraadt. Ok millert@, deraadt@, bluhm@ | |||
2022-02-22 | Use sizeof() instead of KI_MAXCOMLEN and KI_WMESGLEN in structs. | Todd C. Miller | |
This way we keep the size of the strings in the private struct in sync with what the kernel gives us. OK deraadt@ | |||
2022-02-22 | Instead of using MAXCOMLEN from sys/param.h, use KI_MAXCOMLEN as width, | Theo de Raadt | |
from sysctl.h. This isn't a perfect transition, still thinking about other ways to do it. ok millert | |||
2022-02-15 | Reintroduce ps state flag 'c' indicating chrooted process (via PS_BITS). | Rob Pierce | |
Ok deraat@ | |||
2022-02-14 | Revert change to ps for displaying chrooted process. | Rob Pierce | |
Ok deraadt | |||
2022-02-07 | New status flag: 'c' - process is chrooted. | Rob Pierce | |
Feedback and tweaks from deraadt@ guenther@ Ok bluhm@ deraadt@ | |||
2022-02-07 | Tweak previous. | Rob Pierce | |
2022-02-07 | Sync ps.1 with sys/proc.h. Tweaked by deraadt@. | Rob Pierce | |
Ok millert@ deraadt@ | |||
2022-01-05 | Delete 'emul' keyword: it's been just returned 'native' for a long time | Philip Guenther | |
ok jsg@ deraadt@ | |||
2021-12-01 | further improvements in sys/param.h annotation and removal. | Theo de Raadt | |
2021-08-28 | /bin/ps: Implement reporting of supplemental groups | Christopher Zimmermann | |
with help from sthen@ and tim@. OK tim@ | |||
2021-07-12 | Change the error reporting pattern throughout the tree when unveil | Bob Beck | |
fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@ | |||
2021-04-05 | Remove unused variables | kn | |
From Daniel Kovacic <daniel dot kovacic at unbugd dot com>, thanks! No object change. | |||
2020-08-03 | clang10 identifies an argv[] comparison against '\0' instead of NULL, | Theo de Raadt | |
it results in the same, but is incorrect. ok millert | |||
2020-02-08 | Make HISTORY more concise: historical section numbers are irrelevant. | Ingo Schwarze | |
Fluff noticed by jsg@. | |||
2019-12-16 | Delete tests for P_THREAD that predate the existence of | Philip Guenther | |
KERN_PROC_SHOW_THREADS and have been rendered superfluous by it. Similarly, some P_SYSTEM tests can be deleted or pushed to the kernel by using KERN_PROC_ALL instead of KERN_PROC_KTHREAD. ok visa@ mpi@ | |||
2019-09-05 | Document pledge keyword | kn | |
OK millert | |||
2019-07-25 | tweak previous: a leading dash can only be given if an option letter follows; | Ingo Schwarze | |
OK deraadt@ | |||
2019-07-24 | Years ago the optionality of leading - was removed. dash-less is a | Theo de Raadt | |
fact on the ground in ps everywhere, even on linux, and it is not going to go away, and denying the existance is pointless. The SYNOPSIS cannot proscriptively document all the cases without a madness. I also feel there is very little need to explain the behaviour differences relative to the sparse POSIX standard for ps, everyone's ps has oodles of extensions. | |||
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo de Raadt | |
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | |||
2019-06-23 | sort previous; ok deraadt | Jason McIntyre | |
2019-06-23 | add "ps -o pledge" option, which prints a comma-seperated list of pledges | Theo de Raadt | |
active on each process. So go forth and "ps agux -o pledge" to find pledges which can be improved. (I hesitated adding this before because I am afraid of people enforcing extra-strict pledge in programs without testing all the use cases -- thereby breaking software). | |||
2019-06-23 | Export unveil state so that ps(8) can show it. Two new status flags, | Theo de Raadt | |
you'll see one, or neither. 'u' - process installed unveils, but not yet locked with unveil(0,0) or pledge w/o "unveil" 'U' - process has installed unveils, and locked. ok rob | |||
2019-03-24 | detect -t argument being too long, rather than truncating | Theo de Raadt | |
2019-03-24 | 16 chars is not enough for the maximum reach major() and minor() | Theo de Raadt | |
could have, so let's formally expand the buffer to what it needs to be. | |||
2019-02-05 | Let ps(1) work in single user mode where /var/run does not exist. | Florian Obser | |
Give the same treatment if /dev doesn't exist. While things will be real interesting without /dev there is no reason to stop ps(1). Fix suggested by & OK deraadt OK millert | |||
2019-02-05 | dev_t is signed to permit passing -1 as an invalid condition, but the | Theo de Raadt | |
decomposition into major and minor is unsigned, so we should print them with %u instead of %d. ok guenther | |||
2018-09-16 | Use uid_from_user(3) and gid_from_group(3) in utilities that | Todd C. Miller | |
do repeated lookups. OK tb@ | |||
2018-08-08 | unveil dev.db "r" for devname(), /dev "r", and in the non-sysctl case | Theo de Raadt | |
some kernel memory/symbol files. | |||
2018-06-12 | handle the seperation of kvm_getenvv() and kvm_getargv() more cleanly | Theo de Raadt | |
ok kettenis, plus a fix from tb | |||
2017-08-29 | Since rev 1.61 of print.c exp(3) and log(3) are not used anymore. | Alexander Bluhm | |
Do not link ps(1) with libm. from miod@; OK millert@ | |||
2017-05-30 | stop reacharound from w(1) to ps(1); no functional change; | Ingo Schwarze | |
diff from bcallah@; OK tedu@ deraadt@ | |||
2017-01-24 | do not need sys/proc.h | Theo de Raadt | |
2016-10-26 | Document LC_CTYPE. | Ingo Schwarze | |
The lack of this entry was reported by Jan Stary <hans at stare dot cz>. OK czarkoff@ jmc@ | |||
2016-10-19 | Make the description of COLUMNS a bit more readable. | Ingo Schwarze | |
Triggered by a different patch from Michal Mazurek. Joint work by tb@, jmc@, and tedu@, but no one ever committed it. | |||
2016-09-23 | Attempt to use stdout, stderr, or stdin terminal widths if they exist. | Anthony J. Bentley | |
This behavior already existed but was unintentionally lost in revision 1.70 of ps.c. ok millert@ tb@ | |||
2016-09-08 | The bug about not displaying exact information because ps can't run | Ted Unangst | |
faster than the system is more of a caveat than a bug. The comment also dates back to ye olden times when the information was collected via multiple kvm reads. The sysctl interface provides a much more consistent snapshot, albeit one that may be outdated by the time it's printed. Reword accordingly. | |||
2016-09-08 | etime isn't just an alias for start. the output format is different. | Ted Unangst | |
diff from Carlin Bingham. ok millert. | |||
2016-09-01 | simplify comment to remove reference to sparc. | Ted Unangst | |
2016-04-25 | remove list item left in previous; | Jason McIntyre | |
2016-04-25 | remove references to systrace | Ted Unangst | |