Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dev_t is signed to permit passing -1 as an invalid condition, but the | 2019-02-05 | 1 | -3/+3 | |
| | | | | | | decomposition into major and minor is unsigned, so we should print them with %u instead of %d. ok guenther | ||||
* | Allow fstat to filter multiple pids and multiple users at the same time. | 2019-01-28 | 1 | -15/+45 | |
| | | | | OK deraadt@ | ||||
* | I am retiring my old email address; replace it with my OpenBSD one. | 2019-01-25 | 1 | -2/+2 | |
| | |||||
* | explicitly handle printing the AF_KEY socket type as "pfkey" | 2019-01-21 | 1 | -1/+6 | |
| | | | | | | | | i was looking for it and had to think very hard and read /usr/include/sys/socket.h before i found it here. ok deraadt@ ok claudio@ who wanted it to look like AF_ROUTE output | ||||
* | Use uid_from_user(3) and gid_from_group(3) in utilities that | 2018-09-16 | 1 | -5/+10 | |
| | | | | do repeated lookups. OK tb@ | ||||
* | Fix warnings caused by user_from_uid() and group_from_gid() now | 2018-09-13 | 1 | -2/+2 | |
| | | | | returning const char *. | ||||
* | print rtable for internet sockets unless it's the default; based on a diff | 2018-04-10 | 1 | -1/+5 | |
| | | | | | from Peter J. Philipp but printing slightly differently to avoid the need for a flag. ok claudio@ bluhm@ | ||||
* | Print a 'p' flag for file descriptors that were opened after pledge(2). | 2018-04-06 | 1 | -1/+3 | |
| | | | | OK deraadt@ | ||||
* | repair columns; from kshe59@zohu.eu | 2017-12-08 | 1 | -3/+3 | |
| | |||||
* | Expose the close-on-exec flag near the R/W flags. | 2017-01-21 | 1 | -8/+11 | |
| | | | | ok guenther | ||||
* | Indicate with an asterisk when a file has been unlinked. | 2016-10-02 | 1 | -2/+4 | |
| | | | | from Sebastien Marie | ||||
* | Kill #ifdef INET6 occurrences in userland. | 2016-05-04 | 1 | -11/+1 | |
| | | | | | | | Prompted by and ok millert@ (tcpdump and libpcap left untouched, the #ifdef force is too strong with those) | ||||
* | remove systrace support | 2016-04-25 | 1 | -19/+1 | |
| | |||||
* | fixes fuser(1) when invoking with -u: it requires "getpw" promise. | 2016-01-02 | 1 | -2/+14 | |
| | | | | | | problem reported by Michael Reed m.reed at mykolab dot com. ok tb@ and benno@ (which as provided near the same diff, but 5min later :p) | ||||
* | Declare usage() as __dead, and while here align a few variables to the rest of | 2015-12-30 | 1 | -7/+6 | |
| | | | | | | the list and also ANSI one function. No functional change. OK tb@ | ||||
* | Missing "getpw" pledges, these were unnoticed because nobody expects | 2015-11-17 | 1 | -2/+2 | |
| | | | | a user_from_uid(3) call... | ||||
* | getnameinfo() no longer needs pledge "route". this drops to | 2015-10-23 | 1 | -2/+2 | |
| | | | | pledge "stdio rpath". | ||||
* | in fuser mode with -k or -s mode, kill(2) might be called and | 2015-10-12 | 1 | -3/+13 | |
| | | | | | | route lookups won't be needed; so expand the pledge setup to handle 3 codepaths. from theo buehler | ||||
* | pledge "stdio rpath route" seems to be working. route is needed for | 2015-10-10 | 1 | -1/+4 | |
| | | | | pretty printing some addresses. | ||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -3/+5 | |
| | | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | ||||
* | Remove userland bits related to the crypto(4) interface; ok deraadt | 2014-08-20 | 1 | -18/+1 | |
| | |||||
* | Don't need to know how to format bluetooth socket info here | 2014-08-10 | 1 | -7/+1 | |
| | |||||
* | AF_NATM support was removed before 5.5 | 2014-05-30 | 1 | -7/+1 | |
| | |||||
* | - add UNIX-domain socket info to struct kinfo_file2 | 2013-10-22 | 1 | -30/+30 | |
| | | | | | | | | | | - convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@ | ||||
* | A space got lost in fstat state output, put it back. | 2013-03-31 | 1 | -2/+2 | |
| | | | | OK deraadt@ | ||||
* | Do not leak kernel pointers, unless operating as root. Some other display | 2013-03-24 | 1 | -32/+57 | |
| | | | | | | functionality is lost, but one can argue that privacy was being violated there... ok various, including bluhm and guenther | ||||
* | makes cloned devices line up well with the rest of the output; | 2012-11-30 | 1 | -2/+2 | |
| | | | | ok guenther, krw | ||||
* | Add rtable id and thread id to struct kinfo_proc (and fix process id) | 2012-01-07 | 1 | -67/+169 | |
| | | | | | | | | | | | and add an 'rtableid' keyword to ps. Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat display socket splice information. Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major Socket splice info and corrections from bluhm@ "Lovely" deraadt@ | ||||
* | rmove rotten netatalk bits | 2011-07-09 | 1 | -7/+1 | |
| | |||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -12/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | Accept numeric UIDs as well as usernames like pgrep etc. | 2009-07-12 | 1 | -5/+11 | |
| | | | | ok millert | ||||
* | Add POSIX-compliant fuser mode to fstat. Originally based on | 2009-07-08 | 1 | -51/+159 | |
| | | | | | a diff from Peter Werner but largely rewritten to use kinfo_file2. OK deraadt@ with man fixes from jmc@ and sobrado@ | ||||
* | Do not print non-vnode information if asked to report information on a | 2009-06-15 | 1 | -7/+12 | |
| | | | | | particular file, regression introduced in 1.66 and reported by Navan Carson on misc@. | ||||
* | remove unused variables | 2009-06-11 | 1 | -4/+3 | |
| | | | | ok millert@ | ||||
* | Use the new kvm_getfile2 interface to do the dirty work. OK deraadt@ | 2009-06-07 | 1 | -645/+230 | |
| | |||||
* | Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@ | 2009-06-03 | 1 | -16/+16 | |
| | |||||
* | Don't define NFS before including kernel header files, | 2009-05-31 | 1 | -4/+2 | |
| | | | | | | | besides it being gnarly its useless since no magic is done if it is define. pointed out by deraadt@ | ||||
* | Do not display file offsets and a few other pieces of information, except | 2008-10-07 | 1 | -8/+26 | |
| | | | | | | to the user or the superuser. Display * for those fields instead. From PR 5113, but modified to use copyout correctly. comments from tedu, ok from others | ||||
* | bring cloning up too date; Munge it so it will work with atleast | 2008-04-08 | 1 | -4/+47 | |
| | | | | | | | | | oga@'s upcoming DRM changes and too some degree ratchov@'s audio work. It still works for bpf's though. Parts from ratchov@; fstat(1) parts from Pedro Martelletto; tested by many, ok'ed by a few; "get going with cloning" deraadt@ | ||||
* | sort the fields in manual page in the same order as in fstat output; | 2007-10-01 | 1 | -7/+7 | |
| | | | | | | | | | | use the same name for fields in the manual page and command output; while here, fix spacing millert@ has observed that this change makes the header fields consistent with what is the output by NetBSD and FreeBSD too ok millert@ | ||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -3/+3 | |
| | |||||
* | use strtonum, from jason dixon | 2007-04-07 | 1 | -5/+7 | |
| | |||||
* | oops, forgot \n at end of kqueue lines; Nicholas Marriott | 2006-06-19 | 1 | -3/+3 | |
| | |||||
* | do per file io accounting and show that in fstat as well; pedro@ marco@ ok | 2006-03-26 | 1 | -31/+53 | |
| | |||||
* | Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes. | 2005-12-28 | 1 | -5/+5 | |
| | | | | No functional change, okay tedu@. | ||||
* | Remove the 'on disk' inode (dinode) from the 'in memory' inode in UFS. | 2005-12-17 | 1 | -2/+22 | |
| | | | | | | Instead of having the dinode inside the inode structure itself, we now have just a pointer to it, and use a separate pool to allocate dinodes as needed. Inspiration from FreeBSD, various testing for a while, thanks. | ||||
* | give inode 8 positions (new ver w/ missing spaces deraadt pt out); millert@ krw@ ok | 2005-12-13 | 1 | -6/+6 | |
| | |||||
* | make these use setres[ug]id for simple privilege dropping; | 2005-07-04 | 1 | -8/+10 | |
| | | | | ok deraadt@ millert@ moritz@ | ||||
* | null removal fallout | 2005-05-26 | 1 | -83/+2 | |
| | |||||
* | remove NI_WITHSCOPEID (which is not standard) | 2004-11-17 | 1 | -7/+3 | |
| |