summaryrefslogtreecommitdiff
path: root/libbb/procps.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* cleanups after changes by Denis Vlasenko. Size optimization"Vladimir N. Oleynik"2006-02-141-6/+9
|
* Cleanups from Denis Vlasenko.Rob Landley2006-02-131-14/+23
|
* - rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer2005-09-201-1/+1
| | | | | | | | my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug
* ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE->CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE"Vladimir N. Oleynik"2005-09-161-3/+3
|
* FEATURE->ENABLE_FEATURE loses one for 'top' applet"Vladimir N. Oleynik"2005-09-141-3/+3
|
* A patch from Takeharu KATO to update/fix SE-Linux support.Rob Landley2005-05-031-13/+2
|
* Tito writes:Eric Andersen2004-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito
* Teach busybox ps to get the correct uid when displaying stuffEric Andersen2004-01-271-3/+5
|
* Patch from Atsushi Nemoto, recent MIPS kernel headersGlenn L McGrath2004-01-211-0/+4
| | | | | does not provide PAGE_SHIFT for userland (because now mips-linux kernel supports PAGESIZE other than 4K).
* bother. It seems I can't read.Eric Andersen2003-12-201-4/+0
|
* doh!Eric Andersen2003-12-201-1/+1
|
* Try to accomodate systems that do not define PAGE_SHIFTEric Andersen2003-12-201-0/+4
|
* Patch from Russell Coker:Eric Andersen2003-07-031-1/+13
| | | | | I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox.
* Skip printing "/proc/%d/cmdline" stuff when it is not relevantEric Andersen2003-05-261-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-1/+1
|
* Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notEric Andersen2002-12-051-3/+0
| | | | | maintaining it anymore, and it is now terribly out of date. -Erik
* last_patch_69, 8 bit clean and other fixes from Vladimir N. OleynikGlenn L McGrath2002-12-021-1/+1
|
* Handle name entries that have a \0 in them, last_patch_65 from Vladimir N. ↵Glenn L McGrath2002-11-251-4/+11
| | | | Oleynik
* include libbb after stdlib.h as it breaks dmallocGlenn L McGrath2002-11-241-2/+1
|
* Patch last_pach62 from vodz. This patch moves all the /proc parsingEric Andersen2002-10-221-0/+137
code into libbb so it can be shared by ps, top, etc, saving over 1.5k.